Skip to content

Instantly share code, notes, and snippets.

View vigith's full-sized avatar

Vigith Maurice vigith

View GitHub Profile
@vigith
vigith / gist:b246b7eb166ae36005c9
Last active August 29, 2015 14:05
nginx conf
server {
listen 80 default_server;
server_name *.ops.sharethis.com;
location / {
proxy_pass http://127.0.0.1:4180;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_connect_timeout 1;
adm1@cookbook$ cat /etc/service/sensu-client/run
#!/bin/bash
EMBEDDED_RUBY=false
CONFIG_FILE=/etc/sensu/config.json
CONFIG_DIR=/etc/sensu/conf.d
EXTENSION_DIR=/etc/sensu/extensions
PLUGINS_DIR=/etc/sensu/plugins
HANDLERS_DIR=/etc/sensu/handlers
LOG_DIR=/var/log/sensu
@vigith
vigith / gist:6243040
Created August 15, 2013 17:58
nginx conf for range
server {
location /range {
fastcgi_pass localhost:5000;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
}
cd ~/git/operations ; git pull
HOST=<$IP> (eg, 10.194.17.124)
rsync -aze "ssh -i $HOME/keys/ops -l ec2-user" ~/git/operations/chef-solo/ $HOST:/tmp/chef-solo
ssh -i ~/keys/ops -l ec2-user -tt $HOST sh /tmp/chef-solo/setup-chef
login to $ip (10.194.17.124)
----------------------------
scp /tmp/binutils-2.20.51.0.7-8.29.amzn1.x86_64.rpm 10.60.94.53:/tmp