This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% diskutil list | |
% diskutil cs create BACKUP disk2s2 disk3s2 | |
% diskutil cs list | |
% diskutil cs createVolume 90052D5A-340B-43CF-8A93-BD02C2E041DF jhfs+ Time\ Capsule 100% | |
Reference: http://www.macissues.com/2014/04/10/how-to-make-a-custom-fusion-drive-in-os-x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install libgeos-dev | |
$ sudo ln -s /usr/lib/libgeos-3.4.2.so /usr/lib/libgeos.so | |
$ pip install basemap --allow-external basemap --allow-unverified basemap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pdf.fonttype : 42 | |
ps.fonttype : 42 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OpenWrt:/etc/config$ cat network | |
... | |
config interface 'lan' | |
option ifname 'eth0' | |
option type 'bridge' | |
option proto 'dhcp' | |
config interface 'wwan' | |
option proto 'static' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% virtualenv -p /usr/bin/python3 $HOME/.virtualenv/py3env | |
% source $HOME/.virtualenv/py3env/bin/activate | |
% pip freeze | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew versions json-c | |
0.11 git checkout eeb3d65 Library/Formula/json-c.rb | |
0.10 git checkout 438d334 Library/Formula/json-c.rb | |
0.9 git checkout 7955181 Library/Formula/json-c.rb | |
$ git checkout 438d334 /usr/local/Library/Formula/json-c.rb | |
$ brew install json-c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sqlite3 $DATABASE | |
sqlite> begin immediate; | |
<press CTRL+Z> | |
$ scp $DATABASE $REMOTE | |
$ exit | |
sqlite> rollback; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create a diff of the new PDF to the old PDF. This flattens the LaTeX structure before diff'ng the contents. | |
$ latexdiff --flatten old.tex new.tex > diff.tex | |
$ latexmk -pvc -f -pdf -quiet diff.tex | |
Environments can also be ignored using the config command | |
$ latexdiff --config="PICTUREENV=(?:picture|DIFnomarkup|figure|lstlisting)[\w\d*@]*” \ | |
--flatten old.tex new.tex > diff.tex | |
$ latexmk -pvc -f -pdf -quiet diff.tex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
merge two plots into one A4 sheet for easy comparison: | |
$ convert -append $first.png $second.png $result.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ python -c "import time; print time.ctime(int(1363136889))" | |
Wed Mar 13 02:08:09 2013 |
NewerOlder