Warning! This doc is pretty outdated, I'm rewriting it right now and I'll update this as soon as it's done.
First, install the Go compiler from Google's Go Website: https://golang.org/dl/
# Python code sample to listen to TCP multicast traffic on | |
# port 67 (?), which should be traffic destined to a DHCP server | |
# that will listen to multicast on that port. | |
# Tested on OSX. | |
import socket | |
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) | |
# Next line might or might not work, depending on your platform. |
First, install the Go compiler from Google's Go Website: https://golang.org/dl/
package main | |
import ( | |
"log" | |
"sync" | |
) | |
func main() { | |
inChan := make(chan workToDo, 2) |
#!/bin/sh | |
# Using this script you simply have to specify the first letters of a pod | |
# to open a shell, the default shell is bash, but you can specify an | |
# alternative as second parameter. | |
# | |
# For example, if you have the two following pods: | |
# - caching-service-blablabla-123123-abcdef | |
# - creditcard-frontend-blabla-3213213-fghijk | |
# |
link(href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/all.min.css" rel="stylesheet")
link(href="https://cdn.jsdelivr.net/npm/chart.js@2.8.0/dist/Chart.css" rel="stylesheet")
script(src="https://cdn.jsdelivr.net/npm/moment@2.24.0/moment.min.js" integrity="sha384-QliZbpszoo4jiVyo529dYiKgGQySM0I/kSJcvQcVkMXCqiIoEfRQLsvUwVNLcOqP" crossorigin="anonymous")
I hereby claim:
To claim this, I am signing this object:
# To disable WiFi and Bluetooth on a Raspberry Pi 3, there is | |
# no other way (yet) than to add this file to the modprobe.d | |
# folder (/etc/modprobe.d/raspi-blacklist.conf) | |
# Prevents WiFi: | |
blacklist brcmfmac | |
blacklist brcmutil | |
# Prevents Bluetooth: | |
blacklist btbcm |
#!/bin/sh | |
# OSX El Capitan _System Integrity Protection_ workaround | |
sudo -H pip install awscli --ignore-installed six | |
# With OSX, it's likely you will need to upgrade pip eventually | |
sudo -H pip install --upgrade pip | |
# Insightful instructions, originally posted by Xynova (https://github.com/xynova) | |
# Make socat directories | |
mkdir -p /opt/bin/socat.d/bin /opt/bin/socat.d/lib | |
# Create socat wrapper | |
cat << EOF > /opt/bin/socat | |
#! /bin/bash | |
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/opt/bin | |
LD_LIBRARY_PATH=/opt/bin/socat.d/lib:$LD_LIBRARY_PATH exec /opt/bin/socat.d/bin/socat "\$@" |
[[ $_ == $0 ]] && echo "This script should probably be sourced." |