by alexander white ©
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import struct | |
import socket | |
import hashlib | |
import sys | |
from select import select | |
import re | |
import logging | |
from threading import Thread | |
import signal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Automatically setup routing and DNS for a PiZero connected over a USB-network | |
# Based off https://gist.github.com/lurch/ad939bbce48064cffdb215268eac9f62 | |
# Need to have booted PI Zero with config.txt option "dtoverlay=dwc2" | |
# and cmdline.txt parameter "modules-load=dwc2,g_ether" | |
# TODO | |
# Force PI to have fixed MAC address like e6:45:88:d0:85:46 | |
# For now, edit cmdline.txt in the boot partition on the pi SD card, add:- | |
# g_ether.dev_addr=e6:45:88:d0:85:46 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apps: | |
alacritty: | |
command: env XDG_RUNTIME_DIR= XDG_CONFIG_HOME=$SNAP_USER_DATA XDG_DATA_DIRS=$SNAP_DATA alacritty |
I make some assumptions, and make no claims in how well supported this is or ever will be. I wanted to avoid using VMs because i've been working in containers for the last half decade. It made sense to just skip the middle man and use a machine type container system to run my minikube workloads.
Simply put, Juju does a fantastic job; but to stay objective I wanted to achieve minikube in LXD
as a functional alternative to juju deploy kubernetes-core
, or using KVM/VirtualBox in this solution.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PART ONE | |
Chapter 1 | |
It was a bright cold day in April, and the clocks were striking thirteen. | |
Winston Smith, his chin nuzzled into his breast in an effort to escape the vile wind, slipped quickly through the glass doors of Victory Mansions, though not quickly enough to prevent a swirl of gritty dust from entering along with him. | |
The hallway smelt of boiled cabbage and old rag mats. | |
At one end of it a coloured poster, too large for indoor display, had been tacked to the wall. | |
It depicted simply an enormous face, more than a metre wide: the face of a man of about forty-five, with a heavy black moustache and ruggedly handsome features. | |
Winston made for the stairs. | |
It was no use trying the lift. | |
Even at the best of times it was seldom working, and at present the electric current was cut off during daylight hours. |