Skip to content

Instantly share code, notes, and snippets.

View dbrinegar's full-sized avatar

David Brinegar dbrinegar

View GitHub Profile
@dbrinegar
dbrinegar / akkacluster-status.yaml
Created May 1, 2019 17:34
kubectl get akkacluster/akka-cluster-demo -o yaml
apiVersion: v1
items:
- apiVersion: app.lightbend.com/v1alpha1
kind: AkkaCluster
metadata:
creationTimestamp: "2019-05-01T03:42:06Z"
generation: 1
name: akka-cluster-demo
namespace: default
resourceVersion: "13715"
@dbrinegar
dbrinegar / revproxy.go
Last active February 5, 2024 09:34
transparent reverse proxy with basic auth and auto-follow
package main
import (
"log"
"net/http"
"net/http/httputil"
"net/url"
"gopkg.in/gcfg.v1"
)

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@dbrinegar
dbrinegar / removeDropboxGreenIcon.sh
Last active August 29, 2015 14:07
remove Dropbox bright green check mark in Yosemite
Mac O/S 10.10 introduced bright colored flat icons, and in that spirit Dropbox added a bright
green check mark for synced files. These are so bright that they leave an afterimage in my eye,
so I've removed them and am much happier
@dbrinegar
dbrinegar / gist:6095828
Last active August 8, 2017 06:48
mac system.log spam control
Noticed /var/log/system.log is a huge file that hasn't rotated for months, and tailing is spammy:
Jul 27 11:17:55 MacMini-2012.local Google Chrome Helper EH[62270]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary on line 3. Parsing will be abandoned. Break on _CFPropertyListMissingSemicolon to debug.
and
Jul 27 11:18:16 MacMini-2012.local coreaudiod[136]: Disabled automatic stack shots because audio IO is active
I want to tell the system that I permanently don't care about these messages, so let's add
ignore lines at the top of asl.conf. This is a first-rule type configuration file, so if