In the middle of the desert you can say anything you want
Changed colour of +F tasks to a better shade of gray in .taskrc
# color.tag.F=color239
color.tag.F=color244
curl -s https://gist.githubusercontent.com/HaleTom/89ffe32783f89f403bba96bd7bcd1263/raw/ | bash
(yay for curl | bash!)
/)\)TODO - all German IT words in one place, and add them to Anki
Structural search and replace examples—IntelliJ IDEA is neat! Templates are like this:
$Instance$.$MethodCall$($Parameter$)
Note the “target”, usually it’s set to a complete match, but by call and by params exists too.
I had to disable ideavim, because it was doing some weird formatting by itself with brakets and indents that broke checkstyle.
Filters are also important - $params$ will catch only what.function("one"), but won’t what.function(one, two) - had to change count to be [1, +inf]. (1, not 0, because I needed to avoid replacing what.function().)
“Expression cannot be replaced by non-expression” - if you add a ; at the end of the template, it’s an expression now, and the replacement also needs a ; now.
pass); works! 1
A bigger one that makes checkstyle happy is assert true;
It’s possible not to use quotes if have just escaped stuff.
grep "\"Thinker" == grep \"Thinker
After finding a weird error in PIL, found this: Decompression bomb protection · Issue #515 · python-pillow/Pillow
Zip-bombs live on and prosper it seems :)
ncdu is a little neat program that first scans all the subdirectories of the current one and returns a nice visual navigable list.
d to delete selected folder, ? for help.
zip -r result-small.zip ./ -x 'unscoped/*'
-x is a regex of files to exclude. 1
dankbare aufgabe - “rewarding task”
diff -rq folder1 folder2 diffs contents of files inside the two folders.
daff diff can accept a -d parameter giving an epsilon, changes of numbers smaller than eps won’t be shown in the diff!
screen -r seems to accept not just the full name of the screen to attach, but even just the first letters!
Started to crash suddenly. git pull-ing didn’t help, but it and recreating the virtualenv using scripts/mkenv.py did.
der werkzeugkasten - toolbox/kit
This makes empty newlines be part of the fold: 1
" Ignore empty lines when using tabfold
:set foldignore=#<CR>
.. exists and works. 2
.one.two|=sort_by('.whatever')|.next.thing