Skip to content

Instantly share code, notes, and snippets.

View philips's full-sized avatar
👨‍💻
at the keebs

Brandon Philips philips

👨‍💻
at the keebs
View GitHub Profile
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
const folder = "";
/* Optional tags */
let tags = "clippings";
@philips
philips / obsidian-web-clipper.js
Created September 15, 2021 23:19 — forked from kepano/obsidian-web-clipper.js
Obsidian Bookmarklet to clip pages
javascript: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@philips
philips / gist:03565438faa2b082ac2f4cabb8d3853b
Last active April 25, 2019 21:54
CNCF May Governing Board meeting

Hello CNCF Project Maintainers,

Michelle Noorali and I represent developers working on CNCF projects to the CNCF governing board (GB). The next GB meeting is May 20th in Barcelona; Michelle will be attending.

If you have any business that you would like us to raise at this meeting please email us off list or file an issue. The deadline is May 13th so there is time to prepare.

Since our last meeting Michelle and I have worked on a number of topics:

This has been happening to me for the last two weeks or more. We regularly streamed a brown noise track to our Chromecast for the last 4 months for our daughter. Now it no longer works from my wifes phone or my phone. It was skipping when I tested at 735am 20180519. No other services have this issue with Chromecast only Spotify. Regularly using Youtube Pulsar Netflix HBO and Google Play. Pixel 1 phone Android 4.171019.016.B1, Spotify 8.4.53.703, Pixel 2 phone Android 4.171019.016.B1, Spotify 8.4.53.703, Chromecast audio 1.31.114510, Google home mini 1.31.114510, Spotify Premium family accounts

CoreOS continues to build and introduce projects, products, and teams that make customers successful with Kubernetes. Join us through this next phase of growth of the company as we continue our mission to secure the internet through rapid adoption of an enterprise ready Kubernetes we call CoreOS Tectonic.

https://coreos.com/careers

Positions are available in a variety of locations. Project

Highlighted roles below; additional roles in Sales, Project Management, IT, Marketing, and Customer Success.

Engineering: Berlin, SFO, or remote

Running a local Kubernetes API server on a local workstation based on an etcd snapshot can be useful for debugging, and understanding database backups. In a few simple steps this can be accomplished on Windows, Linux, or OSX.

First, gather up a backup of the etcd data directory. Generally this file is stored in /var/etcd or /var/lib/etcd or a backup server. Inside of this directory is a file called member/snap/db which can be used to generate a new data-dir that can run locally.

$ ETCDCTL_API=3 etcdctl snapshot restore kube-system-kube-etcd-0000/member/snap/db --name m1 --initial-cluster m1=http://localhost:2380 --initial-cluster-token etcd-cluster-1 --initial-advertise-peer-urls http://localhost:2380 --skip-hash-check

Now, run etcd against the generated data directory

@philips
philips / gist:04199c1647670eb451af2c2686a91b8a
Created May 12, 2017 23:34
machine parseable Terraform plan
$ export TERRAFORM_CONFIG=.terraformrc; $HOME/Downloads/tectonic/tectonic-installer/darwin/terraform plan -var-file terraform.tfvars -out bar -state terraform.tfstate ./platforms/aws
$ go get github.com/philips/tfjson
$ tfjson bar
{
...secrets and stuff...
"vpc": {
"destroy": false
},
"workers": {
"aws_autoscaling_group.workers": {
@philips
philips / users.md
Last active April 5, 2023 14:17
Kubernetes Third-Party Resource Users

Keybase proof

I hereby claim:

  • I am philips on github.
  • I am philips (https://keybase.io/philips) on keybase.
  • I have a public key ASD6egp9-BSE1l3ExMqrjHCKwKJX9NkZ3qK9-B80pATxigo

To claim this, I am signing this object:

Example of rkt today with systemd service file generation and systend-nspawn execution of systemd.
$ sudo rkt run docker://redis --insecure-options image
$ rkt list | grep redis
764de9a0 redis registry-1.docker.io/library/redis:latest running 5 minutes ago 5 minutes ago default:ip4=172.16.28.2
$ ps aux | grep 764de9a0
root 8168 4.4 0.1 41780 4440 pts/2 S+ 19:04 0:13 stage1/rootfs/usr/lib/ld-linux-x86-64.so.2 stage1/rootfs/usr/bin/systemd-nspawn --boot --register=true --link-journal=try-guest --quiet --uuid=764de9a0-9442-4512-9d73-5a040dac5fe2 --machine=rkt-764de9a0-9442-4512-9d73-5a040dac5fe2 --directory=stage1/rootfs --bind=/mnt/sda1/var/lib/rkt/pods/run/764de9a0-9442-4512-9d73-5a040dac5fe2/sharedVolumes/redis-volume-data:/opt/stage2/redis/rootfs/data --capability=CAP_AUDIT_WRITE,CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FSETID,CAP_FOWNER,CAP_KILL,CAP_MKNOD,CAP_NET_RAW,CAP_NET_BIND_SERVICE,CAP_SETUID,CAP_SETGID,CAP_SETPCAP,CAP_SETFCAP,CAP_SYS_CHROOT -- --default-standard-output=tty --log-target=nul