Skip to content

Instantly share code, notes, and snippets.

View aeifn's full-sized avatar
🚲

Egor Kuzmichev aeifn

🚲
View GitHub Profile
#!/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)
@aeifn
aeifn / create-usb.sh
Last active August 3, 2022 16:16 — forked from bmatcuk/create-usb.sh
Creating a Bootable Windows USB from ISO on a Mac
# 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
@aeifn
aeifn / wireguard.sh
Last active December 13, 2022 21:18
#!/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;
#!/bin/sh
# ~/bin/cbsd
# wrapper for running cbsd as cbsd user
sudo -u cbsd /usr/local/bin/cbsd "$@"
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
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 },
# 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",
# Outputs something like: 99d3b1f01aa639e4a76f4fc281fc834747a543720ba4c8a8648ba755aef9be7f
openssl rand -hex 32
# Make hashed password
openssl passwd -apr1 $PASSWORD
#!/bin/sh
##########################################################################
# Description
# Auto-shutdown on low battery.
#
# History
# Date Who Change
# Dec 2010 J Bacon Derived from script by DutchDaemon
##########################################################################
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