Skip to content

Instantly share code, notes, and snippets.

View jszwedko's full-sized avatar

Jesse Szwedko jszwedko

View GitHub Profile
@jszwedko
jszwedko / multiprogrammed_batch_processing_system.go
Created February 25, 2013 00:26
Playing around with the ideas from Hoare's "A model for communicating sequential processes" (specifically section 10). Doesn't gracefully quit or do the print spooling thing. Run like: `go run multiprogrammed_batch_processing_system.go -readers 3 -printers 3 -processors 2 -job "3:3" -job "2" -job "1:1:1" -job "4:4:4:4:4:4" -job "5:5"`. See -h fo…
package main
import (
"flag"
"fmt"
"math/rand"
"strings"
"time"
)
@jszwedko
jszwedko / Golang.pm
Created March 5, 2014 19:10
Perl module for use with SQL::Translator to generate Go structs from SQL DDL
#!/usr/bin/env perl
package Custom::Golang;
use strict;
use SQL::Translator;
use String::CamelCase qw(camelize);
use Data::Dumper;
my %dbi_type_map = (
integer => "int",
[core]
excludesfile = ~/.git-excludes
[autosetup]
rebase = true
[branch]
autosetuprebase = remote
autosetupmerge = true
mergeoptions = --no-commit --no-ff
[color]
branch = auto
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
import sys
import os
from slacker import Slacker
UTF8Writer = codecs.getwriter('utf8')

Keybase proof

I hereby claim:

  • I am jszwedko on github.
  • I am jszwedko (https://keybase.io/jszwedko) on keybase.
  • I have a public key whose fingerprint is 3C9E F441 A578 807D 7DE9 AD5D 02B8 F767 A3B2 3EEC

To claim this, I am signing this object:

@jszwedko
jszwedko / bf-to-midi.go
Created June 3, 2016 03:47
bf-to-midi because why not
package main
import (
"bufio"
"fmt"
"io"
"os"
"time"
"github.com/rakyll/portmidi"
2016/07/26 22:32:03 [WARN] Invalid log level: "1". Defaulting to level: TRACE. Valid levels are: [TRACE DEBUG INFO WARN ERROR]
2016/07/26 22:32:03 [INFO] Terraform version: 0.6.16 6e586c89394f5474b6c5f3217a4a75ce80c3fd6c
2016/07/26 22:32:03 [DEBUG] Detected home directory from env var: /home/admin
2016/07/26 22:32:03 [DEBUG] Discovered plugin: atlas = /usr/local/bin/terraform-provider-atlas
2016/07/26 22:32:03 [DEBUG] Discovered plugin: aws = /usr/local/bin/terraform-provider-aws
2016/07/26 22:32:03 [DEBUG] Discovered plugin: azure = /usr/local/bin/terraform-provider-azure
2016/07/26 22:32:03 [DEBUG] Discovered plugin: azurerm = /usr/local/bin/terraform-provider-azurerm
2016/07/26 22:32:03 [DEBUG] Discovered plugin: chef = /usr/local/bin/terraform-provider-chef
2016/07/26 22:32:03 [DEBUG] Discovered plugin: clc = /usr/local/bin/terraform-provider-clc
2016/07/26 22:32:03 [DEBUG] Discovered plugin: cloudflare = /usr/local/bin/terraform-provider-cloudflare
2016/08/28 21:09:15 [WARN] Invalid log level: "1". Defaulting to level: TRACE. Valid levels are: [TRACE DEBUG INFO WARN ERROR]
2016/08/28 21:09:15 [INFO] Terraform version: 0.7.2 0985f39e992f64c5486068e9ab6cde2c8316c65a
2016/08/28 21:09:15 [INFO] CLI args: []string{"/usr/local/bin/terraform", "plan"}
2016/08/28 21:09:15 [DEBUG] Detected home directory from env var: /home/jesse
2016/08/28 21:09:15 [DEBUG] Detected home directory from env var: /home/jesse
2016/08/28 21:09:15 [DEBUG] Attempting to open CLI config file: /home/jesse/.terraformrc
2016/08/28 21:09:15 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2016/08/28 21:09:15 [DEBUG] Detected home directory from env var: /home/jesse
2016/08/28 21:09:15 [DEBUG] New state was assigned lineage "2593e50e-21d5-4792-9ba6-9e93a9b68998"
2016/08/28 21:09:15 [TRACE] Graph after step *terraform.ConfigTransformer:
2016/08/28 21:09:31 [INFO] Terraform version: 0.7.2 0985f39e992f64c5486068e9ab6cde2c8316c65a
2016/08/28 21:09:31 [INFO] CLI args: []string{"/usr/local/bin/terraform", "plan"}
2016/08/28 21:09:31 [DEBUG] Detected home directory from env var: /home/jesse
2016/08/28 21:09:31 [DEBUG] Detected home directory from env var: /home/jesse
2016/08/28 21:09:31 [DEBUG] Attempting to open CLI config file: /home/jesse/.terraformrc
2016/08/28 21:09:31 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2016/08/28 21:09:31 [DEBUG] Detected home directory from env var: /home/jesse
2016/08/28 21:09:31 [DEBUG] New state was assigned lineage "30b333f5-9ad7-4467-a4e9-5beaea762576"
2016/08/28 21:09:31 [DEBUG] DestroyEdgeInclude: Checking: aws_subnet.private
2016/08/28 21:09:31 [DEBUG] DestroyEdgeInclude: d = var.azs : d2 = var.az_cidrs
@jszwedko
jszwedko / -
Created September 6, 2016 23:26
2016/09/06 23:26:26 [WARN] Invalid log level: "1". Defaulting to level: TRACE. Valid levels are: [TRACE DEBUG INFO WARN ERROR]
2016/09/06 23:26:26 [INFO] Terraform version: 0.7.3 0dd7c657d6d60d2e7392b66ae6f74fb84582cab9
2016/09/06 23:26:26 [INFO] CLI args: []string{"/usr/local/bin/terraform", "plan"}
2016/09/06 23:26:26 [DEBUG] Detected home directory from env var: /home/admin
2016/09/06 23:26:26 [DEBUG] Detected home directory from env var: /home/admin
2016/09/06 23:26:26 [DEBUG] Attempting to open CLI config file: /home/admin/.terraformrc
2016/09/06 23:26:26 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2016/09/06 23:26:26 [DEBUG] Detected home directory from env var: /home/admin
2016/09/06 23:26:26 [DEBUG] New state was assigned lineage "76ea2413-2a28-4a8f-bc2e-c311774c4312"
2016/09/06 23:26:26 [TRACE] Graph after step *terraform.ConfigTransformer: