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
# based on https://github.com/graysky's PKGBUILD | |
# https://archlinuxarm.org/forum/viewtopic.php?f=15&t=13957 | |
pkgbase=wireguard | |
pkgname=(wireguard-module wireguard-tools) | |
pkgver=0.0.20191219 | |
pkgrel=1 | |
_pkgname=WireGuard | |
pkgdesc='next generation secure network tunnel' | |
arch=('x86_64' 'aarch64' 'armv7h') | |
url='http://www.wireguard.com/' |
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
no-resolv | |
filterwin2k | |
# dn42 | |
server=/dn42/172.20.0.53 | |
server=/ffch/172.20.0.53 | |
server=/20.172.in-addr.arpa/172.20.0.53 | |
server=/21.172.in-addr.arpa/172.20.0.53 | |
server=/22.172.in-addr.arpa/172.20.0.53 | |
server=/23.172.in-addr.arpa/172.20.0.53 |
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
{ | |
"configurations": [ | |
{ | |
"name": "3DS", | |
"includePath": [ | |
"${workspaceFolder}/**", | |
"/opt/devkitpro/devkitARM/arm-none-eabi/include", | |
"/opt/devkitpro/libctru/include" | |
], | |
"defines": [], |
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
wget https://ca.dn42.us/crt/root-ca.crt | |
sudo trust anchor --store root-ca.crt |
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
# Feel free to replace 'Google' with the name of another vendor. | |
for app in `(pm list packages | grep 'google' | grep -v 'com.google.android.packageinstaller' | sed s/package://)`; do pm uninstall -k --user 0 $app ; done |
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
# replace target device (input28::capslock) with your desired device, that one just worked with my keyboard | |
while true; | |
do | |
sudo echo $((0 + RANDOM%2)) | | |
sudo tee /sys/class/leds/input28\:\:capslock/brightness -; | |
sleep 0.05; | |
done |
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
while true; | |
do | |
sudo echo $((0 + RANDOM%2)) | | |
sudo tee /sys/class/leds/*/brightness -; | |
sleep 0.005; | |
done |
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
ip addr show dev eth0 | sed -e's/^.*inet6 \([^ ]*\)\/.*$/\1/;t;d' | grep -v "fe80" |
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
wget http://acme.dn42/dn42acme.pem | |
sudo cp dn42acme.pem /etc/ssl/certs | |
sudo openssl x509 -noout -hash -in dn42acme.pem |
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
# source: https://stackoverflow.com/questions/39686553/what-does-python-return-on-the-leap-second | |
import time | |
import datetime as dt | |
time.mktime(time.strptime('2016-06-30T23:59:59', "%Y-%m-%dT%H:%M:%S")) | |
time.mktime(time.strptime('2016-06-30T23:59:60', "%Y-%m-%dT%H:%M:%S")) | |
# datetime will fail | |
dt.datetime.strptime('2016-06-30T23:59:60', "%Y-%m-%dT%H:%M:%S") |
OlderNewer