Skip to content

Instantly share code, notes, and snippets.

View jleeothon's full-sized avatar

Johnny Lee-Othon jleeothon

  • Wunderflats
  • Berlin
View GitHub Profile
@jleeothon
jleeothon / values-dind.yaml
Created May 3, 2024 15:16
Values for a runner scale set (Actions Runner Controller)
## githubConfigUrl is the GitHub url for where you want to configure runners
## ex: https://github.com/myorg/myrepo or https://github.com/myorg
githubConfigUrl: "https://github.com/wunderflats"
## githubConfigSecret is the k8s secrets to use when auth with GitHub API.
## You can choose to use GitHub App or a PAT token
## githubConfigSecret:
### GitHub Apps Configuration
## NOTE: IDs MUST be strings, use quotes
#github_app_id: ""
@jleeothon
jleeothon / test mermaid
Created November 28, 2023 16:54
blabla.md
```mermaid
pie title Pets adopted by volunteers
"Dogs" : 386
"Cats" : 85
"Rats" : 15
```
@jleeothon
jleeothon / normalize.js
Created May 13, 2020 10:29
Normalize Unicode from stdin into stdout
process.stdin.on('data', (chunk) => { process.stdout.write(chunk.toString().normalize()) })
@jleeothon
jleeothon / keybase.md
Created May 28, 2018 08:46
keybase.md

Keybase proof

I hereby claim:

  • I am jleeothon on github.
  • I am jleeothon (https://keybase.io/jleeothon) on keybase.
  • I have a public key ASDMS3AwK0kLSMJI5DMviWfRGLnrGmTCeIPaJarITbGjGgo

To claim this, I am signing this object:

@jleeothon
jleeothon / example.rb
Last active April 2, 2018 09:54
Example lazy evaluation in Ruby
# Note .lazy
txt_files = file_names.lazy.filter { |file_name| file_name.end_with? '.txt' }
file_contents = txt_files = { |file_name| File.read(file_name) }
second_to_last_chars = file_contents.map { |text| text[-2] }
concatenated_characters = second_to_last_chars.reduce { |c, result| result + c }
@jleeothon
jleeothon / Dockerfile
Created April 6, 2017 22:13
Dockerfile that installs python3.4 but not python3.4-config
FROM ubuntu:14.04.5
COPY files /etc/files
RUN \
export BUILD_DEPS="\
build-essential \
" && \
export RUN_DEPS="\
libffi6 \
@jleeothon
jleeothon / style.css
Created January 14, 2017 09:32 — forked from TechFounder/style.css
Buddha bless your code to be bug free
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
#!/bin/bash
# tip: run with `./hashes.sh | column -t`
set -eu
for g in `find . -name .git`
do
d=$(basename $(dirname $g))
h=$(git --git-dir $g rev-parse HEAD)
@jleeothon
jleeothon / project-manager.coffee
Created August 23, 2016 19:35
project-manager.coffee
default_template:
title: "Default"
settings:
"*":
"editor.tabLength": 4
".source.coffee":
"editor.tabLength": 2
".source.ruby":
"editor.tabLength": 2
alfiebox:
# Rake Quick Reference
# by Greg Houston
# http://ghouston.blogspot.com/2008/07/rake-quick-reference.html
# -----------------------------------------------------------------------------
# Running Rake
# -----------------------------------------------------------------------------
# running rake from the command-line:
# rake --help