- ssh - Scroll inside Screen, or Pause Output - Unix & Linux Stack Exchange
<C-a>+Esc– and then you can move with whatever usual ways there are, esp. arrow keys and Page up/down
- Understand shape inference in deep learning technologies
- Tensorflow Records? What they are and how to use them <– excellent!
Greedis absolutely wonderful and much more interesting than I thought at the beginning.
cal calendar alias
cal -m -w, which gives me Monday as starting date and shows the week numbers.
Recording audio from speakers
This answer: sound - How to record output to speakers? - Ask Ubuntu mentions “Sound recorder”, and it works very well. Has weird settings about staying on top, running on startup etc that have to be changed.
Increment variable in bash an math in general
How to increment a variable in bash? - Ask Ubuntu
var=$((var + 1)) is the most portable one.
Set up vim keybindings in bash/zsh/… via inputrc
set editing-mode vi set keymap vi-command
/etc/inputrc and restart terminal.
I can use
!2332-style stuff inside commands as I type them!
mycommand !23 if !23 is
test would run as
zip add to zipfile while ignoring directories
zip -j fileone filetwo ~/home/me/some/directory/file myzipfile.zip.
-j means “junk directory structure”
Qutebrowser focus tab N keybindings
Now number keys focus tabs, as I had on Firefox:Read more...
tf.squeeze to remove dimensions of 
If I had a tensor of dimension [1, 2, 3], tf.squeze() would turn it into [2, 3]. tf.squeeze | TensorFlow Core r1.14 | TensorFlow.Read more...
print_full to output stuff with max everything
Shapes and ranks and tensors and stuff
Vim resize splits / vsplits
For a split window: You can use
Ctrl-w -to resize the height of the current window by a single row. For a vsplit window: You can use
Ctrl-w <to resize the width of the current window by a single column. Additionally, these key combinations accept a count prefix so that you can change the window size in larger steps. [e.g.
Ctrl-w 10 +] (Resize splits more quickly | Vim Tips Wiki | FANDOM powered by Wikia)
15.6. getopt — C-style parser for command line options — Python 2.7.16 documentation, especially the part
optlist, args = getopt.getopt(args, 'abc:d:') – the options with a colon following need to have a value. Otherwise GetOptError will be raised.
Linux undelete file on ext filesystem with
extundelete /dev/sda4 --restore-file directory/file
I’m shocked this works, and it can do a lot of interesting stuff - files, directories, list of deleted files, etc etc etc.
Linux output logs continuously
I always forget this:
tail -f /var/log/
This is one of the best tutorials I’ve found. Todo: userscript that gives me back the real URL from outline.com.Read more...
Pandas apply() memory hell
This is a nice read about how Pandas’ apply needs to store the Series it creates, that there’s no magic, and that inelegant loops can sometimes be faster. Relevant is the official Enhancing performance guide, that I should read.
Rclone and backing up Google Drive
rclone is nice. I followed the guide in Google drive, and the magic command to copy all content is
rclone sync "drive:Google Photos" /mnt/data/Backups/GP, about 300kb/s, and about 4 hours left.
Qutebrowser private windows
qutebrowser --temp-basedir -s content.private_browsing true