Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#
### BEGIN INIT INFO
# Provides: mysql
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start: $network $named $time
# Should-Stop: $network $named $time
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
### Keybase proof
I hereby claim:
* I am iancoffey on github.
* I am iancoffey (https://keybase.io/iancoffey) on keybase.
* I have a public key whose fingerprint is 832D 4FAB B7D1 06BC 6510 6D9B FF60 74AA 8E0A 2506
To claim this, I am signing this object:
root@vagrant:~# apt-get upgrade openssl libssl
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
linux-headers-generic-lts-quantal linux-image-generic-lts-quantal
The following packages will be upgraded:
accountsservice apparmor apt apt-transport-https apt-utils apt-xapian-index base-files bash-completion bind9-host binutils ca-certificates
dbus dkms dmsetup dnsutils dosfstools dpkg dpkg-dev file gnupg gpgv grub-common grub-pc grub-pc-bin grub2-common ifupdown initramfs-tools
initramfs-tools-bin iproute isc-dhcp-client isc-dhcp-common language-pack-en language-pack-en-base language-pack-gnome-en
- name: iptables_rules | get iptables rules
shell: iptables -L
register: iptablesrules
sudo: true
- name: add_dns_chain | add UDP DNS iptables chain
command: iptables -N DNS_udp
sudo: true
when: iptablesrules.stdout.find("DNS_udp") == -1
register: dns_chain
@iancoffey
iancoffey / gist:bb557167229fa81a0964
Created September 11, 2014 22:26
Toggle between tabs and spaces
function! ToggleTab()
if &expandtab
set shiftwidth=8
set softtabstop=0
set noexpandtab
else
execute "set shiftwidth=".g:my_tab
execute "set softtabstop=".g:my_tab
set expandtab
endif
irb(main):013:0> module A
irb(main):014:1> module B
irb(main):015:2> def self.something
irb(main):016:3> new()
irb(main):017:3> end
irb(main):018:2> end
irb(main):019:1> end
=> :something
irb(main):020:0> A::B.something
NoMethodError: undefined method `new' for A::B:Module
Feb 23 15:11:04 ip-172-31-15-188.eu-west-1.compute.internal sshd[2502]: Failed password for root from 103.41.124.24 port 56740 ssh2
Feb 23 15:11:04 ip-172-31-15-188.eu-west-1.compute.internal sshd[2502]: Failed password for root from 103.41.124.24 port 56740 ssh2
Feb 23 15:11:04 ip-172-31-15-188.eu-west-1.compute.internal sshd[2502]: Failed password for root from 103.41.124.24 port 56740 ssh2
Feb 23 15:11:04 ip-172-31-15-188.eu-west-1.compute.internal sshd[2502]: Received disconnect from 103.41.124.24: 11: [preauth]
Feb 23 15:11:05 ip-172-31-15-188.eu-west-1.compute.internal systemd[1]: Starting OpenSSH per-connection server daemon (103.41.124.24:34176)...
Feb 23 15:11:05 ip-172-31-15-188.eu-west-1.compute.internal systemd[1]: Started OpenSSH per-connection server daemon (103.41.124.24:34176).
Feb 23 15:11:06 ip-172-31-15-188.eu-west-1.compute.internal sshd[2506]: Failed password for root from 103.41.124.24 port 34176 ssh2
Feb 23 15:11:06 ip-172-31-15-188.eu-west-1.compute.internal sshd[2506]: Failed passwor
2015-04-09T19:29:11Z 0da2e15d3c6a confd[1720]: WARNING Skipping confd config file.
2015-04-09T19:29:11Z 0da2e15d3c6a confd[1720]: ERROR template: builder:59:14: executing "builder" at <getv "/deis/registry...>: error calling getv: key does not exist
2015-04-09T19:29:11Z 0da2e15d3c6a confd[1720]: ERROR template: check-repos:15:16: executing "check-repos" at <getv "/deis/registry...>: error calling getv: key does not exist
2015-04-09T19:29:11Z 0da2e15d3c6a confd[1720]: ERROR template: push-images:9:37: executing "push-images" at <getv "/deis/registry...>: error calling getv: key does not exist
2015-04-09T19:29:11Z 0da2e15d3c6a confd[1720]: ERROR template: receiver:15:55: executing "receiver" at <getv "/deis/controll...>: error calling getv: key does not exist
builder: waiting for confd to write initial templates...
#!/usr/bin/bash
if [ "$1" != '--really' ]; then
echo "command must be run as: $0 --really"
exit 1
fi
# ensure the cluster has graceful_shutdown enabled
if ! /usr/bin/etcdctl get /deis/graceful_shutdown; then
exit 0
Apr 23 13:46:54 ip-10-221-12-211.us-west-2.compute.internal coreos-cloudinit[543]: 2015/04/23 13:46:54 Ensuring runtime unit file "etcd.service" is unmasked
Apr 23 13:46:59 ip-10-221-12-211.us-west-2.compute.internal locksmithd[499]: Unlocking old locks failed: etcd.service is inactive. Retrying in 10s.
Apr 23 13:47:09 ip-10-221-12-211.us-west-2.compute.internal locksmithd[499]: Unlocking old locks failed: etcd.service is inactive. Retrying in 20s.
Apr 23 13:47:29 ip-10-221-12-211.us-west-2.compute.internal locksmithd[499]: Unlocking old locks failed: etcd.service is inactive. Retrying in 40s.
Apr 23 13:48:09 ip-10-221-12-211.us-west-2.compute.internal locksmithd[499]: Unlocking old locks failed: etcd.service is inactive. Retrying in 1m20s.
Apr 23 13:49:29 ip-10-221-12-211.us-west-2.compute.internal locksmithd[499]: Unlocking old locks failed: etcd.service is inactive. Retrying in 2m40s.
Apr 23 13:52:09 ip-10-221-12-211.us-west-2.compute.internal locksmithd[499]: Unlocking old locks failed: etcd.service is in