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
update_config=1 | |
country=GB | |
network={ | |
ssid="YOUR SSID" | |
psk="YOUR PASSWORD" | |
key_mgmt=WPA-PSK | |
} | |
network={ |
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
# /etc/ssh/sshd_config | |
# Port forwarding | |
AllowAgentForwarding yes | |
AllowTcpForwarding yes | |
GatewayPorts yes | |
# X11 | |
X11Forwarding yes | |
X11UseLocalhost no |
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
# Outputs from three commands below shall be identical | |
# CSR | |
openssl req -in www.wuhanstudio.team.csr -pubkey -noout -outform pem | sha256sum | |
# Private Key | |
openssl pkey -in www.wuhanstudio.team.key -pubout -outform pem | sha256sum | |
# Cert | |
openssl x509 -in www.wuhanstudio.team.cert -pubkey -noout -outform pem | sha256sum |
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
# Pull Images | |
kubeadm config images list |sed -e 's/^/docker pull /g' -e 's#k8s.gcr.io#gcr.azk8s.cn/google_containers#g' |sh -x | |
# Retag Images | |
docker images |grep google_containers |awk '{print "docker tag ",$1":"$2,$1":"$2}' |sed -e 's#gcr.azk8s.cn/google_containers#k8s.gcr.io#2' |sh -x | |
# Remove previous images | |
docker images |grep google_containers |awk '{print "docker rmi ", $1":"$2}' |sh -x | |
# Kubeadm |
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
# Mount NFS Disk | |
sudo apt install nfs-common | |
sudo mkdir /mnt/data | |
sudo mount SERVER_IP:/mnt/data /mnt/data |
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/sh -e | |
# | |
# rc.local | |
# | |
# This script is executed at the end of each multiuser runlevel. | |
# Make sure that the script will "exit 0" on success or any other | |
# value on error. | |
# | |
# In order to enable or disable this script just change the execution | |
# bits. |
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
# Install QEMU-6.1.0 | |
wget https://download.qemu.org/qemu-6.1.0.tar.xz | |
tar xvJf qemu-6.1.0.tar.xz | |
cd qemu-6.1.0 | |
./configure | |
make | |
sudo make install | |
# Download Armbian (Ubuntu Focal 20.04) for OrangePi PC | |
wget https://mirrors.netix.net/armbian/dl/orangepipc/archive/Armbian_21.08.1_Orangepipc_focal_current_5.10.60.img.xz |
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 | |
# Enable kernel module | |
echo "g_serial" >> /etc/modules | |
nano /etc/inittab | |
``` | |
::respawn:/sbin/getty -L ttyAM0 115200 vt100 | |
::respawn:/sbin/getty -L ttyGS0 115200 vt100 | |
``` |
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
sudo pacman -S sof-firmware alsa-ucm-conf |
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
#!/usr/bin/python | |
# vim: set ts=4 sw=4 expandtab syntax=python: | |
""" | |
FTDI device permission fixer | |
Can be called from a udev rule to ensure connected FTDI devices have | |
world-writable permissions for use by user applications | |
J. Hipps <[email protected]> |
OlderNewer