Skip to content

Instantly share code, notes, and snippets.

Avatar
🐣
work in progress

Brad Murray wyaeld

🐣
work in progress
View GitHub Profile
View remove all the evicted deployments
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 Oct 15, 2017 — forked from ssaunier/sidekiq.config
Running Sidekiq on AWS Elastic Beanstalk (Put that file in `.ebextensions` folder)
View sidekiq.config
# 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 Oct 15, 2017 — forked from ssaunier/sidekiq.config
Running Sidekiq on AWS Elastic Beanstalk (Put that file in `.ebextensions` folder)
View sidekiq.config
# 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 Nov 5, 2015
basic dev environment
View development.yml
---
- name: Ensure development containers
hosts: localhost
connection: local
gather_facts: False
tasks:
- name: data db container
docker:
@wyaeld
wyaeld / rails_logging.md
Created Nov 4, 2015 — forked from psahni/rails_logging.md
Rails Production with logging
View rails_logging.md
View README.md

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

View keybase.md

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 Nov 28, 2013
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// 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 Dec 27, 2015
/etc/apparmor.d/usr.bin.lxc-start for Jerome
View gist:7243037
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>
}
~/
View ec2_ssh_config.py
#!/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: