Bash print full path to a file
I’m so glad this exists and I don’t have to do pwd+ls+copypaste anymore!
# realpath example.txt /home/username/example.txt
Not a default shell built-in,
readlink -e (or
-f) does the same.
Moses was fond of repeating at this time a quote often used in Albany. “You can get an awful lot of good done in the world if you’re willing to let someone else take the credit for it.” (The power broker by Robert A. Caro, p.315)
xclip using it right
The line is
yourcommand | xclip -sel clip which is aliased to
yourcommand | xc.
scp port forwarding
If I have something running on
servername:6006 reachable only from 127.0.0.1 (on the server itself), I can do this:
ssh -L 4000:127.0.0.1:6006 servername
Which makes it available for me from my localhost as
To check if the thing running on
servername can be reached from outside,
qutebrowser tabs width
Added this to qutebrowser’s
config.py, two keybindings to make the tabs width smaller and back, to save screen space.
tetchy - “Easily annoyed or irritated; peevish, testy or irascible.”
Lost in Larrimah - Whooshkaa has 6 episodes 20 mins each and it sounds interesting.
PyFormat: Using % and .format() for great good! is a website dedicated completely to Python formatting that I could read through someday.