Skip to content

Instantly share code, notes, and snippets.

View benbowler's full-sized avatar

Ben Bowler benbowler

View GitHub Profile
@benbowler
benbowler / names.txt
Last active April 17, 2020 06:47 — forked from mahemoff/names.txt
Reserved username list
###
A meta-compilation of:
https://raw.github.com/gist/1453705/d253733a56632a8d2c29321a75c18b627fa4dda8/reserved_usernames.rb
http://blog.postbit.com/reserved-username-list.html
http://www.quora.com/How-do-sites-prevent-vanity-URLs-from-colliding-with-future-features
(Took out some company-specific terms at the top of the first one (e.g. imulus, stacks), added one term so far - 'edits'.)
NOTE: Does not include profanities. You may or may not want to add a list of those.
(See https://www.google.com/search?q=profanity+list, but don't try to apply regexp's here because Scunthorpe - http://en.wikipedia.org/wiki/Scunthorpe_problem)
[
"about",
"ac",
"access",
"account",
"accounts",
"activate",
"ad",
"add",
"address",
@benbowler
benbowler / Install composer on Amazon AMI running on EC2
Created December 28, 2016 15:25 — forked from asugai/Install composer on Amazon AMI running on EC2
Install composer on Amazon AMI running on EC2
cd ~
sudo curl -sS https://getcomposer.org/installer | sudo php
sudo mv composer.phar /usr/local/bin/composer
sudo ln -s /usr/local/bin/composer /usr/bin/composer
then you can run
$ sudo composer install
@benbowler
benbowler / install-ffmpeg-amazon-linux.sh
Last active December 28, 2016 15:34 — forked from alfonsodev/install-ffmpeg-amazon-linux.sh
How to compile ffmpeg on Amazon Linux (EC2)
#!/bin/sh
# Based on gist.github.com/gboudreau/install-ffmpeg-amazon-linux.sh
# and https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
# updated with mirror source post rpmforge https://github.com/repoforge/rpms/issues/375
if [ "`/usr/bin/whoami`" != "root" ]; then
echo "You need to execute this script as root."
exit 1
fi
## Customized for Laravel 4
# setting worker_processes to CPU core count
worker_processes 1;
daemon off;
events {
worker_connections 1024;
}