Make sure the user has access to libvirt:
sudo usermod -a -G libvirt $USER
Make sure the user has access to libvirt:
sudo usermod -a -G libvirt $USER
# | |
# vim:ft=make | |
# Makefile | |
# | |
.DEFAULT_GOAL := help | |
.PHONY: test help | |
_GREEN=$(shell tput setaf 2) | |
_BLUE=$(shell tput setaf 4) |
--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 <thughes@thegoldfish.org> | |
# | |
# 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/emailAddress=insecure@example.com" | |
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 |
import secrets | |
from datetime import timedelta | |
import pytest | |
from fastapi import FastAPI | |
from fastapi.testclient import TestClient | |
from fastapp import settings, crud | |
from sqlalchemy import create_engine | |
from sqlalchemy.engine import Engine | |
from sqlalchemy.orm import Session, sessionmaker |