https://medium.com/@rdsubhas/ruby-in-production-lessons-learned-36d7ab726d99
-
Install foreman gem to manage processes
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 |
# 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 |
# 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 |
--- | |
- name: Ensure development containers | |
hosts: localhost | |
connection: local | |
gather_facts: False | |
tasks: | |
- name: data db container | |
docker: |
https://medium.com/@rdsubhas/ruby-in-production-lessons-learned-36d7ab726d99
Install foreman gem to manage processes
I hereby claim:
To claim this, I am signing this object:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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: |