Skip to content

Instantly share code, notes, and snippets.

@bitless
bitless / DefaultInput-part.ini
Created November 13, 2014 08:22
goat simulator mac default bindings edit+
; ~/Library/Application Support/Steam/SteamApps/common/GoatSimulator/GoatSimulator.app/Contents/Resources/GoatGame/Config/DefaultInput.ini
; --- Goat bindings
; ---
.Bindings=(Name="Escape",Command="ShowPauseMenu")
.Bindings=(Name="NumPadEight",Command="GBA_Forward")
.Bindings=(Name="NumPadFive",Command="GBA_Back")
.Bindings=(Name="NumPadFour",Command="GBA_Left")
<IfModule mod_rewrite.c>
RewriteEngine On
## HOST RULES
# force www on production host
RewriteCond %{HTTP_HOST} !mydev|mystage [NC]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
@bitless
bitless / db-wp-bak.sh
Created November 4, 2013 17:36
backup database and wp uploads to svn
PATH='/bin:/usr/bin'
## vars
dbs='dbase'
dbu='user'
dbp='pass'
dbdump='dump.sql'
@bitless
bitless / subliveswitch.sh
Last active December 21, 2015 14:49
blunt plugin switching for sublime text 2
#!/bin/bash
## defaulting to the present concern, a save_on_modified script, from
## http://stackoverflow.com/questions/18234377/sublime-text-plugin-installing-and-using
if test -z "$1"
then
exit 1 ## "action required"
else
ACTION=$1