Skip to content

Instantly share code, notes, and snippets.

View drscream's full-sized avatar
🕶️
Focusing

Thomas Merkel drscream

🕶️
Focusing
View GitHub Profile
@thomasfr
thomasfr / Git push deployment in 7 easy steps.md
Last active May 1, 2024 23:17
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook
@sansmischevia
sansmischevia / nginx.conf
Last active July 3, 2023 15:26
nginx http proxy to s3 static websites
##
## This nginx.conf servers as the main config file for webflow reverse proxy
##
## RCS:
## https://gist.github.com/sansmischevia/5617402
##
## Hardening tips:
## http://www.cyberciti.biz/tips/linux-unix-bsd-nginx-webserver-security.html
##
@tedwardd
tedwardd / alias_sync.sh
Created May 6, 2013 20:01
Scripts for using Mutt successfully with Active Directory and Exchange calendars
#!/bin/bash
if [[ -f /tmp/aliases.old ]]; then
rm -f /tmp/aliases.old
fi
if [[ -f /tmp/aliases.txt ]]; then
mv /tmp/aliases.txt /tmp/aliases.old
fi
anonymous
anonymous / enable-iscsi
Created January 31, 2013 15:58
I wanted to be able to export iscsi volumes from SmartOS and not worry about them changing GUIDs on reboot. The first file goes in /opt/custom/bin and the second in /opt/custom/smf
#!/bin/sh
set -o xtrace
. /lib/svc/share/smf_include.sh
cd /
PATH=/usr/sbin:/usr/bin:/opt/custom/bin:/opt/custom/sbin; export PATH
case "$1" in
@Thermionix
Thermionix / auth-basic.conf
Last active November 4, 2021 00:56
nginx reverse proxy for sickbeard, couchpotato etc.
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/htpasswd;

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@nogweii
nogweii / sysctl.changed.conf
Created February 22, 2012 20:30
A massive collection of various sysctl files, designed for drop-in CCDC fixing
fs.file-max = 65535
fs.inode-max = 32768
fs.suid_dumpable = 0
kernel.core_uses_pid = 1
kernel.exec-shield = 1
kernel.maps_protect = 1
kernel.msgmax = 65536
kernel.msgmnb = 65536
kernel.panic = 30
kernel.panic_on_oops = 30
@lericson
lericson / gist:847486
Created February 28, 2011 15:45
Gunicorn init script for Gentoo that checks liveliness properly
#!/sbin/runscript
[[ -z "${PIDFILE}" ]] && PIDFILE="/var/run/gunicorn/${SVCNAME}.pid"
[[ -z "${BINARY}" ]] && BINARY="/usr/bin/gunicorn"
depend() {
need net
use dns logger netmount
}