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
@Fastidious
Fastidious / mobileconfig-letsencrypt.md
Created November 3, 2018 01:14
Sign mobileconfig files with Letsencrypt
#!/bin/bash

certs="/etc/letsencrypt/live/myersnet.net"

openssl smime \
    -sign \
    -signer ${certs}/cert.pem \
    -inkey ${certs}/privkey.pem \
 -certfile ${certs}/chain.pem \
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"

Host Your Site Under Your Domain on IPFS

This is a step-by-step tutorial for hosting your website under your domain on IPFS, from zero, on a DigitalOcean Ubuntu 16.04.3 x64 Droplet (i am using the $10 variant with 1GB RAM).

Install IPFS

Log in as root.

First, make sure the system is up to date, and install tar and wget:

@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

@Fastidious
Fastidious / github_gpg_key.md
Last active September 28, 2020 01:07 — forked from ankurk91/github_gpg_key.md
[Signing commits using GPG (Ubuntu/Mac)] To use on GitHub, or any other git repository.

Signing commits using GPG (Ubuntu/Mac)

  • Do you have an Github account? If not create one.
  • Install required tool.
  • Latest Git Client.
  • gpg tools.
# Ubuntu
sudo apt-get install gpa seahorse
BEGIN MESSAGE.
TCC1ISJqkmkESkL aongVuH9J0DsLAh Xrq8VZzPfTyeuoe IZ8xO7cOL24msKs
lIxxG4XjqlJu2nq 8dnN10e5F6yTCKq 6Xr2MZHgg4e8K8p cjN7NHVO0D81kVO
UrnssiAgNR7nLc2 HKtcjLoGTcmq0th kgSzVG4bawBZCcz 73FqrXrPiOh05ZF
lfUzHgMEL82Up7Q r5EqTrQTlq3MxkI Bfs1s7tiSkCT.
END MESSAGE.