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
# zsh | |
sudo apt-get install zsh | |
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh | |
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc | |
chsh -s /bin/zsh | |
# rbenv | |
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc | |
echo 'eval "$(rbenv init -)"' >> ~/.zshrc |
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
# create working directory from trunk | |
svn checkout http://somedomain.com/repo/trunk | |
# create a branch | |
svn copy http://somedomain.com/repo/trunk \ | |
http://somedomain.com/repo//branches/feature-do-awesome-thing \ | |
-m "Created branch to implement feature do awesome thing." | |
# switch working copy | |
svn switch ^/repo/branches/feature-do-awesome-thing |
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
# Set version to be installed. | |
FIREFOX_VERSION=10.0.2 | |
# Download previous firefox version, check here for complete list: https://ftp.mozilla.org/pub/firefox/releases/ | |
wget https://ftp.mozilla.org/pub/firefox/releases/$FIREFOX_VERSION/linux-x86_64/en-US/firefox-$FIREFOX_VERSION.tar.bz2 | |
# Extract the archive verbosely. | |
tar -xvjf firefox-$FIREFOX_VERSION.tar.bz2 | |
# Move the package to /opt folder. |
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
# add this to your profile, e.g. ~/.zshrc | |
export PATH=.bundle/binstubs:$PATH |
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
# run as superuser | |
sudo -s | |
# setup unattended installation by using here-strings | |
# if you skip this, you will have to type in your password in the installation wizard. | |
debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password password YOUR_PASSWORD' | |
debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password_again password YOUR_PASSWORD' | |
# install mysql server | |
apt-get -y install mysql-server |
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
# generate list of permission in source folder | |
find /SOURCEFOLDER -printf "%U, %G, %m, %p\n" > perm-source.txt | |
# generate list of permission in target folder | |
find /TARGETFOLDER -printf "%U, %G, %m, %p\n" > perm-target.txt | |
# get diff from written list | |
diff perm-source.txt perm-target.txt > perm-diff.txt |
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
# upgrade the server | |
locale-gen UTF-8 | |
apt-get update | |
apt-get dist-upgrade | |
reboot | |
# install nginx | |
add-apt-repository ppa:nginx/stable | |
apt-get upgrade | |
apt-get install nginx |
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
# run as superuser | |
sudo -s | |
# install apache | |
apt-get install apache2 apache2-doc apache2-utils | |
# install php | |
apt-get install libapache2-mod-php5 php5 php-pear php5-xcache | |
# install suhosin |
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
# Add php homebrew repo | |
brew tap homebrew/dupes | |
brew tap josegonzalez/homebrew-php | |
# Install nginx | |
brew install nginx | |
# install php-fpm | |
brew install php53 --without-apache --with-mysql --with-fpm --with-suhosin --with-intl --with-imap --with-libmysql |
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
[DOMAINNAME] | |
listen = /var/run/php5-fpm/DOMAINNAME.socket | |
listen.backlog = -1 | |
; Unix user/group of processes | |
user = APPUSER | |
group = www-data | |
; Choose how the process manager will control the number of child processes. |
NewerOlder