Skip to content

Instantly share code, notes, and snippets.

tmux cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@jdloft
jdloft / cvimrc
Created September 29, 2015 19:15
My cVimrc
" set noautofocus
let searchalias g = "google"
let blacklists = ["https://mail.google.com/*","*://mail.google.com/*","@https://mail.google.com/mail/*","https://koding.com/*"]
let mapleader = ","
@jdloft
jdloft / revisr-config.md
Created November 13, 2015 04:53
How to configure Revisr for ssh

Revisr config

  1. Change www-data home dir to something like /var/lib/www-data
  2. Generate ssh key pair and place in /var/lib/www-data/.ssh/id_rsa
  3. Add ssh key to GH account
  4. Configure git username and email
  5. Set permissions on blog dir to allow www-data to write
  6. Set git remote url to use ssh protocol
@jdloft
jdloft / user.css
Last active January 5, 2016 16:34 — forked from thatkookooguy/user.css
This will make tty.js open up a terminal in fullscreen after a user connects & change the background color to the default purple. This should be added to tty.js/static/
.terminal {
background-color: #300A24 !important;
border: #300A24 solid 5px;
}
@jdloft
jdloft / secure-shell-solarized.js
Last active February 25, 2019 06:14 — forked from johnbender/prefs.js
Set up Chrome's Secure Shell extension to use solarized terminal colors
// Disable bold.
term_.prefs_.set('enable-bold', false)
// Solarized Dark
term_.prefs_.set('background-color', "#002b36");
term_.prefs_.set('foreground-color', "#839496");
term_.prefs_.set('cursor-color', "rgba(147, 161, 161, 0.5)");
// Solarized Light
//term_.prefs_.set('background-color', "#fdf6e3");
@jdloft
jdloft / .bash_profile
Last active October 18, 2021 01:36 — forked from dylon/.bash_profile
How to get 256 colors in a standard Linux terminal + screen (without X windows).
# ...
# This is for what I would consider a standard setup, where TTY's 1 -- 6 are
# "linux" terminals and TTY's 7+ are reserved for X windows. You should adjust
# it to your setup, accordingly.
#
# ::: Important ::: You must have both fbterm and screen installed and on your
# path for this to work.
case $(tty) in /dev/tty[0-6]*)
@jdloft
jdloft / keyboard-test.sh
Created October 26, 2016 19:08
Keyboard testing script
#!/bin/bash
function findInArray() {
local n=$#
local value=${!n}
for ((i=1;i < $#;i++)) {
if [[ ${!i} == ${value} ]]; then # was == ${value}:*
echo "${!i}"
return 0
fi
@jdloft
jdloft / proxy.sh
Created July 24, 2020 17:11
Looping ssh forwarding proxy
#!/bin/sh
while :; do
echo "Proxy run"
ssh -NT -o ServerAliveInterval=30 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes -i $SSH_KEY -R 1234:localhost:22 USER@REMOTE
echo "End loop backoff (30s)"
sleep 30
done
@jdloft
jdloft / slate-pool-metadata.json
Created September 12, 2020 01:26
Slate pool metadata
{
"name": "Slate Pool",
"description": "Stake different",
"ticker": "SLATE",
"homepage": "https://slatepool.io"
}
@jdloft
jdloft / pool-metadata.json
Created February 10, 2021 02:54
Slate test pool meta
{
"name": "Slate Test Pool",
"description": "Testing really cool things",
"ticker": "SL8",
"homepage": "https://slatepool.io"
}