Skip to content

Instantly share code, notes, and snippets.

@maxis1718
maxis1718 / tmux.conf
Created June 7, 2017 04:20 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
// ------------------------------------------------------ //
// (1) Object function with `prototype`
// ------------------------------------------------------ //
var Pokemon = function (pokemonName) {
this.name = pokemonName;
};
Pokemon.prototype.bark = function () {
console.log("Hey, I'm " + this.name); // this here refers to "Pokemon"
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=1.8
@maxis1718
maxis1718 / tmux.md
Last active August 29, 2015 14:13 — forked from andreyvit/tmux.md

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

def fib(n, fibs=[1, 1]):
if n >= len(fibs):
fibs.append(fib(n - 2) + fib(n - 1))
return fibs[n]
@maxis1718
maxis1718 / zsh.md
Created July 8, 2014 15:31 — forked from tsabat/zsh.md
@maxis1718
maxis1718 / 0_reuse_code.js
Created May 17, 2014 08:37
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console