Skip to content

Instantly share code, notes, and snippets.

View Fastidious's full-sized avatar
🐵
Just another one.

Fastidious Fastidious

🐵
Just another one.
View GitHub Profile
ltm virtual COL/COL_CAH_FACULTYPROD_8080 {
creation-time 2021-06-17:16:17:17
description ""
destination COL/10.228.12.108:webcache
ip-protocol tcp
last-modified-time 2022-10-24:15:12:27
mask 255.255.255.255
partition COL
pool COL/COL_CAH_FACULTYPROD_8080
profiles {
@Fastidious
Fastidious / ANSI.md
Created September 20, 2023 02:00 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@Fastidious
Fastidious / thelounge-lcd.css
Created July 31, 2023 12:58 — forked from BriannaFoxwell/thelounge-lcd.css
My "The Lounge" web based irc client theme
/*
TTY, A The Lounge Theme bodged together by
░█░█░▀█▀░█▀▀░█░█░█░█░█▀█
░█░█░░█░░▀▀█░█░█░█▀█░█░█
░▀▀▀░░▀░░▀▀▀░▀▀▀░▀░▀░▀▀▀
░█▀▄░█▀█░█▀▀░█░█░█▀▀
░█▀▄░█░█░█░░░█▀▄░▀▀█
░▀░▀░▀▀▀░▀▀▀░▀░▀░▀▀▀
Needs "One Dark" theme because based upon that,
"npm install thelounge-theme-onedark"
@Fastidious
Fastidious / wordle.md
Created February 2, 2022 14:26 — forked from huytd/wordle.md
Wordle in less than 50 lines of Bash

image

How to use:

./wordle.sh

Or try the unlimit mode:

@Fastidious
Fastidious / gpg-wkd.md
Created November 16, 2021 02:43 — forked from kafene/gpg-wkd.md
Setting up WKD for self-hosted automatic key discovery

I just got this working so I figured I'd share what I found, since there's hardly any information about this anywhere online except an RFC, the GPG mailing list and one tutorial from the GnuPG blog.

You can use automatic key discovery with WKD (Web key directory) to make it easy for users to import your key, in GPG since version 2.1.12. Since this feature is fairly new, it isn't yet available in the current LTS release of Ubuntu (16.04; xenial), however it is available in Debian stable (stretch).

I couldn't add a DNS CERT or DANE / OPENPGPKEY record through my email service (which also hosts my nameservers). I tried making the PKA record - a foo._pka.example.com TXT record but GPG doesn't seem to recognize it and fails; I'm still investigating why.

So the last option for self-hosted auto-discovery was WKD.

First thing I had to do was add an email address to my key. My primary UID is just my name so the key represents my identity rather

@Fastidious
Fastidious / myweechat.md
Created April 11, 2021 00:21 — forked from pascalpoitras/config.md
My always up-to-date WeeChat configuration (weechat-dev)

WeeChat Screenshot

You need at least WeeChat 3.1-dev

Enable mouse

/mouse enable

BEGIN MESSAGE.
TCC1ISJqkmkESkL aongVuH9J0DsLAh Xrq8VZzPfTyeuoe IZ8xO7cOL24msKs
lIxxG4XjqlJu2nq 8dnN10e5F6yTCKq 6Xr2MZHgg4e8K8p cjN7NHVO0D81kVO
UrnssiAgNR7nLc2 HKtcjLoGTcmq0th kgSzVG4bawBZCcz 73FqrXrPiOh05ZF
lfUzHgMEL82Up7Q r5EqTrQTlq3MxkI Bfs1s7tiSkCT.
END MESSAGE.

A simple systemd file for DSVPN

This assumes the server has port 443 unused. Change the port as it fits.

[Unit]
Description=Dead Simple VPN - Server

[Service]
ExecStart=/usr/local/bin/dsvpn server /opt/misc/vpn.key auto 443
Restart=always

The external interface is only required on the server, so you only need it once.

Here's a script the start the client. The gateway will be filled automatically:

dsvpn client \
  vpn.key \
  auto \
  192.168.192.1 192.168.192.254 \
  your.vpn.server.ip 443 \
 auto \