Skip to content

Instantly share code, notes, and snippets.

View db-pj's full-sized avatar

PJ Fancher db-pj

View GitHub Profile
@db-pj
db-pj / time-sync.txt
Last active February 23, 2017 14:46
Time Sync
sudo ntpdate ntp.ubuntu.com
sudo apt-get install ntp -y
sudo service ntp restart
sudo ntpdate ntp.ubuntu.com && sudo apt-get install ntp -y && sudo service ntp restart
/reviews/
/senior/
/christian/
/black/
/gay/
/lesbian/
/singles/
/singles?city=City&state=State/
/rankings/
  • BadCredit.org
  • CardRates.com
  • DatingAdvice.com
  • DatingNews.com
  • DigitalBrands.com
  • HostingAdvice.com
  • HostingReport.com
  • MoneyTrends.com
$states = array(
'AL'=>'Alabama',
'AK'=>'Alaska',
'AZ'=>'Arizona',
'AR'=>'Arkansas',
'CA'=>'California',
'CO'=>'Colorado',
'CT'=>'Connecticut',
'DE'=>'Delaware',
'DC'=>'District of Columbia',
@db-pj
db-pj / VPS Setup Concise
Last active May 23, 2016 18:08
VPS Setup Concise
# Set up a new VPS for Framework (Ubuntu 12.04)
1. Add personal user
useradd pj
passwd pj
* Add user to 'admin/sudo' and 'www-data' groups
adduser pj sudo pj && usermod -G www-data pj
Login in as new user
# Set up a new VPS for Framework (Ubuntu 12.04)
1. Add personal user
* Add user to 'admin/sudo' and 'www-data' groups
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install python-software-properties -y && sudo add-apt-repository ppa:keithw/mosh -y && sudo apt-get update && sudo apt-get install mosh -y && sudo tasksel && sudo apt-get install php5 php5-gd php5-mysql php5-curl php5-cli php5-cgi php5-dev -y && sudo a2enmod rewrite expires headers mime deflate filter && sudo service apache2 restart && sudo apt-get install phpmyadmin -y && sudo apt-get install vim -y && sudo apt-get install git-core git-gui git-doc -y && cd ~ && mkdir ~/.ssh
cd ~/.ssh && ssh-keygen -t rsa -C "ryan@digitalbrands.com" && git config --global user.name "Ryan Frankel" && git config --global user.email "ryan@digitalbrands.com"
sudo apt-add-repository ppa:chris-lea/node.js -y && sudo apt-get update && sudo apt-get install nodejs -y && sudo aptitude install npm -y && sudo npm install -g less && git clone https://gi