Total Physical Source Lines of Code (SLOC) = 68,408
Totals grouped by language (dominant language first):
python: 38441 (56.19%)
sh: 22519 (32.92%)
fortran: 4752 (6.95%)
java: 2353 (3.44%)
ansic: 279 (0.41%)
perl: 64 (0.09%)
SLOC Directory SLOC-by-Language (Sorted)
15012 supernova-radiation-transfer sh=6124,fortran=4752,python=4136
9823 supernova-shock-breakout python=8132,sh=1691
8911 87a-nustar sh=5804,python=3107
7891 87a-limits python=5583,sh=2244,perl=64
6401 telescope-pipelines sh=6220,python=181
5421 astro-utils python=4768,sh=374,ansic=279
4983 exoplanet-refraction python=4983
1944 supernova-absorption python=1944
1303 dota2-bot java=1303
1200 amethyst python=1188,sh=12
1108 mauve python=1100,sh=8
1085 music-generator python=1085
1050 stm-postprocess java=1050
826 jupiter python=826
417 neptune python=399,sh=18
253 qrosswind python=245,sh=8
252 lilac python=252
170 orchid python=162,sh=8
140 purpure python=140
109 lavender python=101,sh=8
109 tesla-valuation-model python=109
I'm sorry. I'll just leave all of these here.
#!/bin/bash
# good os, good terminal
python -m venv .venv
source .venv/bin/activate
# bad os, good terminal
py -m venv .venv
source .venv/Scripts/activate
# bad os, bad terminal
py -m venv .venv
.\.venv\Scripts\activate
pip install --upgrade pip
pip install -r requirements.txt
grep -ri --include='*.py' --exclude-dir=.git --exclude-dir=__pycache__ --exclude-dir=.* "create_sample"
find . -type f -name '*.py' ! -path '*/__pycache__/*' ! -path '*/.*' -exec grep -i "latest_only" {} +
A successful sed
, note exclusion of hidden folders to prevent a .git
distaster
find . \( -type d -name .git -prune \) -o -type f -a -name "*.py" -print0 | xargs -0 sed -i 's/cc\.WEIGHT_DECAY/self\.weight_decay/g'
grep -nr --include \*.sql "ANBI\." .
grep -nr --include \*.sql -E "[A-Z]{4}\." .
find . -name ".ipynb_checkpoints" -type d -exec rm -rf {} +
file -i *.txt # Linux
file -I *.txt # Mac
for f in `find | egrep -v *.sql`; do echo "$f" ' -- ' `file -bi "$f"` ; done
iconv -f utf8 -t iso88591 umlaut-utf8.txt > umlaut-iso88591.txt
tar -czvf out.tar.gz */out/*
find . -type f -name "*.tar.gz" -execdir tar -xvzf {} \;
find . -name '*.gz' -exec gunzip '{}' \;
CR=$(printf '\r')
find AF* -type f -exec sed -i "s/\$/$CR/" {} \;
logging.basicConfig(filename='example.log', encoding='utf-8', level=logging.DEBUG)
rsync -v -a -u --delete --force /home/dalp/Dropbox/ /media/dalp/F05A1E4C5A1E1048/Dropbox/
rsync -v -a -u --delete --force /home/dalp/ /media/dalp/F05A1E4C5A1E1048/red/
rsync -v -a --delete --delete-after --force --include='*.CCF' --exclude='*/' sasdev-xmm.esac.esa.int::XMM_VALID_CCF ~/ccf/
curl -sS -O -J "http://nxsa.esac.esa.int/nxsa-sl/servlet/data-action-aio?level=PPS&obsno=0770380401"
ffmpeg -i in.m4a out.mp3
sox --norm=-10 in.mp3 out.mp3
for f in *.jpeg; do convert -compress jpeg ./"$f" ./"${f%.jpeg}.pdf"; done
pdftk inputs*.pdf cat output output.pdf
echo 'Message' | mail -s 'Subject' username@domain.tld
notify-send -u normal 'Topic' 'Message'
decrypt_data.pl -d 40501004004