This file contains hidden or 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/env bash | |
N=$1 | |
NAME=$2 | |
SERVER_ADDR=vpn.mathem.ru | |
SERVER_PRIVATE_KEY=$(</etc/wireguard/private.key) | |
SERVER_PUBLIC_KEY=$(wg pubkey</etc/wireguard/private.key) | |
CLIENT_PRIVATE_KEY=$(wg genkey) |
This file contains hidden or 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
# First, we need to find our device. BEFORE inserting your USB drive, run the | |
# following: | |
diskutil list | |
# This will output a bunch of info about all of the disk drives connected to | |
# your Mac. Each entry will have a header in the form "/dev/diskX", where X is | |
# some number starting at 0. Now, insert your USB drive and run the command | |
# again. You should see a new entry. Make note of the name (ie, /dev/diskX). | |
diskutil list |
This file contains hidden or 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 | |
# Based on https://www.vultr.com/docs/install-wireguard-vpn-server-on-openbsd-7-0/ | |
# Usage: | |
# doas ./wireguard.sh | |
# Get OpenBSD VPS at https://t.me/convectixbot | |
# idempotent tee | |
itee() { | |
cp $1 $1.bak | |
while read line; |
This file contains hidden or 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 | |
# ~/bin/cbsd | |
# wrapper for running cbsd as cbsd user | |
sudo -u cbsd /usr/local/bin/cbsd "$@" |
This file contains hidden or 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
brew install skype obs obs-ndi | |
curl -o ndi-runtime.pkg https://ndi.palakis.fr/runtime/ndi-runtime-4.5.1-macOS.pkg | |
open ndi-runtime.pkg | |
#open https://www.ndi.tv/tools/#download-tools | |
# Before your Skype call, tap or click for Settings |
This file contains hidden or 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
diff --git a/bin/stty/modes.c b/bin/stty/modes.c | |
index 0fe4e5168d2c..30990c578637 100644 | |
--- a/bin/stty/modes.c | |
+++ b/bin/stty/modes.c | |
@@ -129,6 +129,8 @@ static const struct modes imodes[] = { | |
{ "-decctlq", IXANY, 0 }, | |
{ "imaxbel", IMAXBEL, 0 }, | |
{ "-imaxbel", 0, IMAXBEL }, | |
+ { "iutf8", IUTF8, 0 }, | |
+ { "-iutf8", 0, IUTF8 }, |
This file contains hidden or 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
# bitclouds.sh is a programmable VPS platform | |
# any instance for 66 sats per hour | |
[you@home ~$] curl https://bitclouds.convectix.com/params | |
[you@home ~$] cat k1.json | |
{ | |
"init_masters": "1", | |
"init_workers": "2", |
This file contains hidden or 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 something like: 99d3b1f01aa639e4a76f4fc281fc834747a543720ba4c8a8648ba755aef9be7f | |
openssl rand -hex 32 | |
# Make hashed password | |
openssl passwd -apr1 $PASSWORD |
This file contains hidden or 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 | |
########################################################################## | |
# Description | |
# Auto-shutdown on low battery. | |
# | |
# History | |
# Date Who Change | |
# Dec 2010 J Bacon Derived from script by DutchDaemon | |
########################################################################## |
This file contains hidden or 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
export LIBGL_DRI3_ENABLE=1 | |
export XDG_SESSION_TYPE=wayland | |
export XDG_RUNTIME_DIR=/tmp/${UID}-xdg | |
mkdir -p "${XDG_RUNTIME_DIR}" | |
chmod 0700 "${XDG_RUNTIME_DIR}" | |
export $(dbus-launch) | |
export XKB_DEFAULT_RULES=evdev | |
export GDK_BACKEND=wayland | |
export MOZ_ENABLE_WAYLAND=1 |
NewerOlder