(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
[user] | |
name = Pavan Kumar Sunkara | |
email = [email protected] | |
username = pksunkara | |
[init] | |
defaultBranch = master | |
[core] | |
editor = nvim | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
pager = delta |
def path_cost(graph, path, weights=None): | |
pathcost = 0 | |
for i in range(len(path)): | |
if i > 0: | |
edge=graph.es.find(_source=path[i-1], _target=path[i]) | |
if weights != None: | |
pathcost += edge[weights] | |
else: | |
#just count the number of edges | |
pathcost += 1 |
This can reduce files to ~15% of their size (2.3M to 345K, in one case) with no obvious degradation of quality.
ghostscript -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
Other options for PDFSETTINGS:
# sleepy flower girl | |
(◡ ‿ ◡ ✿) | |
# y u no | |
ლ(ಠ益ಠლ) | |
# smiling breasts | |
(^人^) | |
# flipping tables |
To use a yubico U2F token on CentOS/RHEL/Fedora you need to add the specific udev file to your system to recognize them.
Get the udev rules
wget -O /etc/udev/rules.d/70-u2f.rules https://raw.githubusercontent.com/Yubico/libu2f-host/master/70-u2f.rules
Reload device events
#compdef assh | |
# assh autocompletion for oh-my-zsh | |
# Requires: assh installed | |
# Author: Dominik Schilling (@ocean90) | |
# Install: | |
# Copy the file to ~/.oh-my-zsh/plugins/assh/_assh and add assh to the plugins list in your ~/.zshrc file. | |
# Resources: |
This guide is unmaintained and was created for a specific workshop in 2017. It remains as a legacy reference. Use at your own risk.
Workshop Instructor:
This workshop is distributed under a CC BY-SA 4.0 license.