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
source src1 | |
{ | |
type = mysql | |
##################################################################### | |
## SQL settings (for 'mysql' and 'pgsql' types) | |
##################################################################### | |
# some straightforward parameters for SQL source types | |
sql_host = localhost |
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
kill -9 $(lsof -i tcp:3000 -t) |
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
> eval $(ssh-agent) | |
> ssh-add | |
eval "$(ssh-agent -s)" | |
ssh-add ~/.ssh/id_rsa |
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
### Unicorn ### | |
check process unicorn | |
with pidfile "/home/deploy/goodpolitics/shared/tmp/pids/unicorn.pid" | |
start program = "/bin/su - deploy -c 'cd /home/deploy/goodpolitics/current && ( export RAILS_ENV='production'; /usr/local/rvm/bin/rvm default do bundle exec unicorn -c /home/deploy/goodpolitics/current/config/unicorn/production.rb -E deployment -D )" | |
stop program = "/bin/su - deploy -c 'cd /home/deploy/goodpolitics/current && /usr/bin/env kill -s QUIT`cat /home/deploy/goodpolitics/current/tmp/pids/unicorn.pid`'" | |
if memory usage > 90% for 3 cycles then restart | |
if cpu > 90% for 2 cycles then restart | |
if 5 restarts within 5 cycles then timeout | |
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
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
#passenger_root /home/airwall/.rvm/gems/ruby-2.3.1/gems/passenger-5.0.30; | |
#passenger_ruby /home/airwall/.rvm/gems/ruby-2.3.1/wrappers/ruby; |
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
Vagrantfile | |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure('2') do |config| | |
config.vm.box = 'ubuntu/trusty64' | |
config.vm.hostname = 'rails-dev-box' | |
config.ssh.username = "vagrant" | |
config.ssh.password = "vagrant" |
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
nginx -t -c /etc/nginx/nginx.conf |
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
user www-data; | |
worker_processes 1; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 768; | |
} | |
http { |
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
heroku buildpacks:add heroku/ruby | |
heroku buildpacks:add heroku/nodejs |
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
// useful | |
@mixin cut-text { | |
overflow: hidden; | |
white-space: nowrap; | |
-ms-text-overflow: ellipsis; | |
text-overflow: ellipsis; | |
} | |
@mixin ibreset { | |
border: 0; |
OlderNewer