Skip to content

Instantly share code, notes, and snippets.

Always be sprinting.

Philihp Busby philihp

Always be sprinting.
Block or report user

Report or block philihp

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
philihp / gist:77ed7ac4cfab93ffb97990359e375831
Created Dec 30, 2018
Installing new Ruby 2.6.0 with rbenv
View gist:77ed7ac4cfab93ffb97990359e375831
brew upgrade ruby-build
rbenv install 2.6
philihp /
Created Feb 8, 2017 — forked from nrollr/
Install Node.js on Amazon Linux (EC2)

##Installing Node.js on Amazon Linux AMI

The following will guide you through the process of installing Node.js on an AWS EC2 instance running Amazon Linux AMI 2016.09 - Release Notes

For this process I'll be using a t2.micro EC2 instance running Amazon Linux AMI (ami-d41d58a7). Once the EC2 instance is up-and-running, connect to your server via ssh

View gist:f7dce82fc67cfb4666fa6c0606ddde08
Verifying that "" is my Blockstack ID.
View 2016-11-06-pgp-transition-statement.txt
Hash: SHA1,SHA512
2016-11-06 05:25:00 +0000
I am replacing my old DSA-1024 key with a stronger RSA-4096 key. The primary
motivation is to store my key on a Yubikey Nano which doesn't support DSA,
however there is a possibility that the old key has been compromised. Although
I don't have any evidence to suspect this, I certainly haven't been as careful
over the years as I could have.
philihp / nginx.conf
Last active Dec 5, 2017 — forked from sumardi/nginx.default.conf
Install PHP-FPM, Nginx & MySQL on EC2 with Amazon Linux AMI
View nginx.conf
# Install linux update, followed by GCC and Make
sudo yum -y update
sudo yum install -y gcc make
# Install Nginx and PHP-FPM
sudo yum install -y nginx php56-fpm
# Install PHP extensions
sudo yum install -y php56-devel php56-mysql php56-pdo \
php56-pear php56-mbstring php56-cli php56-odbc \
View circle.yml
JAVA_TOOL_OPTIONS: '-Dfile.encoding=UTF8 -Duser.timezone=UTC'
_JAVA_OPTIONS: '-Xms512m -Xmx1024m -Xss2m'
version: oraclejdk8
version: 2.7.6
- docker
View converge.bash
function converge() {
echo "Converging $id..."
cd ~/code/chef
fab -P -u $USER -R $id converge_service:"$2"
cd -
import random
total = 0;
good = 0;
for n in xrange(1,10**8):
s = "{0:0>8}".format(n);
a = {}
philihp /
Last active Aug 29, 2015
Monte carlo simulator finding the odds that an 8-digit decimal number has exactly 4 of the same digit.
import random
total = 0;
good = 0;
for n in xrange(1,100000000):
i = random.randint(0,99999999)
s = "{0:0>8}".format(i);
philihp /
Last active Aug 29, 2015
Queries Google Voice's web service for all possible phone numbers
import sys
import urllib2
import json
opener = urllib2.build_opener()
opener.addheaders.append(('Cookie', ...put your browser session cookies here... ))
for n in xrange(2000,9999):
npad = "{0:04d}".format(n)
You can’t perform that action at this time.