Skip to content

Instantly share code, notes, and snippets.

View trapier's full-sized avatar

Trapier Marshall trapier

  • Raleigh, NC USA
View GitHub Profile
@trapier
trapier / gist:2b0e04590edd27e7544cb542a4737fd3
Created October 22, 2019 20:57 — forked from hgross/gist:26042d052f58feeb6d1b329e8dd2dfcc
Change docker_gwbridge subnet address
## Do this on each swarm-node
# store containers attached to the bridge
$ gwbridge_users=$(docker network inspect --format '{{range $key, $val := .Containers}} {{$key}}{{end}}' docker_gwbridge | \
$ xargs -d' ' -I {} -n1 docker ps --format {{.Names}} -f id={})
# stop all containers
# if you have stacks that restart automatically, remove them via docker stack <stackName> rm
$ echo "$gwbridge_users" | xargs docker stop
$ docker network rm docker_gwbridge
$ docker network disconnect -f docker_gwbridge gateway_ingress-sbox
@trapier
trapier / PrimitivePic_bg.30m.py
Last active September 23, 2019 17:15 — forked from teki/PrimitivePic_bg.30m.py
Use latest pic as background from https://twitter.com/PrimitivePic
#!/usr/bin/python
import os
import re
import subprocess
import tempfile
import time
import urllib.request
from pathlib import Path
TW_URL = 'https://twitter.com/PrimitivePic'
diff --git a/components/engine/vendor/github.com/docker/libnetwork/drivers/macvlan/macvlan_network.go b/components/engine/vendor/github.com/docker/libnetwork/drivers/macvlan/macvlan_network.go
index 914c6cdf64..8e73809cff 100644
--- a/components/engine/vendor/github.com/docker/libnetwork/drivers/macvlan/macvlan_network.go
+++ b/components/engine/vendor/github.com/docker/libnetwork/drivers/macvlan/macvlan_network.go
@@ -64,10 +64,16 @@ func (d *driver) CreateNetwork(nid string, option map[string]interface{}, nInfo
// empty parent and --internal are handled the same. Set here to update k/v
config.Internal = true
}
- err = d.createNetwork(config)
+
@trapier
trapier / halp_cant_see_sfdc_stuff.css
Last active June 29, 2017 16:20 — forked from squizzi/halp_cant_see_sfdc_stuff.css
halp can't see sfdc 'cause the fonts just are so small
/*Fix Pukey Colors on Case Tabs*/
.caseTab .tertiaryPalette,
.individualPalette .caseBlock .tertiaryPalette,
.layoutEdit .individualPalette .caseBlock .tertiaryPalette {
background-color: #36a0fe;
border-color: #015ba7;
}
.caseTab .primaryPalette,
.individualPalette .caseBlock .primaryPalette {