Skip to content

Instantly share code, notes, and snippets.

View hectorj2f's full-sized avatar
💭
kuberneting

Hector Fernandez hectorj2f

💭
kuberneting
View GitHub Profile
```
$ sudo iptables -L -v -n
Chain INPUT (policy ACCEPT 26 packets, 1801 bytes)
pkts bytes target prot opt in out source destination
588 98723 felix-INPUT all -- * * 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT 6 packets, 400 bytes)
pkts bytes target prot opt in out source destination
218 37080 felix-FORWARD all -- * * 0.0.0.0/0 0.0.0.0/0

Keybase proof

I hereby claim:

  • I am hectorj2f on github.
  • I am hectorj2f (https://keybase.io/hectorj2f) on keybase.
  • I have a public key whose fingerprint is 3FC3 06B8 BA33 B816 9332 0035 B82E 9A77 CF70 BF80

To claim this, I am signing this object:

@hectorj2f
hectorj2f / cleanup_etcd_fleet_hashes.sh
Created October 29, 2015 11:49
Script to cleanup etcd fleet hashes
#!/bin/bash
DIR="/tmp/cleanup_fleet_keys"
mkdir -p ${DIR}
echo "Fetching etcd keys from fleet /_coreos.com/fleet/unit "
cat <(etcdctl ls --recursive /_coreos.com/fleet/unit| awk -F\/ '{print $NF}') <(fleetctl list-unit-files -full -fields=hash -no-legend) | sort | uniq -u > ${DIR}/etcd_fleet_keys_one
echo "Waiting 10 seconds to collect the keys one more time..."