Skip to content

Instantly share code, notes, and snippets.

View deedubs's full-sized avatar
:shipit:
kustomize build all-the-things | kubectl apply -f -

Dan Williams deedubs

:shipit:
kustomize build all-the-things | kubectl apply -f -
View GitHub Profile
#### Disable audio suspend
* `sudo gedit /etc/pulse/default.pa`. Comment out the line indicated below.
```
### Automatically suspend sinks/sources that become idle for too long
# load-module module-suspend-on-idle
@deedubs
deedubs / example-cve.json
Created July 30, 2018 04:07
example-cve.json
{
"cve" : {
"data_type" : "CVE",
"data_format" : "MITRE",
"data_version" : "4.0",
"CVE_data_meta" : {
"ID" : "CVE-2009-3238",
"ASSIGNER" : "[email protected]"
},
"affects" : {
@deedubs
deedubs / cni-cleanup.go
Last active March 13, 2017 14:24
This small CLI tool runs over all the files in a directory, looks at there contents, and checks for a corresponding running docker container. If it doesn't exist the file is removed.
package main
import (
"context"
"flag"
"io/ioutil"
"log"
"os"
"path"
"regexp"
@deedubs
deedubs / cadvisor 0.20.4 panic
Last active January 26, 2016 16:00
sudo /usr/local/bin/cadvisor -port=8082 -event_storage_age_limit=1m -docker_only=true -docker_env_metadata_whitelist=MARATHON_APP_ID,MARATHON_APP_DOCKER_IMAGE
panic: assignment to entry in nil map
goroutine 1 [running]:
github.com/google/cadvisor/container/docker.newDockerContainerHandler(0xc820170360, 0xc8200a2a50, 0x48, 0x7f91e1ea67d0, 0xc8200dea80, 0x7f91e1ea5f10, 0xc820248e00, 0xc8202d5cf7, 0x4, 0xc820380628, ...)
/usr/local/google/home/vishnuk/go/src/github.com/google/cadvisor/container/docker/handler.go:163 +0x11f2
github.com/google/cadvisor/container/docker.(*dockerFactory).NewContainerHandler(0xc820380600, 0xc8200a2a50, 0x48, 0xc8205dd501, 0x0, 0x0, 0x0, 0x0)
/usr/local/google/home/vishnuk/go/src/github.com/google/cadvisor/container/docker/factory.go:135 +0x17e
github.com/google/cadvisor/container.NewContainerHandler(0xc8200a2a50, 0x48, 0xc8205dd801, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/google/home/vishnuk/go/src/github.com/google/cadvisor/container/factory.go:79 +0x6e6
github.com/google/cadvisor/manager.(*manager).createContainer(0xc8200dea80, 0xc8200a2a50, 0x48, 0x0, 0x0)
My traceroute [v0.86]
ironhide.local (0.0.0.0) Thu Jan 14 11:37:36 2016
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. mynetwork 0.0% 414 0.6 0.7 0.6 26.4 1.6
2. 10.11.5.177
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. mynetwork 0.0% 20 0.7 1.7 0.7 10.8 2.8
2. 10.11.5.177 0.0% 20 2.0 12.1 2.0 49.0 13.7
3. 10.178.206.78
@deedubs
deedubs / gist:a094081424f12fca6dc8
Created October 8, 2015 15:30
Example marathon snipplet
"ports": [
30004
],
"cmd": "npm run entry",
"container": {
"docker": {
"network": "BRIDGE",
"image": "quay.io/...",
"portMappings": [
{ "containerPort": 8080, "hostPort": 30004 }
image: google/nodejs:0.10.33
script:
- npm install
- npm test
@deedubs
deedubs / iterm2
Created September 28, 2015 13:36
iTerm2 Profile
{
"Ansi 6 Color" : {
"Green Component" : 0.7137255072593689,
"Blue Component" : 0.7607843279838562,
"Red Component" : 0.3372549116611481
},
"Tags" : [
],
"Ansi 12 Color" : {