Skip to content

Instantly share code, notes, and snippets.

View ryanrankin's full-sized avatar

ryanrankin

  • Earth, rarely
View GitHub Profile
@ryanrankin
ryanrankin / tmux.conf
Created October 15, 2020 19:38 — forked from anonymous/tmux.conf
vim friendly tmux configuration
#Prefix is Ctrl-a
set -g prefix C-a
bind C-a send-prefix
unbind C-b
set -sg escape-time 1
set -g base-index 1
setw -g pane-base-index 1
#Mouse works as expected
#!/bin/sh -e
##
# CREATES A TAP INTERFACE AND ADDS TO NETWORK BRIDGE "virb0"
#
##
# Default tap0 is down
TAP_INTERFACE_DOWN=1;
if [[ `grep 'tap0' /proc/net/dev` ]]; then
# According to http://www.postfix.org/TLS_README.html
# http://www.postfix.org/TLS_README.html#server_logging
smtpd_tls_loglevel = 1
# Enable opportunistic encryption
smtp_tls_security_level = may
# Disable insecure protocols
smtpd_tls_protocols = !SSLv2, !SSLv3
@ryanrankin
ryanrankin / gist:0f882c92d58ada01235c
Last active January 27, 2016 23:01 — forked from wwwdata/gist:11217377
FreeBSD service script for NodeJS with pm2
#!/bin/sh
# PROVIDE: pm2
# REQUIRE: NETWORKING SERVERS DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
# inspired by http://habrahabr.ru/post/137857/
. /etc/rc.subr
@ryanrankin
ryanrankin / Contract Killer 3.md
Created September 30, 2015 19:32 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post