Skip to content

Instantly share code, notes, and snippets.

View db-pj's full-sized avatar

PJ Fancher db-pj

View GitHub Profile
# 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
@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
$states = array(
'AL'=>'Alabama',
'AK'=>'Alaska',
'AZ'=>'Arizona',
'AR'=>'Arkansas',
'CA'=>'California',
'CO'=>'Colorado',
'CT'=>'Connecticut',
'DE'=>'Delaware',
'DC'=>'District of Columbia',
  • BadCredit.org
  • CardRates.com
  • DatingAdvice.com
  • DatingNews.com
  • DigitalBrands.com
  • HostingAdvice.com
  • HostingReport.com
  • MoneyTrends.com
/reviews/
/senior/
/christian/
/black/
/gay/
/lesbian/
/singles/
/singles?city=City&state=State/
/rankings/
@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
@db-pj
db-pj / gist:7a57037472339dd68c7f7af6aa4bec9b
Created July 25, 2017 20:03
XPath to extract links with jump class and no target=_blank
//a[@class='jump' and not(@target='_blank')]/@href
@db-pj
db-pj / da-host-switch-checklist.md
Last active February 9, 2021 16:49
DA Host Switch Checklist

DA Host Switch Checklist

Pre-DNS

Rackspace Server

  • Alert VM & Editors
  • Push Master
  • Backup Database

DatingAdviceMbl-2017-12-15--15-48-56.sql.gz

@db-pj
db-pj / Screaming Frog XPath Extract relative URLs.txt
Last active March 1, 2019 19:43
Screaming Frog XPath Extract relative URLs
//a[contains(@href, 'mbl/visit?site=') and not(contains(@href, 'https://www.datingadvice.com'))]/@href
//a[contains(@href, 'official-site/?offer=') and not(contains(@href, 'https://www.cardrates.com'))]/@href
//a[contains(@href, 'mbl/go/?offer=') and not(contains(@href, 'https://www.badcredit.org'))]/@href
//a[contains(@href, 'visit/?offer=') and not(contains(@href, 'https://www.hostingadvice.com'))]/@href