Skip to content

Instantly share code, notes, and snippets.

View birchestx's full-sized avatar

Jo Baker birchestx

  • ShipperHQ
  • Austin, TX
View GitHub Profile
@birchestx
birchestx / xdebug_php.ini
Created January 6, 2014 17:33
xdebug settings in php.ini
[xdebug]
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
@birchestx
birchestx / remove_svn_dirs
Created January 12, 2014 06:08
Remove all svn directories
find . -name .svn -type d -print0 |xargs -0 rm -rf
mysqldump -uroot -p --all-databases > alldb.sql
mysql -u root -p < alldb.sql
$fieldset->addField('select', 'select', array(
'label' => Mage::helper('form')->__('Select'),
'class' => 'required-entry',
'required' => true,
'name' => 'title',
'onclick' => "",
'onchange' => "",
'value' => '1',
'values' => array('-1'=>'Please Select..','1' => 'Option1','2' => 'Option2', '3' => 'Option3'),
'disabled' => false,
defaults write com.apple.Finder AppleShowAllFiles YES
@birchestx
birchestx / git_check_ignore
Created January 25, 2014 18:23
Check which git ignore is coming into play From http://git-scm.com/docs/git-check-ignore.html
git check-ignore -v <path/file>
@birchestx
birchestx / start_rails_80
Created February 2, 2014 01:37
Start Rails on Port 80
rvmsudo rails server -p 80
@birchestx
birchestx / install_mysql
Created February 6, 2014 07:41
Installing mysql so can do bundle install on ec2 instance From http://haimlankry.blogspot.com/2012/03/myssql-on-amazon-ec2.html
yum install mysql mysql-server mysql-libs
@birchestx
birchestx / install_apache_rails_ec2
Created February 6, 2014 08:23
Install Apache/Passenger EC2
sudo -s
sudo yum install curl-devel
gem install passenger
rvmsudo passenger-install-apache2-module
sudo vi /etc/httpd/conf/httpd.conf
<VirtualHost *:80>
ServerName www.yourdomain.com
DocumentRoot /home/ec2-user/github/ShipperHQ/public
@birchestx
birchestx / add_user.sh
Last active May 15, 2016 07:17
add user to ec2 and set up ssh
#!/bin/bash
if id "$1" >/dev/null 2>&1; then
echo "user exists"
else
echo "user does not exist, creating"
useradd -c "$1 last" $1 -m
fi
echo "$1 ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers