This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[xdebug] | |
xdebug.remote_enable=1 | |
xdebug.remote_host=localhost | |
xdebug.remote_port=9000 | |
xdebug.remote_handler=dbgp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name .svn -type d -print0 |xargs -0 rm -rf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysqldump -uroot -p --all-databases > alldb.sql | |
mysql -u root -p < alldb.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults write com.apple.Finder AppleShowAllFiles YES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git check-ignore -v <path/file> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rvmsudo rails server -p 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install mysql mysql-server mysql-libs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |