Skip to content

Instantly share code, notes, and snippets.

View jonpugh's full-sized avatar

Jon Pugh jonpugh

View GitHub Profile
@jonpugh
jonpugh / update-devshop-head.sh
Created September 12, 2014 13:52
Script to update devshop head once replaced with git repos.
cd /var/aegir/devshop-6.x-1.x/profiles/devshop/
git pull
cd /var/aegir/devshop-6.x-1.x/profiles/devshop/modules/devshop/devshop_hosting
git pull
cd /var/aegir/.drush/devshop_provision
git pull
drush @hostmaster cc all
drush @hostmaster updb -y
@jonpugh
jonpugh / bootstrap.sh
Last active August 29, 2015 13:57
Bootstrap
sudo apt-get install boot-repair git vim drush chromium-browser gnome-do mysql-server curl
@jonpugh
jonpugh / drupalsite.sh
Last active December 30, 2015 19:19
Getting a drupal site up locally in least time possible with the least dependencies. I want to make this a new command. Just some brainstorming.
# Install Drush
# Install Git
# Install MySQL
# Get drupal codebase
git clone [email protected]:your/repo.git
cd repo
# Create drush alias
$aliases['sitename'] = array(
@jonpugh
jonpugh / Sample client side links loader.
Last active December 24, 2015 02:29
Sample client side links loader.
@jonpugh
jonpugh / git-pull-recursive.rb
Last active October 20, 2021 03:20
Lots of repos? Try "git-pull-recursive" to run "git pull" on all subfolders with a .git folder inside. Thanks to http://snipplr.com/view/62314/perform-git-pull-on-subdirectory-recursive/
# For use in Chef:
# Adds a command: git-pull-recursive
file "/usr/local/bin/git-pull-recursive" do
owner "root"
group "root"
mode "0755"
action :create
content 'find . -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && git pull" \;'
end