Skip to content

Instantly share code, notes, and snippets.

@newshorts
newshorts / download-s3.bash
Created September 17, 2016 08:24
Boot up aws cli and download batch images
brew install awscli
aws configure
# 1. log into your aws console, click on "security and credentials" in the menu
# 2. access your IAM page, create a new user & group with access to your bucket
# 3. copy credentials to a safe spot
# AWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE
# AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
# Default region name [None]: us-west-2
@newshorts
newshorts / alphanum.txt
Last active November 5, 2016 05:55
Alphanumeric string - because I can't find anywhere to copy this!!!
ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890
abcdefghijklmnopqrstuvwxyz1234567890
@newshorts
newshorts / gist:3e6ec66dff1c970223dafb9cd7cb59ab
Created July 17, 2019 04:18
get commits since a date time in graphql
let { repository } = await graphql(`{
repository(owner: "${owner}", name:"${repoName}") {
object(expression: "${branch}") {
... on Commit {
history(first: 100, since: "${since}") {
nodes {
${commitFields}
}
}
}