git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
gpg --keyring pubring.kbx --armor --export somebody@example.com > some-key | |
gpg --no-default-keyring --keyring pubring.gpg --import < some-key |
# check number of used FDs per process | |
ls /proc/$pid/fd | wc -l | |
# check number of used FDs system-wide | |
# returns: 1. allocated, 2. allocated but free (usually 0), 3. system max | |
sysctl fs.file-nr | |
# check FD per user limit | |
ulimit -a |
# HTTP | |
sock = TCPSocket.new('example.com', 80); | |
sock.write("GET /path HTTP/1.1\r\nHost: example.com\r\nConnection: close\r\n\r\n"); | |
puts sock.read; | |
sock.close; | |
# HTTPS | |
sock = TCPSocket.new('example.com', 443) | |
sslsock = OpenSSL::SSL::SSLSocket.new(sock) | |
sslsock.connect |
#!/bin/sh | |
# Set this to a list of space-separated paths to files/directories, | |
# which will be stashed away, when the current branch is changed | |
ARTIFACT_PATHS="deps _build" | |
# Set this to a directory where you would like the build artifacts of | |
# other branches to be stashed | |
ARTIFACT_STASH_PATH=".artifacts-stash" | |
PREVIOUS_HEAD="$1" | |
CURRENT_HEAD="$2" | |
IS_BRANCH_CHECKOUT="$3" |
for E in `cat ~/some/file/with/email/addresses` | |
do | |
swaks --to $E --quit-after RCPT --hide-all | |
[ $? -ne 0 ] && echo $E | |
done |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Form Validation</title> | |
<style> | |
body { padding: 10px; } | |
</style> | |
</head> | |
<body> |
# requires the git-prompt zsh plugin, which in turn requires python2 | |
PROMPT="%{$fg[blue]%}%n%{$reset_color%} in " | |
PROMPT+='%{$fg[cyan]%}%~%{$reset_color%} $(git_super_status)' | |
PROMPT+=' | |
%(?:%{$fg_bold[green]%}$ :%{$fg_bold[red]%}$ )%{$reset_color%}' | |
RPROMPT='' | |
ZSH_THEME_GIT_PROMPT_CHANGED="%{$fg[red]%}%{∙%G%}" | |
ZSH_THEME_GIT_PROMPT_CONFLICTS="%{$fg[red]%}%{×%G%}" |
git ls-files | egrep '\.erl|\.ex[s]$' | xargs cat | sed '/^$/d' | wc -l |