Skip to content

Instantly share code, notes, and snippets.

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@yunga
yunga / Cliref.md
Last active September 12, 2024 14:10
CLIRef.md
_________ _____ _______________       _____
\_   ___ \\    \\___________   \____ / ____\     ~/.bash/cliref.md
/    \  \/|    | |   ||       _/ __ \  __\    copy/paste from whatisdb
\     \___|__  |_|_  ||    |   \  __/|_ |   http://pastebin.com/yGmGiDQX
 \________  /_____ \_||____|_  /____  /_|     [email protected]
 20160515 \/ 1527 \/         \/     \/

alias CLIRef.txt='curl -s "http://pastebin.com/raw/yGmGiDQX" | less -i'

@kennwhite
kennwhite / vpn_psk_bingo.md
Last active November 8, 2024 20:14
Most VPN Services are Terrible

Most VPN Services are Terrible

Short version: I strongly do not recommend using any of these providers. You are, of course, free to use whatever you like. My TL;DR advice: Roll your own and use Algo or Streisand. For messaging & voice, use Signal. For increased anonymity, use Tor for desktop (though recognize that doing so may actually put you at greater risk), and Onion Browser for mobile.

This mini-rant came on the heels of an interesting twitter discussion: https://twitter.com/kennwhite/status/591074055018582016

@njh
njh / spammers.md
Last active April 27, 2018 11:14
People who send me spam
# FF57+, Use Default Dark Theme + Normal Density
:root:-moz-lwtheme-brighttext {
--chrome-background-color: #424242 !important;
--chrome-color: #8f8f8f !important;
--chrome-secondary-background-color: #363636 !important;
--toolbox-border-bottom-color: #2e2e2e !important;
}
[data-identity-color="blue"] {
--identity-tab-color: #7193F7 !important;
@realdimas
realdimas / reset_connect_via_direct_ssh_invocation.yml
Last active April 24, 2020 01:48
Manual reset_connection via local SSH invocation for Ansible v2.5.0 … v2.5.5 (fixed in v2.5.6)
# As of Ansible 2.5.2 reset_connection meta function is broken
# (see https://github.com/ansible/ansible/issues/27520)
# Below is reimplementation of reset_connect via local ssh command invocation
# Requires Ansible 2.5+ (config lookup plugin) and OpenSSH 5.9+ ("-O stop" command)
# *Update*
# Fixed in v2.5.6
# https://github.com/ansible/ansible/blob/stable-2.5/changelogs/CHANGELOG-v2.5.rst#bugfixes-9
- name: Reset persistent connection to host