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 / index.html
Created October 18, 2024 19:02 — forked from egeozcan/index.html
image viewer
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fullscreen Image Viewer</title>
<style>
body {
font-family: Arial, sans-serif;
}
@Fastidious
Fastidious / ChatGPT Canvas HTML Renderer from Clipboard.url
Created October 7, 2024 11:50 — forked from rmtbb/ChatGPT Canvas HTML Renderer from Clipboard.url
Chrome Bookmarklet the lets you render a full HTML page with any included css and javascript that is currently copied to your clipboard. Also works for SVG code. Useful with ChatGPT Canvas
javascript:(function(){try{navigator.clipboard.readText().then(function(clipboardText){if(clipboardText){var newWindow=window.open("","_blank","width=800,height=600");newWindow.document.open();newWindow.document.write(clipboardText);newWindow.document.close();}else{alert('Clipboard is empty. Please copy some text to the clipboard first.');}}).catch(function(err){console.error('Failed to read clipboard contents: ',err);alert('An error occurred while trying to access the clipboard. Please ensure your browser allows clipboard access.');});}catch(e){console.error('An error occurred:',e);alert('An error occurred while trying to open the new window with the clipboard content.');}})();
@Fastidious
Fastidious / nothing.html
Created September 16, 2024 15:12 — forked from lifthrasiir/nothing.html
Use nothing but a vanilla HTML/CSS/JS to rewrite https://usenothing.com/ in a single file (including the webfont)
<base target=_blank><style>*{box-sizing:border-box;padding:0;margin:0}:root{color:#a1a1aa;background:#09090b;font:1.2rem Crimson Text,serif}::selection{color:#fafafa;background:#3f3f46}strong,output{font-weight:normal;color:#fafafa}output{font-family:Courier New,monospace}body{width:90%;max-width:550px;margin:120px auto}p,svg{margin-bottom:12px}p:has(~hr){font-size:1.2rem}hr{width:50px;height:1px;background:#27272a;border:0;margin:50px 0}hr~*{line-height:1.7}hr~p{text-indent:24px;margin-bottom:24px}a{color:#fafafa;text-decoration:underline dotted #71717a}aside{position:fixed;bottom:20px;left:0;width:100%;pointer-events:none}#A{width:-moz-max-content;width:max-content;max-width:90%;padding:12px 16px;margin:0 auto;font:0.74rem Inter,Arial,sans-serif;line-height:1.6;color:#a1a1aa;background-color:#18181b;border:1px solid #27272a;opacity:var(--o,0);transform:translateY(calc(20px*(1 - var(--o))))}/* fonttools subset CrimsonText-Regular.ttf --unicodes="U+0020,U+0027,U+002C-002E,U+0030-0039,U+0041-005A,U+0061-007A,U
@Fastidious
Fastidious / index.html
Created September 16, 2024 15:12 — forked from janAkali/index.html
rewrite usenothing.com in plain html+js+css
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Timer Page</title>
<style>
body {
background-color: black;
color: white;
@Fastidious
Fastidious / sign.sh
Created August 30, 2024 23:33 — forked from ezimuel/sign.sh
Sign and verify a file using OpenSSL command line tool. It exports the digital signature in Base64 format.
#!/bin/bash
# Sign a file with a private key using OpenSSL
# Encode the signature in Base64 format
#
# Usage: sign <file> <private_key>
#
# NOTE: to generate a public/private key use the following commands:
#
# openssl genrsa -aes128 -passout pass:<passphrase> -out private.pem 2048
# openssl rsa -in private.pem -passin pass:<passphrase> -pubout -out public.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"
@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