Skip to content

Instantly share code, notes, and snippets.

@Majiir
Majiir / ethernet-book.txt
Last active Jul 20, 2020
Combinator Ethernet
View ethernet-book.txt
0eNrtXduOo0YQ/ZUVUl4SvKIbDLaljBQleVtFq9U+RIpGFrZ7bLTcBHg21sofkL/It+VL0uCxjW3ormrAY8/yMitzaaBPdV1OVfV+02b+msWJF2bTWRR90SbfjkdSbfJX6Wd+zptH4e5w6i1D18+PZZuYaRPNy1ig6VroBvmvZcJYOPjqJUzb6poXLtjf2oRs9Yobn70kW/Mjh3t3Vww+lO6kqDs/le40UXf+WbrT2j7qGgszL/PY7puLH5tpuA5mLOGfc7jbTbxsFbDMmw/mUTDzQjeLEj54HKX87ijMn8xHHFBd2/B/yPshfwyfyiyJ/OmMrdxnj1/PLzoONOWnF8XNaX7iyUvSbAr+jpnvzr/k35KyfJx8sDRzcwwH/K2jmCXu7r20H/m90TqL1/jRt7uPCNn88Jok/5OwRXm6PP6Lf/jcS+ZrLyt+ku0jv5fCLqY5DoU8yS/M3+kCJ4rGiVwLJ+bOV5UwGaco/aSA0m5sBEjkHCT95LSJwZCcQyMcqx5i3DikRgLMw9ws2NxbsEQIvyFD/2WQlpboCej8vWI3Kd5rov2sgvozSzbZyguXu7HjDX/NNVfvT0kUTL2QD6ZNsmTNmqzeUxAcKJimGMyK5YxQEqdjWdCXqBMZ6zCxAVt462DAfD5TCdccceSzS6F5URkUPqvgNWDD3nioaI6MQs4X3FTPdyetbnVePhVdWaZi7DrJhk7ui9BVXu7AsLBRCufF3kCB6Er9kFtQP5WzPhQrIEuoKYCQOQo24qqI8ZnZ3Ie9sKGabShW4mOMQQDq9dFhAvbzKMR57wmCYH7y/IwlNfGRHNZ1jqlllMKlR/icj2GfP8YaCfIqNqLWL27DSKAd45GKUeAyX4TEk1IErWu+O2P8HbUPfN357z6xOfP4AuQn+N+0+CTHNMjYpsR07GMsauRQ3mEk/vlWI3Hz/fDosJXkmnYr1/vFfiHXlFiONTJtyzmV71/++E1BwnePQUj4sIHrTdoLu28CFKwjW4brh6uwKZKgmNgYNC9
@patrickfuller
patrickfuller / alias_dns.py
Last active Aug 10, 2021
Enables local DNS resolution of Unifi aliases
View alias_dns.py
"""
When run in cron, automatically adds compliant alias names to local DNS.
Use at your own risk.
Patrick Fuller, 25 June 17
"""
import re
import paramiko
import pymongo
@sjenning
sjenning / numa-pinned-kubelets.md
Last active Feb 7, 2019
Running multiple kubelets that each schedule to a different NUMA pinned domain
View numa-pinned-kubelets.md

Kubernetes on a NUMA machine

Example Topology

2 scoket (2 node) machine with 4 cores/socket, 0-3 on node0 and 4-7 on node1

kubelet options

kubelet-node0

@wido
wido / ceph-health.py
Last active Jun 16, 2020
Ceph Health in Python in a loop
View ceph-health.py
#!/usr/bin/env python
import time
import rados
import json
def get_cluster_health(r):
cmd = {"prefix":"status", "format":"json"}
ret, buf, errs = r.mon_command(json.dumps(cmd), b'', timeout=5)
result = json.loads(buf)
@vdvm
vdvm / sesscache.go
Created Jun 23, 2015
Distributed PHP sessions using memcached extension and coreos/etcd (PoC)
View sesscache.go
package main
import (
"bufio"
"fmt"
"net"
"regexp"
"runtime"
"strconv"
"strings"