Skip to content

Instantly share code, notes, and snippets.

View wyaeld's full-sized avatar
🐣
work in progress

Brad Murray wyaeld

🐣
work in progress
View GitHub Profile
kubectl get po -a --all-namespaces -o json | \
jq '.items[] | select(.status.reason!=null) | select(.status.reason | contains("Evicted")) |
"kubectl delete po \(.metadata.name) -n \(.metadata.namespace)"' | xargs -n 1 bash -c
@wyaeld
wyaeld / sidekiq.config
Created October 15, 2017 04:05 — forked from ssaunier/sidekiq.config
Running Sidekiq on AWS Elastic Beanstalk (Put that file in `.ebextensions` folder)
# Sidekiq interaction and startup script
commands:
create_post_dir:
command: "mkdir -p /opt/elasticbeanstalk/hooks/appdeploy/post"
ignoreErrors: true
files:
"/opt/elasticbeanstalk/hooks/appdeploy/post/50_restart_sidekiq.sh":
mode: "000755"
owner: root
group: root
@wyaeld
wyaeld / sidekiq.config
Created October 15, 2017 04:05 — forked from ssaunier/sidekiq.config
Running Sidekiq on AWS Elastic Beanstalk (Put that file in `.ebextensions` folder)
# Sidekiq interaction and startup script
commands:
create_post_dir:
command: "mkdir -p /opt/elasticbeanstalk/hooks/appdeploy/post"
ignoreErrors: true
files:
"/opt/elasticbeanstalk/hooks/appdeploy/post/50_restart_sidekiq.sh":
mode: "000755"
owner: root
group: root
@wyaeld
wyaeld / development.yml
Created November 5, 2015 08:51
basic dev environment
---
- name: Ensure development containers
hosts: localhost
connection: local
gather_facts: False
tasks:
- name: data db container
docker:
@wyaeld
wyaeld / rails_logging.md
Created November 4, 2015 08:44 — forked from psahni/rails_logging.md
Rails Production with logging

Production Ready Process Monitoring

  1. Install docker-manger.conf and docker-instance.conf in /etc/init

  2. Create a containers file in /etc/docker/ with the following format

     name: image cmd
    

    The name must be unique.

  3. sudo service docker-manager start

Keybase proof

I hereby claim:

  • I am wyaeld on github.
  • I am wyaeld (https://keybase.io/wyaeld) on keybase.
  • I have a public key whose fingerprint is 923F AAAD 9255 3CD7 7DCA 9AA5 C58F 04F8 AE5A 814B

To claim this, I am signing this object:

@wyaeld
wyaeld / 0_reuse_code.js
Created November 28, 2013 20:57
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@wyaeld
wyaeld / gist:7243037
Last active December 27, 2015 01:09
/etc/apparmor.d/usr.bin.lxc-start for Jerome
14:13 $ cat /etc/apparmor.d/usr.bin.lxc-start
#include <tunables/global>
/usr/bin/lxc-start flags=(attach_disconnected) {
#include <abstractions/lxc/start-container>
}
~/
#!/usr/bin/env python
#http://ozkatz.github.io/ssh-into-your-ec2-instances-with-ease.html
import os
import sys
import argparse
try:
from boto.ec2.connection import EC2Connection
except ImportError: