In the middle of the desert you can say anything you want
Couldn’t understand why there are newlinen in my yearly review blog post from last year. So - in markdown, two spaces and then a line break create a line break.
So, like this:
One
two
Three
Four
Fine, no spaces Six, no spaces
Highlight to see spaces:
So, like this:
One
*two*
> Three
> Four
> Fine, no spaces
> Six, no spaces
In connection to the above, yes. Updated ~/.vimrc with the following:
set listchars=tab:\:\
set listchars+=trail:◦
Looks like this:
For the above had to convert my ~/.vimrc to utf-8, not the default latin-1:
:w ++enc=utf-8
<C-v> u25e6 (for “◦”/U+25E6, for example)This makes a screenshot as usual, opens it, opens the jekyll dtb assets folder, and puts the screenhsot name in the primary clipboard. I look at the screenshot, if I like it - I drag it directly to the folder, then use the vim/jekyll binding to insert it in the markdown.
bindsym Mod3+Shift+s --release exec scrot -s -e 'mv $f ~/s/screenshots && nomacs ~/s/screenshots/$f & echo -n $f | xclip -selection c && thunar ~/o/dtb/assets/pics/screenshots/'
echo -n is echo without newline (otherwise it gets fed to xc with newline appended). Added to ~/.config/i3/config.
Feels incredibly ugly and unstable but works for me I guess. Ideally it’s long enough to be replaced with a bash script, but not sure it’s worth it. But if I end up doing more of these, I’ll create a one custom big parametrized bash script that I’ll call like ./big-script.sh screenshot.
map <leader>p i<esc>0lli in ~/.vimrc
Inserts a picture with filename from primary selection, then goes back to the description. Used with new i3 screenshot keybinding from above. a in vim is “insert from next character”, so like A but with words.
I really do need to use a/e etc in vim more often.
I seem to use more of-this-notation lately, instead of this_notation. Formalize this, not just for consistency, but to use this to my advantage - vim and company see these-words as separate, and this_word as one.
echo without newline at the endecho -n doesn’t add a newline. Especially useful combined with xclip.
WKD - Matsuo Basho Archives: - Timeline -:
1662 or 1663 寛文二年
His first known hokku at age 19:春や来し年や行きけん小晦日
haru ya koshi toshi ya yukiken kotsugomori
has spring come
or has the year gone?
second-to-last-day
Tr. Barnhillwhat is spring that came
or was it the year that went?
the Second Last Day
Tr. UedaIst das Frühjahr gekommen
oder das Jahr vergangen?
Der vorletzte Tag.
Tr. Udo Wenzel
The Ukrainian translation seems imprecise, but still remains my favourite: Аніяких думок не лишилось в моїй голові наприкінці року!
Чи вже про весну, чи про минулий рік думати? Передостанній день року.
Переклад Геннадія Туркова
Послание к Римлянам 13:4 – Рим 13:4:
ибо начальник есть Божий слуга, тебе на добро. Если же делаешь зло, бойся, ибо он не напрасно носит меч: он Божий слуга, отмститель в наказание делающему злое.
Послание к Римлянам 13:4 – Рим 13:4: https://bible.by/verse/52/13/4/
Updated zsh alias to include non-work tasks tagged +A or +O from current sprint:
s () {task s \(project:w or \(sprint:$(date +%-V) \(+A or +O\)\) \) "$*"}
or has to be lowercase, brackets in taskwarrior’s filtering have to be escaped.
Use a formula like this:
=IMPORTRANGE("https://docs.google.com/spreadsheets/d/1xrGsOD-yXuORqd8cFg21XOo3ZIw9QbSiNDcnSEatlPM/edit#gid=0", "Sheet1!A:A") 1
For me it was ; as separator; may need to confirm connecting sheets.
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!