In the middle of the desert you can say anything you want
date -s 13:17:50
also works. It’s more simple than I remembered.
removed border around all windows, we’ll see how I live with it and whether I need it. In work mode it might get confused with similar windows, in play mode it shouldn’t matter. We’ll see.
d4b 33% Tue 26 Mar 2019 01:36:16 PM CET d4b 50% Tue 26 Mar 2019 01:38:22 PM CET d4b 50% Tue 26 Mar 2019 01:40:42 PM CET d4b 17% Tue 26 Mar 2019 01:42:47 PM CET d4b 61% Tue 26 Mar 2019 01:44:48 PM CET d4b 50% Tue 26 Mar 2019 01:48:32 PM CET d4b 28% Tue 26 Mar 2019 01:50:32 PM CET d4b 50% Tue 26 Mar 2019 01:52:31 PM CET d4b 22% Tue 26 Mar 2019 01:54:36 PM CET d4b 00% Tue 26 Mar 2019 01:57:40 PM CET d4b 50% Tue 26 Mar 2019 02:02:24 PM CET d4b 00% Tue 26 Mar 2019 02:04:32 PM CET
455 cpm 98.3%
Anki’s manual says a lot about importing raw cards – and it’s much easier and more flexible to do this than I thought. I might drop anki-vim completely, or write something more minimalistic.
Decided to take a look again at my Bachelor’s thesis and do a nice rewrite in Python3 of the main code.
The date
command can take STRINGS, which as mentioned in the man pages can be quite free-form. I moved my system clock back 1h with sudo date -s "1 hour ago"
. Wow.
For the first time got 100% on D3B! And in general even though the results aren’t the most important thing in D3B they do actually motivate quite a lot. Keeping records and gamification for the win!
d3b 64% Mon 25 Mar 2019 11:43:46 AM CET d3b 100% Mon 25 Mar 2019 11:45:39 AM CET d4b 39% Mon 25 Mar 2019 11:48:12 AM CET d4b 33% Mon 25 Mar 2019 11:52:23 AM CET d4b 44% Mon 25 Mar 2019 11:55:07 AM CET d4b 50% Mon 25 Mar 2019 11:58:35 AM CET d4b 50% Mon 25 Mar 2019 12:00:39 PM CET
Is a python module to save secrets.
python -m keyring [get/set]
for help.
To be able to change backlight.
sudo gpasswd -a sh video
clight -b radeon_bl0 --day-temp=6000 --night-temp=2000
would be nice, but sadly my webcam is covered. But it might be a nice replacement for redshift, sometime.
hide_edge_borders both #<none|vertical|horizontal|both>
This tutorial and extension could separate about 30% of the pictures with the default settings. Margins (and margins to the sides of the image!) are important.
is done by putting the .scm
file to /usr/share/gimp/2.0/scripts/
This tutorial is freaking awesome.
Given the number of images I was dealing with manually configuring each one was not an option. What I wanted was a service that would, given my image collection, just print me a photo album of approx 6x4 images, in chronological order, two per page, with a caption below each detailing the image file name and the date taken.
It provides a .tex
album file and a Python2 file which reads the Exif data and creates a photos.tex
which gets included in the main album file.
scanimage
(SANE) is a “a library and a command-line tool to use scanners”.
sudo scanimage -L
to see the list of scanners, then to scan (for me also with sudo
for some reason):
sudo scanimage --device "xerox_mfp:libusb:002:004" --format=png > name.png
Added a date format to my command line alias:
alias le="ledger -f ~/p/f/l/ledger.txt --strict --date-format '%Y/%m/%d'"
for my date formats.
Also to represent bought currencies, I think the way to do it is:
2019/02/25 Exchanged 100$ for 74.81 at XXX Assets:Cash:Wallet E74.91 @ $100 Assets:Cash:Fund:USD
* It would be interesting to do an implementation of [this xkcd](https://xkcd.com/2112/) using data from Twitter with 'intensity' defined as 'more or less interaction that the norm for this user'
To exclude tasks of a certain project, the syntax for the filter is project.not:projectname
.
Also added a new report for tasks which will never be finished – anki, cleaning, basic org etc., but that I still want to track with timewarrior. t m
now returns me all such tasks.
I find myself grepping through the dict.cc raw file, I might build a script to do that for me. But I often need to find a word with the condition that it’s the first thing on a line, instead as partof a bigger sentence.
^
helps. /^Dru
gives me the lines which start with “Dru”.
d3b 70% Mon 25 Feb 2019 12:16:05 PM CET d3b 79% Mon 25 Feb 2019 12:17:50 PM CET d3b 64% Mon 25 Feb 2019 12:19:26 PM CET d3b 57% Mon 25 Feb 2019 12:21:00 PM CET d3b 86% Mon 25 Feb 2019 12:22:34 PM CET d3b 86% Mon 25 Feb 2019 12:24:38 PM CET d3b 71% Mon 25 Feb 2019 12:27:23 PM CET d3b 50% Mon 25 Feb 2019 12:28:57 PM CET
Deleted VK account. Saw another Verteidigung. Backed up my Android. Finished a ton of small things that I was postponing for weeks.
Using this tutorial:
adb backup -apk -shared -all -f backup-file.adb
To restore: adb restore backup-file.adb
-M
gives monthly transactions.
As I was looking for ideas for small businesses, I found this nice website with small easy microwave recipes: https://www.minmaxmeals.com/recipes/garlic-oatmeal/, and I’ll try today the linked one. In general having such a database of go-to dishes would be quite nice, because I forget about mine often.
For categories, I again used this nice tutorial.
When outputting posts, {%raw%}{{post.excerpt}}{%endraw%}
either takes the first paragraph or a separator.
The separator can be set in config.yml
: `excerpt_separator:
`
published: false
in the front matter. I like this more than the official draft mechanism.
A really elegant way to delete the tags surrounding something:
yitvatp
Tag blocks *tag-blocks* For the "it" and "at" text objects an attempt is done to select blocks between matching tags for HTML and XML. But since these are not completely compatible there are a few restrictions. The normal method is to select auntil the matching . For "at" the tags are included, for "it" they are excluded. But when "it" is repeated the tags will be included (otherwise nothing would change). Also, "it" used on a tag block with no contents will select the leading tag.
Just discovered this randomly after a typo. @@
repeats the last @-macro I used. This will save me really a lot of time!
In this article, this nice way has been mentioned:
def safe_division(*, number, divisor, ignore_overflow, ignore_zero_division):
It forces all arguments after *
to be named during call:
>>> safe_division(number=10**1000, divisor=3**-100, ignore_overflow=True, ignore_zero_division=False)
Add all the new English and German vocabulary to anki, finally.
I BROKE MY TYPING RECORD!!1111111111
(Can jekyll and/or vim do smileys? Apparently it can if you enter the Unicode value of the emoji directly
Test:
😊
WOOOOOOOHOOOOOOO
Also I still can just paste them.
Okay, then behold.)
✨✨✨🌈✨✨✨✨✨🌈🌈🎊🎊🎊🎊🎊🎉🎊🎊🎉🎉🎉✨✨🔥🌈🌈✨✨✨🌈✨✨✨✨✨🌈🌈🎊🎊🎊🎊🎊🎉🎊🎊🎉🎉🎉✨✨🔥🌈🌈✨✨✨🌈✨✨✨✨✨🌈🌈🎊🎊🎊🎊🎊🎉🎊🎊🎉🎉🎉✨✨🔥🌈🌈✨✨✨🌈✨✨✨✨✨🌈🌈🎊🎊🎊🎊🎊🎉🎊🎊🎉🎉🎉✨✨🔥🌈🌈✨✨✨🌈✨✨✨✨✨🌈🌈🎊🎊🎊🎊🎊🎉🎊🎊🎉🎉🎉✨✨🔥🌈🌈✨✨✨🌈✨✨✨✨✨🌈🌈🎊🎊🎊🎊🎊🎉🎊🎊🎉🎉🎉✨✨🔥🌈🌈✨✨✨🌈✨✨✨✨✨🌈🌈🎊🎊🎊🎊🎊🎉🎊🎊🎉🎉🎉✨✨🔥🌈🌈✨✨✨🌈✨✨✨✨✨🌈🌈🎊🎊🎊🎊🎊🎉🎊🎊🎉🎉🎉✨✨🔥🌈🌈✨✨✨🌈✨✨✨✨✨🌈🌈🎊🎊🎊🎊🎊🎉🎊🎊🎉🎉🎉✨✨🔥🌈🌈✨✨✨🌈✨✨✨✨✨🌈🌈🎊🎊🎊🎊🎊🎉🎊🎊🎉🎉🎉✨✨🔥🌈🌈✨✨✨🌈✨✨✨✨✨🌈🌈🎊🎊🎊🎊🎊🎉🎊🎊🎉🎉🎉✨✨🔥🌈🌈✨✨✨🌈✨✨✨✨✨🌈🌈🎊🎊🎊🎊🎊🎉🎊🎊🎉🎉🎉✨✨🔥🌈🌈
I still have no idea how that happened, but it’s quite interesting. We’ll see if and how that continues.
Race # Speed Accuracy Points Place Date 83 119 WPM 99.5% 75 2/5 today 82 87 WPM 97.7% 113 1/2 Feb. 8, 2019 81 93 WPM 98.5% 174 1/5 Feb. 7, 2019 80 87 WPM 97.2% 130 4/5 Feb. 7, 2019 79 87 WPM 97.0% 69 3/5 Feb. 7, 2019 78 101 WPM 98.5% 119 2/5 Jan. 31, 2019 77 87 WPM 97.2% 102 2/5 Jan. 31, 2019
And again, for unicode characters inside vim:
<C-v>U1F60A<esc>
Also, for the table above, to make it align right, I had to change the tabs to spaces. Select and :retab
.