| title | description | author | created | updated | ||
|---|---|---|---|---|---|---|
{{title}} |
{{description}} |
{{author}} |
|
|
Use column view (C-c C-x C-c) to edit the settings file. Once done,
use org-babel-tangle (C-c C-v t) to install to you init file. You
can quit column view by putting point in any cell and pressing ‘q’
The machine name can be retrieved by running eval-expression (M-:)
and calling (system-name). You can also set the system name using the
Setting up Kubernetes auth backend on Vault. I did this by running Vault server in dev mode in minikube. Files referenced in the commands below are included as other files in this gist.
kubectl create namespace vault-ns
kubectl --namespace=vault-ns run vault --image=vault --port=8200 -- vault server -dev -dev-listen-address=0.0.0.0:8200 -dev-root-token-id=root-token
kubectl --namespace=vault-ns expose deployment vault --type=NodePort --port=80 --target-port=8200
minikube service --namespace vault-ns vault --url I recently started using family sharing to share audiobooks with my family and partner. I wanted to manually select which audiobooks to share by visiting Amazon's "Your content" page.
When I visited that page, to my horror, I had ~800 New York Times Audio Digest "audiobooks", one every day for the past ~2 years, to which I never listened. These entries crowded out my actual audiobooks, making it unfeasible to actually choose and share anything.
Amazon's page also makes it very difficult to clean this up:
| package main | |
| // @lizrice, mostly copied from @doctor_julz: https://gist.github.com/julz/c0017fa7a40de0543001 | |
| import ( | |
| "fmt" | |
| "os" | |
| "os/exec" | |
| "syscall" | |
| ) |
| #!/bin/bash | |
| # === INFO === | |
| # altnetworking.sh | |
| # Description: Run the specified application in a custom networking environment. | |
| # Uses cgroups to run process(es) in a network environment of your own choosing (within limits!) | |
| VERSION="0.1.0" | |
| # Author: John Clark | |
| # Requirements: Debian 8 Jessie (plus iptables 1.6 from unstable) | |
| # |
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "os/exec" | |
| "syscall" | |
| ) | |
| func main() { |
| ZIP,LAT,LNG | |
| 00601,18.180555, -66.749961 | |
| 00602,18.361945, -67.175597 | |
| 00603,18.455183, -67.119887 | |
| 00606,18.158345, -66.932911 | |
| 00610,18.295366, -67.125135 | |
| 00612,18.402253, -66.711397 | |
| 00616,18.420412, -66.671979 | |
| 00617,18.445147, -66.559696 |
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |