Skip to content

Instantly share code, notes, and snippets.

@larrybotha
larrybotha / A.markdown
Last active August 29, 2015 13:55
Beer Pong - Referee Version

Beer Pong - Referee!!!

This is a variation of beer pong that allows for as many players as a table can fit, and ends when you die.

The basic rules are simple. Add your own rules as you see fit.

The Players

There are 2 types of players in this version of beer pong.

@larrybotha
larrybotha / A.markdown
Last active August 29, 2015 14:01
Nginx site specific configs.

Nginx Configs For Homebrew Install

A list of configs specific to different environments.

Found at /usr/local/etc/nginx/

var distanceInput = document.getElementById("distance");
@larrybotha
larrybotha / A.markdown
Last active August 29, 2015 14:07
Fix WordPress update issues on local Apache sites by updating Apache's User and Group

Fix WordPress Asking For FTP Credentials On Mac

Credit goes to Justin Kopepasah: Change Local Apache User on a Mac (Mavericks)

Apache permissions on Mac (Mavericks) prevents uploads on certain local environments, particularly updating of WordPress' core and plugins (WordPress will ask for FTP credentials).

To fix this, change Apache's default User and Group.

# /etc/apache2/httpd.conf
@larrybotha
larrybotha / install_rbenv.sh
Last active August 29, 2015 14:27 — forked from sdbondi/install_rbenv.sh
Install our development ruby environment
#!/usr/bin/env bash
set -eo pipefail
# Install rbenv
if [[ ! -d ~/.rbenv ]]; then
echo "Installing rbenv"
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
if [[ ! `grep 'eval "\$(rbenv init -)"' ~/.bashrc` ]]; then
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
@larrybotha
larrybotha / install_wkhtmltoimage.sh
Last active August 29, 2015 14:27 — forked from sdbondi/install_wkhtmltoimage.sh
Install wkhtmltoimage
#!/usr/bin/env bash
set -eo pipefail
DEPS='openssl build-essential libssl-dev libxrender-dev git-core libx11-dev libxext-dev libfontconfig1-dev libfreetype6-dev fontconfig xfonts-75dpi libjpeg-turbo8'
echo $DEPS | xargs apt-get -y install
rm -f /tmp/wkhtmltox-0.12.1_linux-trusty-amd64.deb
wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb -P /tmp
dpkg -i /tmp/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb
@larrybotha
larrybotha / Default (OSX).sublime-keymaps
Created June 15, 2012 09:33
Sublime Text 2 | User Settings | path: Packages/User
[
{ "keys": ["super+shift+h"], "command": "htmlprettify" }
]
@larrybotha
larrybotha / Illustrator to Fireworks.xml
Created June 20, 2012 22:52
CS4 Fireworks | Custom Shortcuts
<?xml version="1.0" encoding="UTF-8"?>
<!-- FW shortcut file -->
<shortcutfile readonly="false" >
<menu_commands >
<command id="cmd_PreviewAllPagesInBrowser" count="1" >
<shortcut text="4 123" />
</command>
<command id="cmd_Prev_Selection" count="1" >
<shortcut text="6 37" />
@larrybotha
larrybotha / gist:2988111
Created June 25, 2012 11:38
Mac | Useful Commands
RESULT COMMAND
tooltip delay defaults write -g NSInitialToolTipDelay -int 500
show hidden files defaults write com.apple.Finder AppleShowAllFiles TRUE
make /Library visible chflags nohidden ~/Library/
folders before files link
@larrybotha
larrybotha / Custom.css
Created July 3, 2012 11:49
Chrome | Developer Tools | Themes | Sublime Text 2 Monokai
/**********************************************/
/*
/* Based on Todd Werth's IR_Black:
/* http://blog.toddwerth.com/entries/2
/*
/* Inspired by Darcy Clarke's blog post:
/* http://darcyclarke.me/design/skin-your-chrome-inspector/
/*
/**********************************************/