In the middle of the desert you can say anything you want
Didn’t know that underline is marked +like this+
. Why can’t we just agree on a flavour of markdown :(
Changed my main dtb log file from using spaces to using tabs. 1
:set tabstop=2 " To match the sample file
:set noexpandtab " Use tabs, not spaces
:%retab! " Retabulate the whole file
Added set listchars=tab:\:\
to vimrc. NB space at the end.
When trying to do this: find | grep \/model | grep descr | xargs vim -p
it opens all files in different tabs as wanted, but breaks the terminal afterwards (need to reset
it).
Sometimes I see it and randomly restart and somehow it goes away, today it didn’t.
The usual ‘Invalidate Caches & Restart’ didn’t fix it for me. BUT I had forgotten to annotate it as @Test
.
Other ideas about this from StackOverflow: 1
Uses asterisks, not indentation.
* I am a bullet point
** I am related to the first one
Didn’t notice it before, but Idea shows the beginning condition of the loop when it’s outside the screen and cursor is on it’s closing braket.
Write something that: a) pastes multiline things automatically at the correct indentation b) copies URIs alone, without leading tabs/spaces. As a bonus - copies only the URI at a certain line without anything else. (I believe I can use kitty for this too, need to look into hints again)
The magic formula I used in the irssi days for all cases works here too:
screen -raAd $n
To change it during runtime, <C-A>:scrollback $number
. Otherwise ~/screenrc
:
defscrollback 1000000
You can drag-n-drop files from the OS to a folder in nextcloud web gui, and it will automatically upload the file directly there (and inherit all permissions)
xinput -list
Note the id of “AT Translated Set 2 keyboard” (14 in my case), it’s the laptop keyboard, and of the one labeled “master keyboard” (3 in my case). xinput float $id
and xinput float $id $id-master
. 1
xinput float 14 #disables laptop keyboard
xinput reattach 14 3 #enables it back
Errors like:
Permissions 0644 for '/home/me/.ssh/id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
can be fixed by setting the permissions to 400
.
--add_opens
+ $JAVACMD
For some reason the script took java8 instead of the java11 returned by which java
, through $JAVACMD
. Temporarily fixed by doing JAVACMD="/usr/bin/java" ./the_script.sh
.
If you leave screen in copy mode and detach, it’ll be in copy mode when you attach it back and give the impression that no new output happened from the time you detached it.
Das Indefinitpronomen all- - all- -
Alles ist gut.
Don’t forget that I can use sub/sup HTML tags in markdown!
Created a new basedir, where I symlinked the config.py from the original one:
11399 5.11.2020 09:54 ln -s ~/.config/qutebrowser/config.py ../profile2/config/config.py
To run with it, python3 qutebrowser.py -B ../profile2
(-B
is the same as --basedir
)
My use case would be to run a separate instance with tabs on top instead of in the left, for jupyter and similar. I can’t set tab position per window in the same profile.
As I seem to do that often:
xrealpath() {
realpath "$1"
realpath "$1" | xc
}
xpwd() {
pwd
pwd | xc
}
Both outputs to screen and saves to buffer. xc
is still this:
alias xp='xclip -selection clipboard o'
Nullable integer data type — pandas 1.1.4 documentation
Usual int
cannot contain NaN
values, and things like df[0].astype(int)
fail in that case.
To use nullable ints: df[0].astype('Int64')
. (Note - it’s a string. int
works both ways.)
Pandas can do styling! Had no idea: Styling — pandas 1.1.4 documentation
def _color_original(s):
if s[5]==-1:
return ['background-color: lightgrey']*len(s)
elif s[5]>0.9:
return ['background-color: #a5a1ff']*len(s)
elif s[5]>0.8:
return ['background-color: #bebaff']*len(s)
elif s[5]>0.7:
return ['background-color: #d8d6ff']*len(s)
else:
#print(s)
return ['background-color: white']*len(s)
df.style.apply(_color_original, axis=1)
style.applymap()
is elementwise, style.apply()
is per row/column/table.
<Ctrl-Shift-R>
does a hard-restart that sometimes fixes issues with Electron apps such as Slack. (TS)
~
inverts boolean values.
Used like this:
dd[~dd.companyName.str.contains("po")]
-> “does not contain”