This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /usr/local/etc/clamav/clamd.conf | |
# n.b., mirrors not https at time of writing - regardless, setting this does not fail the update. | |
DatabaseMirror https://database.clamav.net | |
DatabaseDirectory /var/lib/clamav/ | |
OfficialDatabaseOnly yes | |
# /tmp is not the best place for this, but need to choose somewhere writeable by clamscan/clamd user | |
LogFile /tmp/clamd.log | |
LogFileMaxSize 20M | |
LogTime yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# This pre-commit hook will prevent any commit to forbidden branches | |
# (by default, "staging" and "production"). | |
# Put this file in your local repo, in the .git/hooks folder | |
# and make sure it is executable. | |
# The name of the file *must* be "pre-commit" for Git to pick it up. | |
FORBIDDEN_BRANCHES = ["master"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# from http://d.hatena.ne.jp/heavenshell/20121122/1353597292 | |
VENV=$1 | |
echo $VENV | |
if [ -z $VENV ]; then | |
echo "usage: runinenv [virtualenv_path] CMDS" | |
exit 1 | |
fi | |
. ${VENV}/bin/activate | |
shift 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MINION_HOME=/home/minion/minion | |
SUPERVISOR_CONFDIR=/etc/supervisor/conf.d | |
MINION_CONFDIR=/etc/minion | |
MINION_FRONTEND_HOST=localhost | |
MYHOSTNAME=$(hostname) | |
# nginx | |
sudo cp ${MINION_HOME:?}/minion-frontend/etc/minion-dev-server.nginx.conf /etc/nginx/conf.d/minion.conf | |
sudo sed -i "s/minion-dev\.mozillalabs\.com/${MINION_FRONTEND_HOST:?}/g" /etc/nginx/conf.d/minion.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" options for gui | |
if has('gui_running') | |
set guifont=Ubuntu\ Mono\ 12 | |
set guioptions-=T " no toolbar | |
endif | |
" No-brainer options | |
filetype plugin on | |
set nocompatible | |
syntax on |