Make sure the user has access to libvirt:
sudo usermod -a -G libvirt $USER
| import re | |
| import gc | |
| import logging | |
| import micropython | |
| try: | |
| import ujson as json | |
| except ImportError: | |
| import json | |
| try: |
Make sure the user has access to libvirt:
sudo usermod -a -G libvirt $USER
| # | |
| # vim:ft=make | |
| # Makefile | |
| # | |
| # | |
| # For bash autocomplete add to `~/.bashrc`: | |
| # | |
| # complete -W "\`if [ -f Makefile ]; then grep -oE '^[a-zA-Z0-9_-]+:([^=]|$)' Makefile | sed 's/[^a-zA-Z0-9_-]*$//'; elif [ -f makefile ]; then grep -oE '^[a-zA-Z0-9_-]+:([^=]|$)' makefile | sed 's/[^a-zA-Z0-9_-]*$//'; fi \`" make | |
| .DEFAULT_GOAL := help |
--namespaced for absolutly everythingkubectl get $(kubectl api-resources --verbs=list --namespaced -o name | xargs |sed 's/ /,/g')
fix NYTimes website
Install Stylus extension
Create a custom css for the site
| Get a kernel and the dtb files from | |
| https://www.raspberrypi.org/downloads/raspberry-pi-os/ | |
| https://github.com/dhruvvyas90/qemu-rpi-kernel | |
| sudo qemu-system-arm -kernel kernel-qemu-4.19.50-buster -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1 console=ttyAMA0" -hda raspbian-buster-lite.qcow2 -dtb versatile-pb-buster.dtb -net nic -net user -vnc :0 -net tap,ifname=vnet0,script=no,downscript=no |
| python -uc "import sys, socket;from functools import partial; a = socket.create_server(('0.0.0.0', 8888)).accept(); [sys.stdout.buffer.write(bytes(i)) for i in iter(partial(a[0].recv, 1024), b'')]" |
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| """Minimal python commad line.""" | |
| import sys | |
| import argparse | |
| import logging |
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # vim:fenc=utf-8 | |
| # | |
| # Copyright © 2020 Tim Hughes <[email protected]> | |
| # | |
| # Distributed under terms of the MIT license. | |
| """ |
| # Create unencrypted ca | |
| MYCN=$! | |
| #openssl genrsa -des3 -out myCA.key 2048 | |
| openssl genrsa -out myCA.key 2048 | |
| openssl req -x509 -new -nodes -key myCA.key -sha256 -days 1 -out myCA.pem -subj "/C=GB/ST=INSECURE/L=INSECURE CA/O=INSECURE CA/CN=MY INSECURE CA/[email protected]" | |
| openssl req -new -nodes -keyout ${MYCN}.key.pem -out ${MYCN}.csr -sha256 -days 1 -subj "/C=GB/ST=INSECURE/L=INSECURE CA/O=INSECURE CA/CN=${MYCN}" # -config /etc/pki/tls/openssl.cnf -extensions v3_req |