Skip to content

Instantly share code, notes, and snippets.

View keithduncan's full-sized avatar
🌏

Keith Duncan keithduncan

🌏
  • Scotland
View GitHub Profile
#!/usr/bin/env ruby
# Small script that converts an IP address into its AS number. Also provides a
# helpful link to Geoff Huston's handy AS summary page
require 'ipaddr'
require 'resolv'
USAGE = "ip-to-as <ipv4/ipv6>"
@keithduncan
keithduncan / buildkite_agent_step_function.json
Created March 5, 2019 11:19
An AWS step function to register and ping multiple virtual Buildkite agents.
{
"StartAt": "RegisterBuildkiteAgents",
"TimeoutSeconds": 1800,
"States": {
"RegisterBuildkiteAgents": {
"Type": "Pass",
"Result": {
"TaskDefinitions": {
"Definitions": [],
"Count": 0