This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps: | |
- label: tests | |
command: test.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'json' | |
require 'net/http' | |
query = <<-EOS | |
{ | |
organization(slug: "example-slug") { | |
members(first: 100, email: "[email protected]") { | |
edges { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: build-robot | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: build-robot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: build-robot | |
spec: | |
replicas: 3 | |
template: | |
metadata: | |
labels: | |
app: build-robot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "aws" { | |
region = "us-east-1" | |
version = "~> 2.45" | |
} | |
data "aws_region" "primary" { | |
} | |
data "aws_availability_zones" "primary" { | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# list accounts I have access to in our org | |
aws organizations list-accounts | |
# list roles in our account | |
aws iam list-roles |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'pdf/reader' | |
require 'json' | |
require 'forwardable' | |
class JsonTextReceiver | |
extend Forwardable | |
SPACE = " " | |
attr_reader :state, :options, :characters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
################################################## | |
# git-fetch-pr | |
# | |
# A script to ease checking out github pull requests as a local branch, without | |
# the hassle of adding a new remote | |
################################################## | |
USAGE="USAGE: git-fetch-pr <pr-number> [remote]" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# start a container with bash (or sh) | |
docker run -ti --entrypoint=bash image:tag | |
# list docker images on local machine | |
docker images | |
# view layers of an individual image | |
docker history image:tag [--no-trunc] |