In the middle of the desert you can say anything you want
signals - How to stop the loop bash script in terminal? - Unix & Linux Stack Exchange
press Ctrl-Z to suspend the script
kill %%
The %% tells the bash built-in kill that you want to send a signal (SIGTERM by default) to the most recently suspended background job in the current shell, not to a process-id.
The goal of variable scopes is to allow for modularization of subsets of parameters, such as those belonging to layers (e.g. when architecture of a layer is repeated, the same names can be used within each layer scope).
d.drop_duplicates(subset=['text'])
For this, markdown uses two tildes ({%raw%}like this{%endraw%}).
(Should I write headers for these posts in /r/savedyouaclick style?)
find
find $LOCATION -name $REQUIRED_FILES -type f -mtime +1 -delete
for files older than one dayfind $LOCATION -name $REQUIRED_FILES -type f -mmin +360 -delete
for the same in minutesAlso relevant is mtime, ctime, and atime - modification time, change time, access time.
mtime changes when you write to the file. It is the age of the data in the file. Whenever mtime changes, so does ctime. But ctime changes a few extra times. For example, it will change if you change the owner or the permissions on the file.
TF_CPP_MIN_LOG_LEVEL=3 python3 tensors.py
does the magic needed
Inserted the following in config.py
:
config.bind('a', 'set-cmd-text -s :open -t')
, to make a
an alias for O
This is really really neat when running shell scripts that run other shell scripts etc.
ps fax
gives a nice tree. Can be combined with other stuff, so ps faux
also works.
TODO actually read through the man pages about this.
>>> exec(open("C:\\test.py").read())
for Python 3, and \
>>> execfile('C:\\test.py')
for Python 2. Works with relative path.Or, from the same SO thread, one can do just import filename_without_extension
, even if it doesn’t follow the structure with main() etc., in my experience.
This is probably one of the most SEO titles I’ve ever created, but I think it applies to all of them.
expand_dims
)# 't' is a tensor of shape [2]
tf.shape(tf.expand_dims(t, 0)) # [1, 2]
tf.shape(tf.expand_dims(t, 1)) # [2, 1]
tf.shape(tf.expand_dims(t, -1)) # [2, 1]
screen
scrolling<C-a>+Esc
– and then you can move with whatever usual ways there are, esp. arrow keys and Page up/down