In the middle of the desert you can say anything you want
screen
scrolling<C-a>+Esc
– and then you can move with whatever usual ways there are, esp. arrow keys and Page up/downThis 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.
9fb017224a344dc5f028b5a6b8000a8afb30f6fb
How to increment a variable in bash? - Ask Ubuntu
var=$((var + 1))
is the most portable one.
some_command >file.log 2>&1
is the only one that works for me in all cases. (shell - Redirect stderr and stdout in Bash - Stack Overflow)
"$@"
are the arguments one can iterate through, and "@#"
is their number.
Use vi shortcuts in terminal | Vim Tips Wiki | FANDOM powered by Wikia – add
set editing-mode vi set keymap vi-command
to ~/.inputrc
or /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 mycommand test
.
IPFS is the Distributed Web – it looks very interesting, I should read the whitepaper or some basic intro (A Beginner’s Guide to IPFS – HackerNoon.com)
zip
add to zipfile while ignoring directorieszip -j fileone filetwo ~/home/me/some/directory/file myzipfile.zip
. -j
means “junk directory structure”
tf.squeeze
to remove dimensions of [1]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.
It removes any dimensions of shape 1 it finds. If I provide an axis
parameter, it will only look at that dimension.
fixum
– a fixed pay. \
Elided - definition of elided by The Free Dictionary
tr.v. e·lid·ed, e·lid·ing, e·lides
1. a. To omit or slur over (a syllable, for example) in pronunciation. b. To strike out (something written). 2. a. To eliminate or leave out of consideration. b. To cut short; abridge.
First seen as “[elided 10 identical lines from previous traceback]” in Tensorflow/Python
For a more systematic understanding: * jtoy/awesome-tensorflow: TensorFlow - A curated list of dedicated resources http://tensorflow.org is a list of nice stuff, not necessarily meant to be read in the same order * astorfi/TensorFlow-Roadmap: Organized & Useful Resources about Deep Learning with TensorFlow has a more “more GIFs to the god of GIFs” feel to it, but is meant to be read in a sequential order, and the resources look very nice.
For a split window: You can use
Ctrl-w +
andCtrl-w -
to resize the height of the current window by a single row. For a vsplit window: You can useCtrl-w >
andCtrl-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)
:tabm -1
moves it to the left; accepts absolute and relative parameters
(Especially handy if you’ve jumped to a global mark): <C-o>
__dict__
objectLinux Follies: Python’s __dict__
Each object has a .__dict__
attribute, which contains the objects’ fields. They can also be directly edited.
Intro to tf.estimator and tf.data Good practices in Modern Tensorflow for NLP
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.
Counter is much faster than count() in cases when you need to count multiple objects – you don’t have to iterate once for each object.
Use from tqdm import tqdm_notebook as tqdm
instead of usual vanilla tqdm.
vimdiff file1 file2
opens a nice vim session with two buffers. [c
and ]c
jump back and forward between changes. (See http://vimcasts.org/episodes/comparing-buffers-with-vimdiff/)
<C-w> <C-r>
just rotates all the splits, and <C-w> x
to switch the current window with the next one. (split - Swap the position of two windows - Vi and Vim Stack Exchange)
:history /
(Is there search and replace history in vim? - Vi and Vim Stack Exchange)