Skip to content

Instantly share code, notes, and snippets.

Adrian Goins oskapt

Block or report user

Report or block oskapt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@oskapt
oskapt / ip-ranges.txt
Created May 12, 2019 — forked from PSJoshi/ip-ranges.txt
IP ranges for Google, Amazon etc
View ip-ranges.txt
* CloudFare IP list: https://www.cloudflare.com/ips/
* Google's IP addresses:
nslookup -q=TXT _netblocks.google.com 8.8.8.8
nslookup -q=TXT _netblocks2.google.com 8.8.8.8
nslookup -q=TXT _netblocks3.google.com 8.8.8.8
Each of the above line will display a CIDR block or Google’s IP addresses.
* Amazon IP addresses: https://ip-ranges.amazonaws.com/ip-ranges.json
View cali_interface_per_pod.sh
#!/bin/bash
# Based on https://github.com/moby/moby/issues/17064#issuecomment-294020260, thanks!
function cali_interface_for_container() {
container_name=$(docker inspect --format='{{.Name}}' "${1}")
# Get the process ID for the container named ${1}:
local pid=$(docker inspect -f '{{.State.Pid}}' "${1}")
View keybase.md

Keybase proof

I hereby claim:

  • I am oskapt on github.
  • I am oskapt (https://keybase.io/oskapt) on keybase.
  • I have a public key ASAIGf3Y3vD9scPLvNC7Z-yOKyU_AvKCaMoHQwJjWmaEmwo

To claim this, I am signing this object:

@oskapt
oskapt / rc.netdata
Created Jun 24, 2018
Netdata init script for Synology DSM
View rc.netdata
#!/bin/bash
# Install this as `/etc/rc.netdata` and call it from `/etc/rc.local`
# to have it executed on boot.
NETDATA_DIR=/opt/netdata
DAEMON=$NETDATA_DIR/bin/srv/netdata
TIMEOUT=30 # seconds to wait for netdata to exit
[ -x $DAEMON ] || exit 0
You can’t perform that action at this time.