Skip to content

Instantly share code, notes, and snippets.

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@ptthisdan
ptthisdan / 0_reuse_code.js
Created January 2, 2014 08:23
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
@ptthisdan
ptthisdan / Makefile
Created December 9, 2013 11:58 — forked from ankurs/Makefile
hashtable implementation in c
CC = gcc -fPIC
LDFLAGS = -lm
# set DEBUG options
ifdef DEBUG
CFLAGS = -Wall -Wextra -ggdb -pg -DDEBUG
else
CFLAGS = -Wall -O2
endif
@ptthisdan
ptthisdan / hash.c
Created December 9, 2013 11:57 — forked from tonious/hash.c
#define _XOPEN_SOURCE 500 /* Enable certain library functions (strdup) on linux. See feature_test_macros(7) */
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <string.h>
struct entry_s {
char *key;
char *value;