Skip to content

Instantly share code, notes, and snippets.

View os6sense's full-sized avatar

Adrian Lee os6sense

  • MyMedsAndMe
  • London, UK
View GitHub Profile
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
require 'find'
""" asciidoc
Class: Directory Treee
Recurse down a directory tree
"""
module EAsciidoc
class DirectoryTree
def initialize(directories)
@os6sense
os6sense / gist:2673f7997cdbb1c8e97040257d746ea6
Created October 23, 2021 09:07
Tilt, docker build, and ssh-agent forwarding
This took a while to figure out because the information is a bit spreadout and I was missing a piece of the puzzle.
SSH agent forwarding:
Set up ssh-agent for github and ensure your local key works
(see https://docs.github.com/en/developers/overview/using-ssh-agent-forwarding)
Tiltfile
Add ssh="default" as a parameter to the docker_build which which needs to pull from github
docker_build( 'localhost:32000/something', '../something',
@os6sense
os6sense / gist:b9720881b2172c07eb88fea6cad006cf
Created November 22, 2021 00:22
http-echo with working microk8s ingress example
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/name: http-echo
run: http-echo
app: http-echo
name: http-echo
spec: