#!/bin/sh set -ex;mkdir -p blah;python -c "import os;os.chdir('blah') with open('../$0', 'r') as f: for day in f.read().split('\n\n\n'): if day.split('\n')[0] == '#!/bin/sh': prefix='\n'.join(day.split('\n')[day.split('\n').index( 'exit 0')+1:])+'\n';continue elif day.split('\n')[0][:4] == ' 2023-02-08 If you had ghosts in your blood cocaine would totally work on getting rid of the ghosts. 2023-02-07 #!/bin/sh set -ex;mkdir -p blah;python -c "import os;os.chdir('blah') with open('../$0', 'r') as f: for day in f.read().split('\n\n\n'): if day.split('\n')[0] == '#!/bin/sh': prefix='\n'.join(day.split('\n')[day.split('\n').index( 'exit 0')+1:])+'\n';continue elif day.split('\n')[0][:4] == '<!--': suffix=day;continue with open(day.split('\n')[0]+'.html', 'x') as g: g.write(prefix+day+'\n'+suffix) ";cd blah;for f in *.html;do #in glob we trust test -z "$last" || sed -i "s,_NAVIGATION_,$nav\>

," \ "$last";nav="

";test -z "$last"||nav="$nav\<" nav="$nav^";last="$f";done sed -i "s,_NAVIGATION_,$nav

," "$last";for f in *.html;do #e unibus puellam fi="$(echo "$f" | cut -d . -f 1)";test "$fi" = "index" && continue printf '%s\n' "$fi" "$fi"; done|sort -r|\ sed -e "1iblah
\
.." -e '$a
'>index.html exit 0 That's the source code to this blog, in its entirety. My writing process was simple: - write the beginning and initial Python portion - pass out - wake up at 0600 not knowing who or where I am - see this code and continue it - pass out again - wake up at 1700 knowing who but not where I am - write most of the rest - pass out again - wake up half an hour later, finish It's organized in sections though it doesn't appear to be organized whatsoever: #!/bin/sh set -ex mkdir -p blah python -c " import os os.chdir('blah') with open('../$0', 'r') as f: for day in f.read().split('\n\n\n'): if day.split('\n')[0] == '#!/bin/sh': prefix = '\n'.join( day.split('\n')[ day.split('\n').index('exit 0')+1: ] ) + '\n' continue elif day.split('\n')[0][:4] == '