Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
Always be sprinting.

Philihp Busby philihp

👨‍💻
Always be sprinting.
View GitHub Profile
@philihp
philihp / Node_AWS_Linux.md
Created Feb 8, 2017 — forked from nrollr/Node_AWS_Linux.md
Install Node.js on Amazon Linux (EC2)
View Node_AWS_Linux.md

##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

@philihp
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
machine:
environment:
JAVA_TOOL_OPTIONS: '-Dfile.encoding=UTF8 -Duser.timezone=UTC'
_JAVA_OPTIONS: '-Xms512m -Xmx1024m -Xss2m'
java:
version: oraclejdk8
python:
version: 2.7.6
services:
- docker
View converge.bash
function converge() {
id=$1
reason=$2
echo "Converging $id..."
cd ~/code/chef
fab -P -u $USER -R $id converge_service:"$2"
cd -
}
View fourkind.py
#!/usr/bin/python
import random
total = 0;
good = 0;
for n in xrange(1,10**8):
s = "{0:0>8}".format(n);
a = {}
You can’t perform that action at this time.