Skip to content

Instantly share code, notes, and snippets.

View paulsheldrake's full-sized avatar

Paul Sheldrake paulsheldrake

  • Vancouver, Canada
View GitHub Profile
@paulsheldrake
paulsheldrake / install_terminus.sh
Last active November 21, 2016 20:01
Install pantheon terminus tool for RHEL/Centos with PHP 5.6
#!/bin/bash
echo "## Ensure dependencies are installed"
sudo yum install -y curl php56u-cli php56u-common
echo "## Install terminus"
sudo curl https://github.com/pantheon-systems/terminus/releases/download/0.13.4/terminus.phar -L -o /usr/local/bin/terminus
sudo chmod +x /usr/local/bin/terminus
#!/bin/bash
## Assumes IUS repo is installed previously
echo "## Install mailcatcher dependencies"
sudo yum -y install gcc gcc-c++ sqlite-devel ruby-devel
echo '## Install mailcatcher'
sudo gem install mailcatcher
"repositories": [{
"type": "package",
"package": {
"name": "paulsheldrake/mailcatcher-codeception-module",
"version": "1.1.2",
"source": {
"url": "https://github.com/paulsheldrake/codeception-mailcatcher-module.git",
"type": "git",
"reference": "1.1.2"
}
#!/user/bin
# install node/npm
sudo curl --silent --location https://rpm.nodesource.com/setup | bash -
sudo yum -y install nodejs
# install gems/packages needed for theme
sudo gem install bundler
sudo npm install -g bower grunt-cli
#!/user/bin
sudo yum update -y
sudo yum wget -y
# install latest version of ruby
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable --ruby
wget https://gist.githubusercontent.com/paulsheldrake/7c3c70b25e8c652034c2/raw/install_theming_tools_part2.sh
@paulsheldrake
paulsheldrake / setup_codesniffer.sh
Last active August 29, 2015 14:25
Setup code sniffer
#!/bin/bash
cd /var/www/html
drush pm-download coder-8.x-2.3 --destination=$HOME/.drush -y
drush cache-clear drush
sudo pear install PHP_CodeSniffer
sudo cp -R $HOME/.drush/coder/coder_sniffer/Drupal/ /usr/share/pear/PHP/CodeSniffer/Standards/

List of nationalities

It's time someone compiled a list of nationalities to use within a web application. This gist attempts to make a first move at that.

##List of countries

I've also compiled a list of countries

List of nationalities

It's time someone compiled a list of nationalities to use within a web application. This gist attempts to make a first move at that.

##List of countries

I've also compiled a list of countries

@paulsheldrake
paulsheldrake / export_db.sh
Last active August 29, 2015 14:22
simple way to control tables in a mysql dump
PASSWORD=XXXXXX
HOST=XXXXXX
DATABASE=drupal
DB_FILE=dump.sql
EXCLUDED_TABLES=(
cache
cache_advagg_aggregates
cache_advagg_info
cache_block
cache_bootstrap
#!/bin/bash
DATABASE=drupal
TABLES=(
cache
cache_advagg_aggregates
cache_advagg_info
cache_block
cache_bootstrap
cache_entity_fieldable_panels_pane