Skip to content

Instantly share code, notes, and snippets.

Avatar

Dylan Meissner dylanmei

View GitHub Profile
@dylanmei
dylanmei / pgn.kt
Created Sep 9, 2019
Parse PGN chess database files
View pgn.kt
import java.io.File
import java.io.Reader
import java.io.StringReader
import java.io.BufferedReader
import kotlin.sequences.*
import kotlin.collections.*
data class Match(
val event: String,
@dylanmei
dylanmei / archlinux_from_usb.md
Last active Dec 23, 2017
Archlinux from USB
View archlinux_from_usb.md
@dylanmei
dylanmei / steps.sh
Created Jun 15, 2017
simple ss-cert
View steps.sh
openssl genrsa -out ca-key.pem 2048
openssl req -x509 -new -nodes -key ca-key.pem -subj "/CN=*" -days 3650 -out ca.pem
openssl genrsa -out telepath-key.pem 2048
openssl req -new -key telepath-key.pem -subj "/CN=telepath" -out telepath.csr
openssl x509 -req -in telepath.csr -CA ca.pem -CAkey ca-key.pem -CAcreateserial -out telepath.pem -days 3650
View kafka-tls.go
package main
import (
"fmt"
"io/ioutil"
"log"
"os"
"crypto/tls"
"crypto/x509"
View heat-resource.yml
heat_template_version: 2014-10-16
description: >
Simple nested resource
resources:
random_string:
type: OS::Heat::RandomString
@dylanmei
dylanmei / rsc-ss-upload.go
Last active Aug 29, 2015
RSC SS Upload Example
View rsc-ss-upload.go
package main
import (
"fmt"
"os"
"path/filepath"
"github.com/rightscale/rsc/rsapi"
"github.com/rightscale/rsc/ss/ssd"
)
View gist:1759c5b47a5e7a0b8681
# http://eclim.org/install.html
# http://qiita.com/youhei/items/09756fba4f969b075486
# http://wiki.eclipse.org/Eclipse/Installation#Download_Eclipse
brew install caskroom/cask/brew-cask
#brew cask install java
brew cask install eclipse-java
View gist:1c94c11276ad53cd856a
watch_for_osx() {
while :
output=`eval "$@"`
do clear;
echo $output
sleep 5
done
}
alias watch=watch_for_osx
View keybase.md

Keybase proof

I hereby claim:

  • I am dylanmei on github.
  • I am dylanmei (https://keybase.io/dylanmei) on keybase.
  • I have a public key whose fingerprint is B068 6A5C 1FBE 9127 25A4 DF31 7D8E 57A7 3DDA 9FC0

To claim this, I am signing this object:

@dylanmei
dylanmei / gist:50ef2f5e282287104986
Created Apr 5, 2015
Problem with logspout custom build
View gist:50ef2f5e282287104986
logspout-kafka|master ⇒ docker build -t gettyimages/logspout -f Dockerfile.example .
Sending build context to Docker daemon 71.68 kB
Sending build context to Docker daemon
Step 0 : FROM gliderlabs/logspout:master
# Executing 2 build triggers
Trigger 0, COPY ./modules.go /src/modules.go
Step 0 : COPY ./modules.go /src/modules.go
---> Using cache
Trigger 1, RUN cd /src && ./build.sh "$(cat VERSION)-custom"
Step 0 : RUN cd /src && ./build.sh "$(cat VERSION)-custom"
You can’t perform that action at this time.