Skip to content

Instantly share code, notes, and snippets.

@kitschysynq
kitschysynq / gist:bab0797516f2e44fc6b7cff002599958
Created September 12, 2016 15:13
DigitalOcean Image Slugs
"coreos-beta"
"freebsd-10-1-x64"
"fedora-23-x64"
"centos-6-5-x32"
"centos-6-5-x64"
"debian-7-0-x32"
"debian-7-0-x64"
"fedora-24-x64"
"debian-7-x32"
"freebsd-10-3-x64-zfs"
@kitschysynq
kitschysynq / list_slugs.sh
Created September 12, 2016 15:17
List slugs from DigitalOcean API
#!/bin/sh
curl -X GET -q -H "Content-Type: application/json" -H "Authorization: Bearer $DIGITALOCEAN_API_KEY" "https://api.digitalocean.com/v2/images?per_page=100" | jq '.images[].slug | values'
@kitschysynq
kitschysynq / gist:867caebec581cee4c44c764b4dd2bde7
Created April 10, 2017 13:45
List running qemu instances with nicely formatted output
ps -ef | awk -e '/qemu/ && !/awk/' | sed -e 's/[^/]*//' -e 's/ -/\n\t-/g'

Keybase proof

I hereby claim:

  • I am kitschysynq on github.
  • I am sswehla (https://keybase.io/sswehla) on keybase.
  • I have a public key ASD24R9mCNK0aTuj917uuDUOZDxH0dTE9etx1rxEmy_DOwo

To claim this, I am signing this object:

@kitschysynq
kitschysynq / resources.md
Last active June 14, 2021 13:45
Introductory resources for learning Go

Resources for learning Go

Below are resources that I consistently recommend for new folks learning Go. In general, I usually find myself recommending them in this order:

  1. A Tour of Go
  2. Effective Go
  3. Go by Example
  4. Learn Go with tests
import json
def cape_handler(arg):
input = arg.decode("utf-8")
if input == "get":
return json.dumps(load())
store(input)
return u'ack'
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~>4.33.0"
}
}
}
provider "aws" {