Skip to content

Instantly share code, notes, and snippets.

Patrick Humpal phumpal

Block or report user

Report or block phumpal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
phumpal / ebs_raid.rb
Created Jun 7, 2011 — forked from tnine/ebs_raid.rb
Ebs raid mounting. Links to this jira issue
View ebs_raid.rb
include Opscode::Aws::Ec2
#Auto locates and attached ebs devices based on the data bag they reside in. The following test cases need to be performed
# Create multiple resources with new node: PASS
# Re-attach multiple resources after a reboot: PASS
# Create resources across 2 runs. First run creates first raid set, second run re-attaches then creates: PASS
View gist:1999567
set -u
set -e
# Example init script, this can be used with nginx, too,
# since nginx and unicorn accept the same signals
# Feel free to change any of the following variables for your app:
phumpal / rbac.txt
Created May 30, 2012
LogZilla RBAC Update
View rbac.txt
*** logzilla-svn/html/includes/ajax/rbac.php 2012-05-30 09:53:41.000000000 -0700
--- logzilla/html/includes/ajax/rbac.php 2012-05-30 09:53:02.000000000 -0700
*** 196,201 ****
--- 196,204 ----
if ($newkey > 0) {
$sql = "UPDATE hosts set rbac_key=$newkey WHERE host='$host'";
$result = perform_query($sql, $dbLink, $_SERVER['PHP_SELF']);
+ } elseif ($newkey == 0) {
+ $sql = "UPDATE hosts set rbac_key=1 WHERE host='$host'";
phumpal /
Created Nov 5, 2012 — forked from parente/
run a command in virtualenv, useful for supervisord
if [ -z $VENV ]; then
echo "usage: runinenv [virtualenv_path] CMDS"
exit 1
. ${VENV}/bin/activate
shift 1
echo "Executing $@ in ${VENV}"
exec "$@"
phumpal / 1hosts
Last active Dec 17, 2015
When is down my VM builds containing @rvm #fail. I have a VM running a barebones Nginx on
View 1hosts
phumpal / Vagrantfile
Created Jul 11, 2013
Simple Vagrant file for vmware_fusion provider
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config| = "gtl"
config.vm.box_url = "" :public_network
phumpal / robots.txt
Last active Dec 20, 2015
Magento robots.txt template
View robots.txt
# Google Image Crawler Setup
User-agent: Googlebot-Image
# Crawlers Setup
User-agent: *
# Directories
Disallow: /404/
Disallow: /app/
set -e
sudo apt-get install librealine-dev libssl-dev libncurses5-dev -y
cd ~/
tar -zxf mysql-5.1.65.tar.gz
cd mysql-5.1.65
./configure '--prefix=/usr' '--exec-prefix=/usr' '--libexecdir=/usr/sbin' '--datadir=/usr/share' '--localstatedir=/var/lib/mysql' '--includedir=/usr/include' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-system-type=debian-linux-gnu' '--enable-shared' '--enable-static' '--enable-thread-safe-client' '--enable-assembler' '--enable-local-infile' '--with-fast-mutexes' '--with-big-tables' '--with-unix-socket-path=/var/run/mysqld/mysqld.sock' '--with-mysqld-user=mysql' '--with-libwrap' '--without-readline' '--with-ssl' '--without-docs' '--with-extra-charsets=all' '--with-plugins=max' '--with-embedded-server' '--with-embedded-privilege-control'
View slack.output.json
"message":"handler output",
phumpal / rack_auth
Created Aug 11, 2014
Grab a Rackspace auth token
View rack_auth
curl -s -d \
}' \
You can’t perform that action at this time.