This file contains hidden or 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
>> bash | |
>> brew tap homebrew-dupes | |
>> brew install --use-lvm gcc |
This file contains hidden or 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
>> cat gnuplot.gp | |
set terminal push | |
set terminal postscript eps font "Times" mono dashed | |
plot '$0' using 1:2:xtic(4) title "..." smooth csplines with lines, \ | |
'$0' using 1:2 with points notitle pointtype 5 pointsize 1, \ | |
'$0' using 1:3:xtic(4) title "..." smooth csplines with lines, \ | |
'$0' using 1:3 with points notitle pointtype 5 pointsize 1 |
This file contains hidden or 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
>> ls | while read file; do python $file; done |
This file contains hidden or 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
>> cat input.txt | |
k1:v1 k2:v2 k3:v3 ... | |
... | |
>> cat input.txt | python -c "import sys; \ | |
lines = sys.stdin.readlines(); \ | |
values = [[i.split(':')[1] for i in item] for item in \ | |
[line.split() for line in lines]]; \ | |
import os; [os.system('echo %s'%v) for v in \ | |
['\t'.join(value) for value in values]]" > output.txt |
This file contains hidden or 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
>> export FTEXT='.ft' | |
>> python -c "import os; list = os.listdir(os.getcwd()); \ | |
print [os.system('echo converting: %s && flow-cat %s -z 9 > %sz'%(file, file,file)) \ | |
for file in list if os.path.splitext(file)[1] == os.environ['FTEXT']]" |
This file contains hidden or 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
>> export MDEXT='.md' | |
>> python -c "import os; \ | |
filelist = os.listdir(os.getcwd()); \ | |
print [os.system('echo executing: %s;pandoc --listings %s -o %s.tex'%(f, f,os.path.splitext(f)[0])) \ | |
for f in filelist if os.path.splitext(f)[1] == os.environ['MDEXT']]" |
NewerOlder