Skip to content

Instantly share code, notes, and snippets.

View tateeskew's full-sized avatar

Tate Eskew tateeskew

View GitHub Profile

Keybase proof

I hereby claim:

  • I am tateeskew on github.
  • I am tateeskew (https://keybase.io/tateeskew) on keybase.
  • I have a public key whose fingerprint is 53F4 AA7C 4AD8 22FF BE43 B026 5EF9 D77D 431F 8496

To claim this, I am signing this object:

@tateeskew
tateeskew / gist:c450f8f495aeea978b1c
Created February 2, 2015 14:30
RQWORKER Supervisor config
[program:shopify-rqworker]
process_name=shopify-rqworker_%(process_num)02d
numprocs=1
autostart=true
autorestart=true
user=nobody
directory=/opt/app
environment=PYTHONPATH="/opt/lang/venvs/emmafy/bin:/opt/lang/venvs/emmafy:/opt/app/emmafy"
command=/opt/lang/venvs/emmafy/bin/rqworker customer_bulk_loads order_bulk_loads order_webhook complete_setup customer_signup --host prod-apint-redis.aws.e2.ma
stdout_logfile=/opt/app/logs/rqworker.log
local:
Data failed to compile:
----------
Detected conflicting IDs, SLS IDs need to be globally unique.
The conflicting ID is "add-postgres-key" and is found in SLS "base:postgres-repo" and SLS "base:postgres-repo"
----------
Detected conflicting IDs, SLS IDs need to be globally unique.
The conflicting ID is "/etc/apt/sources.list.d/pgdg.list" and is found in SLS "base:postgres-repo" and SLS "base:postgres-repo"
----------
Detected conflicting IDs, SLS IDs need to be globally unique.
dev-emma-small-aws-us-east-1a-UbuntuLucid:
# Bamboo Image Build
- dev-bamboo-image-pg93:
minion:
startup_states: highstate
ext_job_cache: ''
grains:
roles: dev-bamboo-image-pg93
@tateeskew
tateeskew / query from elasticsearch web
Created September 5, 2013 16:31
Problem with Elasticsearch/Kibana queries.
{
"took" : 8,
"timed_out" : false,
"_shards" : {
"total" : 15,
"successful" : 15,
"failed" : 0
},
"hits" : {
"total" : 166,
# Update, upgrade and install development tools:
apt-get update
apt-get -y upgrade
apt-get -y install build-essential
apt-get -y install git-core
# Install rbenv
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv
# Add rbenv to the path:
@tateeskew
tateeskew / kibana.conf
Created September 3, 2013 21:39
Upstart file for Kibana to use with Ubuntu 12.04 LTS. Place this file in /etc/init/ This script is setup to run as the user 'kibana'. You can create this user or you can switch the script to run as a different user by changing the setuid and setgid parameters in the script.
# kibana.conf# kibana - log viewer
#
description "Kibana elasticsearch viewer"
start on virtual-filesystems
stop on runlevel [06]
respawn
respawn limit 5 30
@tateeskew
tateeskew / gist:6222531
Created August 13, 2013 15:44
Install sudo-ldap on Ubuntu using salt cmd.run state
install_sudo-ldap:
cmd.run:
- name: apt-get -q -y -o DPkg::Options::=--force-confold -o DPkg::Options::=--force-confdef install sudo-ldap
- env: SUDO_FORCE_REMOVE=yes
@tateeskew
tateeskew / gist:6071612
Last active December 20, 2015 04:29
Redirect Nginx - Put in server block
if ( $request_filename ~ old-page/ ) {
rewrite ^ http://s.e2ma.net permanent;
}
root@saltmaster:/srv/salt# salt-cloud -m /etc/salt/maps/testing-system-single.map -d
[WARNING ] The function 'cloud_config()' defined in '/usr/lib/python2.7/dist-packages/saltcloud/config.py' is not yet using the new 'default_path' argument to `salt.config.load_config()`. As such, the 'SALT_CLOUD_CONFIG' environment variable will be ignored
[WARNING ] The function 'cloud_providers_config()' defined in '/usr/lib/python2.7/dist-packages/saltcloud/config.py' is not yet using the new 'default_path' argument to `salt.config.load_config()`. As such, the 'SALT_CLOUD_PROVIDERS_CONFIG' environment variable will be ignored
[WARNING ] The function 'vm_profiles_config()' defined in '/usr/lib/python2.7/dist-packages/saltcloud/config.py' is not yet using the new 'default_path' argument to `salt.config.load_config()`. As such, the 'SALT_CLOUDVM_CONFIG' environment variable will be ignored
[INFO ] Configuration file path: /etc/salt/master
[INFO ] salt-cloud starting
[INFO ] Applying map from '/etc/salt/maps/testing-