I hereby claim:
- I am j18e on github.
- I am j18e (https://keybase.io/j18e) on keybase.
- I have a public key ASBTWHuLkz_4no8CmGB_kFkwI3duTnfDtl9GK2ui74ImLgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| http: | |
| routers: | |
| # http_catchall redirects all incoming traffic from http to https | |
| http_catchall: | |
| entrypoints: | |
| - "http" | |
| middlewares: | |
| - "https_redirect" | |
| rule: "HostRegexp(`{any:.+}`)" | |
| service: "noop" |
| #!/bin/bash -eu | |
| git filter-branch --force --index-filter \ | |
| 'git rm --cached --ignore-unmatch src/images/my_large_photos_*.jpg' \ | |
| --prune-empty --tag-name-filter cat -- --all | |
| git for-each-ref --format='delete %(refname)' refs/original | git update-ref --stdin | |
| git reflog expire --expire=now --all |
| package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "os" | |
| "strings" | |
| "sync" | |
| "time" |
| version: '3' | |
| services: | |
| unifi: | |
| restart: always | |
| hostname: unifi | |
| container_name: "unifi" | |
| image: linuxserver/unifi-controller | |
| volumes: ["../data/unifi/:/config"] | |
| environment: | |
| TZ: "America/Seattle" |
| { | |
| "global": { | |
| "check_for_updates_on_startup": false, | |
| "show_in_menu_bar": false, | |
| "show_profile_name_in_menu_bar": false | |
| }, | |
| "profiles": [ | |
| { | |
| "complex_modifications": { | |
| "parameters": { |
| ; Volume control (turn master volume up and down with Ctrl-Alt-Up/Down and | |
| ; toggle mute with Ctrl-Alt-.) | |
| !]::Send {Volume_Up} | |
| ![::Send {Volume_Down} | |
| !\::Send {Volume_Mute} | |
| g_LastCtrlKeyDownTime := 0 | |
| g_AbortSendEsc := false | |
| g_ControlRepeatDetected := false |
| # in ~/.ssh/config | |
| # run `ssh application-server` to use forward, then `curl localhost:8080` | |
| Host application-server | |
| HostName bastion.mycloud.app | |
| User admin | |
| ForwardAgent yes | |
| ForwardX11 yes | |
| LocalForward 8080 app-server-01.mycloud.local:80 |
| from jinja2 import Environment, meta, StrictUndefined, exceptions | |
| from yaml import load_all | |
| def get_manifests(template_string, overrides): | |
| config = get_config(template_string) | |
| for k, v in overrides.items(): | |
| config['parms'][k] = v | |
| rendered = render_jinja(template_string, config['parms']) | |
| results = list(load_all(rendered)) | |
| try: |
| # $HOME/.ssh/config | |
| Host example-forward | |
| HostName bastion.example.com | |
| ForwardAgent yes | |
| ForwardX11 yes | |
| LocalForward 9090 app-0.example.local:8080 | |
| # this allows you to run `ssh example-forward` | |
| # you'll get an SSH session but more importantly, |