start new:
tmux
start new with session name:
tmux new -s myname
# Rename an email address in all old commits. | |
# WARNING: Will change all your commit SHA1s. | |
# Based off of the script from here: | |
# http://coffee.geek.nz/how-change-author-git.html | |
git filter-branch -f --commit-filter ' | |
if [ "$GIT_COMMITTER_EMAIL" = "joern.zaefferer@googlemail.com" ]; | |
then | |
GIT_AUTHOR_EMAIL="joern.zaefferer@gmail.com"; | |
GIT_COMMITTER_EMAIL="joern.zaefferer@gmail.com"; | |
git commit-tree "$@"; |
import sys | |
import os | |
import subprocess | |
def git(args, **kwargs): | |
environ = os.environ.copy() | |
if 'repo' in kwargs: | |
environ['GIT_DIR'] = kwargs['repo'] | |
if 'work' in kwargs: | |
environ['GIT_WORK_TREE'] = kwargs['work'] |
# This is an example resource file for rTorrent. Copy to | |
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to | |
# uncomment the options you wish to enable. | |
# Maximum and minimum number of peers to connect to per torrent. | |
min_peers = 1 | |
max_peers = 100 | |
# Same as above but for seeding completed torrents (-1 = same as downloading) |
When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.
Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008
…………………………
Command to run: | |
ssh -L 2222:localhost:8501 user@remoteserver.com | |
where 2222 is the local port mapping it can be any number above 1000 | |
where localhost must be set to localhost and refers to your current connection | |
where 8501 is the port you will be opening up on the remote machine | |
where user@remoteserver.com is the first hop in your quest for internal access |
// --- Compiling --- | |
$ wget http://download.redis.io/releases/redis-2.8.3.tar.gz | |
$ tar xzvf redis-2.8.3.tar.gz | |
$ cd redis-2.8.3 | |
$ make | |
$ make install | |
// --- or using yum --- | |
$ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
$ rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm |
/** Emulate `cmd1 | cmd2 | more` pipeline using recursion. | |
http://stackoverflow.com/questions/20434124/recursive-piping-in-unix-environment | |
*/ | |
#include <signal.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> |
-module(an_actor). | |
-behaviour(gen_server). | |
-export([ | |
start_link/0, sum/3, | |
init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3 | |
]). | |
start_link() -> gen_server:start_link(?MODULE, [], []). |