Skip to content

Instantly share code, notes, and snippets.

[Unit]
Description=Create cbr0 and add rules to allow microk8s containers to have networking.
[Service]
ExecStart=/sbin/ip link add name cbr0 type bridge
ExecStart=/sbin/iptables -A FORWARD -i cbr0 -j ACCEPT
ExecStart=/sbin/iptables -A FORWARD -o cbr0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
ExecStart=/sbin/iptables -P FORWARD DROP
TimeoutStopSec=30
Type=oneshot

Keybase proof

I hereby claim:

  • I am planetbeing on github.
  • I am planetbeing (https://keybase.io/planetbeing) on keybase.
  • I have a public key ASClvgEiLP4Nq_vC_BXOP_9JvtTPNBED8XsvYV0TYLqJqgo

To claim this, I am signing this object:

@planetbeing
planetbeing / gist:9637899
Last active September 12, 2016 12:45
Make FaceTime always on top
lldb --attach-name FaceTime
expr NSArray* $windows = (NSArray*)[(NSApplication*)[NSApplication sharedApplication] windows];
expr unsigned int $count = [$windows count]
expr -- for(unsigned int i = 0; i < $count; ++i) { [(NSWindow*)[$windows objectAtIndex:i] setLevel:5]; }
expr Class $window = (Class)NSClassFromString(@"NSWindow")
expr void* $setLevel = (void*)class_getInstanceMethod($window, @selector(setLevel:))
expr void* $description = (void*)class_getMethodImplementation($window, @selector(description))
call (void)method_setImplementation($setLevel, $description)
process detach
quit
@planetbeing
planetbeing / README.md
Last active August 29, 2015 13:56 — forked from mbostock/.block
kangaroo's:
ibot(0/1): offset: 0x20000, length: 0x3b396, padded: 0x3b3c0
ibox(1/1): offset: 0x5b3c0, length: 0x28d22, padded: 0x28d40
dtre(2/1): offset: 0x84100, length: 0xa476, padded: 0xa4c0
logo(3/1): offset: 0x8e5c0, length: 0x2956, padded: 0x2980
recm(4/1): offset: 0x90f40, length: 0xbee6, padded: 0xbf00
nsrv(5/1): offset: 0x9ce40, length: 0x53b6, padded: 0x5400
bat0(6/1): offset: 0xa2240, length: 0xe1a6, padded: 0xe1c0
bat1(7/1): offset: 0xb0400, length: 0x102f6, padded: 0x10340
glyC(8/1): offset: 0xc0740, length: 0x5346, padded: 0x5380

Git Workflow

A workflow is a set of procedures one follows using Git as a tool to accomplish the task of making productive commits to the project. Please be bold in editing this with your suggestions since we're all basically Git newbies here. The style of this page should be in terms people clearly understand, not necessarily the official git way of describing everything.

Getting up to date

If you don't have any uncommitted changes lying around, just perform: