Skip to content

Instantly share code, notes, and snippets.

View bracki's full-sized avatar

Jan Brauer bracki

View GitHub Profile
@bracki
bracki / pleasure-spread_that_feeling_drums.ly
Last active December 8, 2022 10:15
Pleasure - Spread That Feeling, Drums Tab
\header {
title = "Spread That Feeling"
composer = "Pleasure"
}
up = \drummode {
\override Beam #'positions = #'(5.5 . 5.5)
sn16 sn <hhho bd>8 <hh sn> [hh] <hh bd> [hh] <hh sn> hh16 sn16
<hh bd>8 [<hh bd>] <hh bd sn> <hh bd> <hh bd> hh <hh sn> hh16 sn16
<hh bd>8 [<hh bd>] <hh bd sn> <hh bd> <hh bd> hh <hh sn> hh16 sn16
import boto3
import requests
import pykube
def query_route53_records():
c = boto.client("route53")
for zone in c.get_zones():
records = c.get_all_rrsets(zone.id)
for r in records:

Keybase proof

I hereby claim:

  • I am bracki on github.
  • I am bracki (https://keybase.io/bracki) on keybase.
  • I have a public key whose fingerprint is 6973 F3DB F562 53F9 A0A0 55FF A914 9FCB E1AF 1577

To claim this, I am signing this object:

@bracki
bracki / Knallhorst.java
Created April 25, 2016 13:17
root ca and java
/*
We have to create our own key store since our API endpoint doesn't send the intermediate
SSL certificates
(see https://svn.jimdo-server.com/trac/ticket/52929).
1. Get server certificate:
i.e.: echo | openssl s_client -connect mobile.jimdoapi.com:443 2>&1 | \
sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > jimdoapicert.pem
2. Create keystore:
i.e.: keytool -import -v -trustcacerts -alias 0 -file <(openssl x509 -in jimdoapicert.pem) \
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x606edc]
goroutine 27 [running]:
github.com/awslabs/aws-sdk-go/aws.func·002()
/build/tmp-build/confd-branch-dynamodb/Godeps/_workspace/src/github.com/awslabs/aws-sdk-go/aws/credentials.go:252 +0x5c
github.com/awslabs/aws-sdk-go/aws.(*iamProvider).Credentials(0xc20822e320, 0x0, 0x7f84591a9980, 0xc2081c7d80)
/build/tmp-build/confd-branch-dynamodb/Godeps/_workspace/src/github.com/awslabs/aws-sdk-go/aws/credentials.go:265 +0x9af
github.com/awslabs/aws-sdk-go/aws.(*DefaultCredentialsProvider).Credentials(0xa53948, 0xc2081c79d0, 0x0, 0x0)
/build/tmp-build/confd-branch-dynamodb/Godeps/_workspace/src/github.com/awslabs/aws-sdk-go/aws/credentials.go:60 +0x1e2
github.com/awslabs/aws-sdk-go/internal/signer/v4.Sign(0xc208040680)
@bracki
bracki / foo.go
Last active August 29, 2015 14:09
func restoreDump(conn mysqlConnection) {
log.Print("Restoring dump")
// Collect the output from the command(s)
var output bytes.Buffer
var stderr bytes.Buffer
bzcat := exec.Command("/bin/bzcat", "/tmp/location")
bzcat.Stderr = &stderr
cmdString := mysqlCommand(conn, []string{"cms"})
(schnuffi)➜ ~ pip -vvvvv install diesel
Using PyPI mirrors:
Downloading/unpacking diesel
Getting page http://pypi.python.org/simple/diesel
URLs to search for versions for diesel:
* http://pypi.python.org/simple/diesel/
Getting page http://pypi.python.org/simple/diesel/
Analyzing links from page https://pypi.python.org/simple/diesel/
Found link https://pypi.python.org/packages/source/d/diesel/diesel-2.1.0.tar.gz#md5=bf52eb9c2d51fedc667348af613f3250 (from https://pypi.python.org/simple/diesel/), version: 2.1.0
Found link https://pypi.python.org/packages/source/d/diesel/diesel-2.1.1.tar.gz#md5=0184b336fea8f5d4482befde5716ce14 (from https://pypi.python.org/simple/diesel/), version: 2.1.1
@bracki
bracki / diesel.md
Last active August 29, 2015 14:09
pip install diesel
>>> urllib2.urlopen('http://jamwt.com/diesel/diesel-3.0.16.tar.gz')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 400, in open
    response = meth(req, response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 513, in http_response
    'http', request, response, code, msg, hdrs)
@bracki
bracki / xconfhh.md
Last active August 29, 2015 14:06
A quick recap of XConf Hamburg

A quick recap of XConf Hamburg

Today I attended [XConf][XconfHH]. Here is a quick recap of the talks I visited.

Keynote by [@jezhumble][jezhumble]

This has been summarized in other posts far better than I can

@bracki
bracki / function1.clj
Created June 17, 2014 09:11
Clojure/Scala Interop
(defn scala-function1 [f]
"Convert a one-argument Clojure function to a scala.Function1."
(reify scala.Function1
(apply [_ x] (f x))))