Not only useful in programming, regular expressions can make complex tasks easy in many different scenarios. Here is a great site for testing your regex:
http://rubular.com
| # Remove items used for building, since they aren't needed anymore | |
| sudo apt-get clean | |
| sudo apt-get -y remove linux-headers-$(uname -r) build-essential | |
| sudo apt-get -y autoremove | |
| # Zero out the free space to save space in the final image: | |
| suod dd if=/dev/zero of=/EMPTY bs=1M | |
| sudo rm -f /EMPTY | |
| # Removing leftover leases and persistent rules |
Since you're using CentOS 5, the default package manager is yum, not apt-get. To install a program using it, you'd normally use the following command:
$ sudo yum install <packagename>
However, when trying to install git this way, you'll encounter the following error on CentOS 5:
I use the latest Puma v1.4.0 from rubygems.
Make sure you have nginx installed with these options:
>/opt/nginx/sbin/nginx -V
nginx version: nginx/1.0.15
built by gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
| .fluid-row { | |
| div, section, article, li { /* Needs testing on li's */ | |
| &:first-child { /* using first child and margin-left for IE support */ | |
| margin-left: 0; | |
| } | |
| } | |
| } | |
| .fluid-column(@columns: 1, @offset: 0, @reset: default) { | |
| .input-block-level(); |
| set :stage, 'production' | |
| set :shared_children, shared_children << 'tmp/sockets' | |
| puma_sock = "unix://#{shared_path}/sockets/puma.sock" | |
| puma_control = "unix://#{shared_path}/sockets/pumactl.sock" | |
| puma_state = "#{shared_path}/sockets/puma.state" | |
| puma_log = "#{shared_path}/log/puma-#{stage}.log" | |
| namespace :deploy do | |
| desc "Start the application" |
| #!/usr/bin/env bash | |
| # Simple move this file into your Rails `script` folder. Also make sure you `chmod +x puma.sh`. | |
| # Please modify the CONSTANT variables to fit your configurations. | |
| # The script will start with config set by $PUMA_CONFIG_FILE by default | |
| PUMA_CONFIG_FILE=config/puma.rb | |
| PUMA_PID_FILE=tmp/pids/puma.pid | |
| PUMA_SOCKET=tmp/sockets/puma.sock |