(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
:
#!/usr/bin/python | |
"""Print a swatch using all 256 colors of 256-color-capable terminals.""" | |
__author__ = "Marius Gedminas <marius@gedmin.as>" | |
__url__ = "https://gist.github.com/mgedmin/2762225" | |
__version__ = '2.0' | |
def hrun(start, width, padding=0): |
from subprocess import Popen, PIPE, STDOUT | |
import subprocess | |
import math, sys | |
from time import sleep | |
from os import path, access, W_OK, R_OK, F_OK | |
def cut(movie, start, clip): | |
subprocess.Popen(["ffmpeg", #Calls ffmpeg program | |
"-ss",str(start), #Begining of recording, must be string | |
"-t", '30', #How long to record clip for, must be a string |
wget --no-check-certificate https://raw.github.com/seebi/dircolors-solarized/master/dircolors.ansi-dark
mv dircolors.ansi-dark .dircolors
eval `dircolors ~/.dircolors`
git clone https://github.com/sigurdga/gnome-terminal-colors-solarized.git
cd gnome-terminal-colors-solarized
./set_dark.sh
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
all: thread_prng adversary Makefile advantages | |
thread_prng: thread_prng.c | |
gcc --std=c99 -o thread_prng -lpthread thread_prng.c | |
adversary: adversary.c | |
gcc --std=c99 -o adversary adversary.c | |
advantages: adversary thread_prng | |
for option in r m; do \ |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"