Skip to content

Instantly share code, notes, and snippets.

View nerdalert's full-sized avatar
🐈
🦀 🐿

Brent Salisbury nerdalert

🐈
🦀 🐿
View GitHub Profile
# Test output for docker/libnetwork issue #207
### Create a bridge named bridge
./dnet network create bridge
26e32cb558cbdb8c2efa1ab32132e67a1900d98dd0c180b0304a29f126c70d05
./dnet network ls
NETWORK ID NAME TYPE
26e32cb558cb bridge null
diff --git a/sandbox/sandbox_unsupported.go b/sandbox/sandbox_unsupported.go
index 55790c1..4a55f46 100644
--- a/sandbox/sandbox_unsupported.go
+++ b/sandbox/sandbox_unsupported.go
@@ -5,23 +5,22 @@ package sandbox
import "errors"
var (
- ErrNotImplemented = errors.New("not implemented")
Jul 10 07:57:26 deb138 ovsdb-server: 73199|poll_loop|DBG|wakeup due to 0-ms timeout at tcp:127.0.0.1:49597
Jul 10 07:57:26 deb138 ovsdb-server: 73200|poll_loop|DBG|wakeup due to [POLLIN] on fd 18 (127.0.0.1:6640<->127.0.0.1:49597) at ../lib/stream-fd.c:149
Jul 10 07:57:26 deb138 ovsdb-server: 73201|jsonrpc|DBG|tcp:127.0.0.1:49597: received request, method="transact", params=["Open_vSwitch",{"uuid-name":"intf","op":"insert","table":"Interface","row":{"name":"eth0-a822b","type":"internal"}},{"uuid-name":"port","op":"insert","table":"Port","row":{"interfaces":["named-uuid","intf"],"name":"eth0-a822b"}},{"mutations":[["ports","insert",["set",[["named-uuid","port"]]]]],"where":[["name","==","ovsbr-docker0"]],"op":"mutate","table":"Bridge"}], id=46
Jul 10 07:57:26 deb138 ovsdb-server: 73202|jsonrpc|DBG|unix:/tmp/stream-unix.3617.0: send notification, method="update", params=[null,{"Port":{"bb28c2e2-fc5e-4d3a-a5f6-add450beede2":{"new":{"trunks":["set",[]],"bond_fake_iface":false,"status":["map",[]],"other_config":["

Upgrade the default CentOS / RHEL 2.6 kernel from 2001 :/

Required due to a Devmapper issue if I recall correctly, from a 5+ yr old kernel.

$ rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
$ rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm
$ yum --enablerepo=elrepo-kernel install kernel-lt -y
$ sudo sed -i 's/^default=1/default=0/' /etc/grub.conf
$ reboot
@nerdalert
nerdalert / vim-cheatsheet.md
Last active November 8, 2023 23:38
VIM Cheatsheet

VIM Cheatsheet

Cursor movement

h - move cursor left
j - move cursor down
k - move cursor up
l - move cursor right

w - jump forwards to the start of a word

@nerdalert
nerdalert / RegEx-Cheatsheet.md
Created July 16, 2015 04:10
RegEx Cheat Sheet

RegEx Cheat Sheet #1

regex-cheatsheet-2

RegEx Cheat Sheet #2

regex-cheatsheet

@nerdalert
nerdalert / Git-Cheatsheets.md
Last active December 9, 2020 13:00
Git Cheat Sheets

Git Cheat Sheets and Examples


@nerdalert
nerdalert / Netfilter-IPTables-Diagrams.md
Last active April 9, 2024 09:18
Linux NetFilter, IP Tables and Conntrack Diagrams

Linux NetFilter, IP Tables and Conntrack Diagrams

IPTABLES TABLES and CHAINS

IPTables has the following 4 built-in tables.

1) Filter Table

Filter is default table for iptables. So, if you don’t define you own table, you’ll be using filter table. Iptables’s filter table has the following built-in chains.

tcpdump examples

See the list of interfaces on which tcpdump can listen:

tcpdump -D

Listen on interface eth0:

tcpdump -i eth0

Listen on any available interface (cannot be done in promiscuous mode. Requires Linux kernel 2.2 or greater):