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 / 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
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
@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 / 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 / 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 / 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 / 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 / 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: ""