Giving names to screen sessions
To set a name to a screen session to make attaching it easier, you either set it as parameter during screen creation (
screen -S screenname) or set it from inside an attached screen by typing
<C-a> :sessionname screenname. It will look like that:
There are several suitable screens on: 74720.trying_to_run_GPU (03/28/20 00:33:28) (Attached) 70666.whatisthis (03/28/20 00:20:53) (Detached)
To attach it I can use only its name:
screen -raAd whatisthis
TODO actually read the man pages and have a better understanding of these flags instead of treating them like incantations.
watch command set interval and highlight changes
This is nice! To watch a file grow in size, except
watch ls -lar you can do
watch -d -n 1 ls -lar.
-d makes it highlight the differences, and
-n for some reason is the interval. (
-i was taken I guess).
Use only one GPU for training in Tensorflow
I keep googling this, so:
And to set an environment variable before running the script (in bash at least) it’s
TEST=foo; echo $TEST (shell - How do I set an environment variable on the command line and have it appear in commands? - Unix & Linux Stack Exchange).
export is just to make it available for other commands.
It’s quite cute how google interprets me looking for
kitty paths linux
cat paths linux, as in I believe that they are kinda similar in many contexts.
That said, it’s very refreshing to see a program where reading the config file documentation on its official website doubles as basic tutorial for the program, since all the keyboard shortcuts used in the example config are the real ones.
Tensorboard & SSH tunnelling
Not sure why this surprises me, but I can first start a SSH shell that does a tunnel (.. and opens a SSH shell), then from it start the thing on the port that I am tunnelling. This almost looks like something I could automate if I do it often enough.
speiseöl | Übersetzung Englisch-Deutsch is basically any cooking oil.
Book about baking bread
If you want to learn more about the process and jump off the deep end, Peter Reinhart’s book “The Bread Baker’s Apprentice” is a great place to start. It is detailed without being pedantic, simple without being over-simplified, and oriented for the home baker without forgetting the reasons that professionals do things the way they do.