Skip to content

Instantly share code, notes, and snippets.

Avatar
🖤

Ryan Gerstenkorn RyanJarv

🖤
View GitHub Profile
View cloud-malware-talk-notes.md
@RyanJarv
RyanJarv / gist:addf4ee61f0d228642cad6b01049d113
Created Dec 4, 2020
Get AWS service count by year (botocore)
View gist:addf4ee61f0d228642cad6b01049d113
for y in $(seq 0 8); do git checkout -q `git rev-list -1 --before="$(date -v-${y}y)" master`; git show --no-patch --no-notes --pretty="%as"|tr -d '\n'; { find -E botocore/data -type d -mindepth 1 -maxdepth 1 -not -path botocore/data/aws; find -E botocore/data/aws -type d -mindepth 1 -maxdepth 1; find -E botocore/data/aws -type file -regex '.*/[^/_]*.json' -mindepth 1 -maxdepth 1; } 2>/dev/null|wc -l; sleep 0.2 ; done
View gist:f7fdc434b36c3545e006fe6c1eb5c555
#!/usr/bin/env bash
#
# Count AWS API's on the closest commit before a specific date by year. This takes into account
# different versions of the same API and only uses the newest.
#
set -euo pipefail
day="12-01"
for y in $(seq 2020 2015); do
@RyanJarv
RyanJarv / msh_example.md
Last active Nov 24, 2020
Example of msh building and running dockerfiles
View msh_example.md

Echo Example

% cat echo.msh                              
#!/usr/local/bin/msh exec docker build -t {{.Name}} -f {{.Path}} {{.ContextDir}}; docker run {{.Name}} hello world
FROM alpine:3
ENTRYPOINT ["echo"]
% ./echo.msh                               
View keybase.md

Keybase proof

I hereby claim:

  • I am ryanjarv on github.
  • I am jarv (https://keybase.io/jarv) on keybase.
  • I have a public key ASACfHGzgHATBhGVD2yHMqxR3spcvlku-I6NFddD4sKAwwo

To claim this, I am signing this object: