To obtain a "clean" source at some revision, do:
git archive <commit #> | tar -x -C <destination dir>
Source: https://stackoverflow.com/questions/160608/do-a-git-export-like-svn-export
Friday, October 25, 2019
Setting Up "Local" Git Server
Inspired by https://dev.to/erhankilic/setting-up-your-own-git-server--26h6
sudo mkdir /git/example.git
sudo git init --bare
cd /home/<localuser>
sudo git clone/git/example.git# (bcoz the repo has root permission in this example)
To use:
git add ... whatever
git commit -a
sudo git push # (bcoz the repo has root permission in this example)
Wednesday, October 16, 2019
Thursday, May 30, 2019
Set Notepad++ as the Default Editor in Windows
https://www.tech-recipes.com/rx/53473/how-to-set-notepad-as-the-default-editor-in-windows/
1. First, open Notepad++ with administrator privileges.
2. Click on Settings in the main menu bar, and click on Preferences.
3. Select File Association, and add your needed file extensions one by one to the Registered extensions list.
4. If the file extension you need is not included in the list, select customize. Then type the needed extension, and add those to the Registered extensions list.
5. Click Close.
1. First, open Notepad++ with administrator privileges.
2. Click on Settings in the main menu bar, and click on Preferences.
3. Select File Association, and add your needed file extensions one by one to the Registered extensions list.
4. If the file extension you need is not included in the list, select customize. Then type the needed extension, and add those to the Registered extensions list.
5. Click Close.
Friday, June 1, 2018
Turn off picture compression
https://support.office.com/en-us/article/turn-off-picture-compression-81a6b603-0266-4451-b08e-fc1bf58da658
Monday, May 14, 2018
MS Word - how to disable spell check in a specific document
Use Word Options> Proofing and at the bottom of that dialog, select
the document name from the drop down and check Hide Spelling errors and
Hide Grammar errors in this document. (https://answers.microsoft.com/en-us/msoffice/forum/msoffice_word-mso_other-mso_2010/how-to-disable-spell-check-in-a-specific-document/0ecda102-775f-e011-8dfc-68b599b31bf5)
Friday, April 13, 2018
older FIJI Jython scripts won't execute
see full explanation: http://forum.imagej.net/t/jython-isssue-with-if---name-----main--/5544/2
workaround: replace
with
workaround: replace
if __name__=='__main__':
with
if __name__ in ['__builtin__', '__main__']:
run_script()
Subscribe to:
Posts (Atom)