Skip to content

Instantly share code, notes, and snippets.

View iturgeon's full-sized avatar
👻
The answer is YES

Ian Turgeon iturgeon

👻
The answer is YES
View GitHub Profile
@iturgeon
iturgeon / gist:dd52bc877314bca87000
Created May 17, 2014 01:26
Materia: install every .wigt package at once
find static -name *.wigt | xargs -I % -n 1 php oil r widget:install % -u -f
@iturgeon
iturgeon / gist:ee2cc3de414549d15636
Last active August 29, 2015 14:01
Materia: Run grunt package on all widgets in source directory
find source -type d -d 1 -exec basename {} \; | xargs -I % -n 1 grunt package --widget=%
@iturgeon
iturgeon / gist:0ed799c2c099f9093705
Last active August 29, 2015 14:01
Git: Pull every git repository in a subdirectory
find . -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && git pull" \;
@iturgeon
iturgeon / gist:7234067
Created October 30, 2013 14:57
Send a json post request with Curl
curl -i -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{"person":{"name":"bob"}}' http://site.com
@iturgeon
iturgeon / gist:6242194
Last active December 21, 2015 03:29
remove all .svn folders from directory recursively
find . -name .svn -print0 | xargs -0 rm -rf'
@iturgeon
iturgeon / bootstrap_dev.php
Last active December 15, 2015 09:28
Adding php 5.4's development server to FuelPHP's oil commands (built for fuelphp 1.6)
<?php
if (file_exists($_SERVER['DOCUMENT_ROOT'].$_SERVER['REQUEST_URI']))
{
// bypass existing file processing
return false;
}
else
{
// route requests though the normal path
@iturgeon
iturgeon / gist:4543686
Last active December 11, 2015 04:18
Normal Sublime text user settings
// Normal
{
"color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme",
"draw_white_space": "all",
"font_face": "ProFontX",
"font_options":
[
"no_antialias"
],
"font_size": 9.0,
@iturgeon
iturgeon / gist:4471743
Last active December 10, 2015 17:59
FUELPHP oil command to run in different environments
# env FUEL_ENV=<einvironment> php oil <commands>
env FUEL_ENV=production php oil r migrate
@iturgeon
iturgeon / Vagrantfile
Created November 29, 2012 19:45
Chef and Vagrant setup to easily create databases as needed
Vagrant::Config.run do |config|
config.vm.box = "lucid32"
config.vm.box_url = "http://files.vagrantup.com/lucid32.box"
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "cookbooks"
# pass json_attribs to chef
chef.json = {
@iturgeon
iturgeon / .bash_profile
Created November 5, 2012 19:06
Trace Flash Debug Logs in the console
### opens "flashlog.txt" in Console
alias trace='tail -f ~/Library/Preferences/Macromedia/Flash\ Player/Logs/flashlog.txt | grep -v "^\->\|^<\-\|^\=\=>\|^<\=\="'