start new:
tmux
start new with session name:
tmux new -s myname
check host mongodb with address localhost | |
start program = "/usr/bin/sudo /opt/database/mongo/bin/mongod" | |
stop program = "/usr/bin/sudo /usr/bin/pkill -f mongod" | |
if failed port 28017 protocol HTTP | |
request / | |
with timeout 10 seconds | |
then start |
source "http://rubygems.org" | |
group :development do | |
gem 'rake' | |
gem 'guard' | |
gem 'coffee-script' | |
gem 'rb-fsevent' | |
gem 'rb-inotify' | |
gem 'compass', '0.11.5' | |
gem 'sass', '3.1.5' | |
gem 'guard-compass' |
check process mongodb | |
with pidfile "/var/lib/mongodb/mongod.lock" | |
start program = "/sbin/start mongodb" | |
stop program = "/sbin/stop mongodb" | |
if failed port 28017 protocol http | |
and request "/" with timeout 10 seconds then restart | |
if 5 restarts within 5 cycles then timeout |
source :rubygems | |
# V8 JavaScript Engine (for Uglifier) | |
gem "therubyracer" | |
# SASS & Compass | |
gem "sass", "~> 3.2.0.alpha" | |
gem "compass" | |
# For concatenation/compression |
// Media Queries in Sass 3.2 | |
// | |
// These mixins make media queries a breeze with Sass. | |
// The media queries from mobile up until desktop all | |
// trigger at different points along the way | |
// | |
// And important point to remember is that and width | |
// over the portrait width is considered to be part of the | |
// landscape width. This allows us to capture widths of devices | |
// that might not fit the dimensions exactly. This means the break |
source "https://rubygems.org" | |
gem 'sprockets' | |
gem 'sprockets-sass' | |
gem 'sass' | |
gem 'compass' | |
gem 'bootstrap-sass' | |
gem 'handlebars_assets' | |
gem 'coffee-script' |
<!doctype html> | |
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
<html> | |
<head> | |
<title>iOS 8 web app</title> | |
<!-- CONFIGURATION --> |
!!! 5 | |
/[if lt IE 7] | |
%html{:class => "no-js lt-ie9 lt-ie8 lt-ie7", :lang => "en"} | |
/[if IE 7] | |
%html{:class => "no-js lt-ie9 lt-ie8", :lang => "en"} | |
/[if IE 8] | |
%html{:class => "no-js lt-ie9", :lang => "en"} |
server { | |
listen 80; | |
server_name localhost; | |
root /home/website/web; | |
rewrite ^/app\.php/?(.*)$ /$1 permanent; | |
try_files $uri @rewriteapp; | |
location @rewriteapp { |