Skip to content

Instantly share code, notes, and snippets.

@dylanmei
dylanmei / heat-resource.yml
Last active October 16, 2015 22:36
heat-resource
heat_template_version: 2014-10-16
description: >
Simple nested resource
resources:
random_string:
type: OS::Heat::RandomString
package main
import (
"fmt"
"io/ioutil"
"log"
"os"
"crypto/tls"
"crypto/x509"
@dylanmei
dylanmei / steps.sh
Created June 15, 2017 14:26
simple ss-cert
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
@dylanmei
dylanmei / archlinux_from_usb.md
Last active December 23, 2017 20:18
Archlinux from USB
@dylanmei
dylanmei / pgn.kt
Created September 9, 2019 14:06
Parse PGN chess database files
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 / Justfile
Created November 14, 2021 16:54
Install kotlin-language-server
install: clean
./gradlew :server:distZip
@cd server/build/distributions && unzip server.zip
@rm -rf ~/.local/share/kotlin-language-server
mv server/build/distributions/server \
~/.local/share/kotlin-language-server
clean:
./gradlew :server:clean