This file contains hidden or 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
| #!/usr/bin/env bash | |
| # Navigate to the path where the bundles are stored, which in the case of a Mac is : | |
| cd ~/Library/Application\ Support/TextMate/Bundles | |
| # Clone the bundle from the repository of choice (e.g. github): | |
| git clone git://github.com/drnic/ruby-on-rails-tmbundle.git "Ruby on Rails.tmbundle" | |
| # Tell TextMate to reload: | |
| osascript -e 'tell app "TextMate" to reload bundles' |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| apt-get -y update | |
| apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-gplv2-dev lib64readline-gplv2-dev libyaml-dev | |
| cd /tmp | |
| wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p327.tar.gz | |
| tar -xvzf ruby-1.9.3-p327.tar.gz | |
| cd ruby-1.9.3-p125/ | |
| ./configure --prefix=/usr/local | |
| make |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| apt-get install ruby1.9.1-dev | |
| gem install chef ruby-shadow --no-ri --no-rdoc |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 | |
| echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" | tee -a /etc/apt/sources.list.d/10gen.list | |
| apt-get update | |
| apt-get install mongodb-10ge |
This file contains hidden or 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 New User | |
| $mysql -u root -p | |
| CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password'; | |
| GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost'; | |
| ### Create New Database | |
| $mysql -u root -p | |
| mysql> CREATE DATABASE testing; |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # 1- Copy to the remote machine | |
| # (cat server_setup.sh | ssh [email protected] 'cat >> ~/server_setup.sh') | |
| # 2- Chmod to make it excecutable | |
| # chmod a+x server_setup.sh | |
| # 3- Run it | |
| # sudo ./server_setup.sh | |
| RUBY=2.2.4 |
This file contains hidden or 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
| # Applications | |
| Alfred | |
| Dropbox | |
| TextMate | |
| Evernote | |
| iTerm | |
| Github | |
| SequelPro | |
| Mongohub | |
| FreeMemory |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # 1- Copy to the remote machine | |
| # cat check_server_setup.sh | ssh [email protected] 'cat >> ~/check_server_setup.sh' | |
| # 2- Chmod to make it excecutable | |
| # chmod a+x check_server_setup.sh | |
| # 3- Run it | |
| # sudo ./check_server_setup.sh | |
| # Ngnix | |
| if aptitude search '~i ^nginx$' | grep -q nginx; then |
This file contains hidden or 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
| Ubuntu LogRotate Install and Setup | |
| # 1-Check updates | |
| sudo apt-get update | |
| # 2—Install Logrotate | |
| sudo apt-get install logrotate | |
| # 3 — Confirmation | |
| # To verify that logrotate was successfully installed, run this in the command prompt. |
OlderNewer