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
@jmadden91
jmadden91 / Caddyfile
Last active April 24, 2025 00:12
Caddyfile
# GLOBAL SETTINGS
{
#debug logs
#debug
dynamic_dns {
provider cloudflare {env.CLOUDFLARE_API_TOKEN}
domains {
example.com
example2.com
}
@janAkali
janAkali / index.html
Created September 16, 2024 09:05
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;
@lifthrasiir
lifthrasiir / nothing.html
Created September 16, 2024 07:30
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
@ShreyanJain9
ShreyanJain9 / bip39.py
Last active August 13, 2023 01:00
BIP 39 encode to mnemonic and decode for any string of length 16, 20, 24, 28, or 32 chars
#!/usr/bin/env python3
import argparse
from mnemonic import Mnemonic
import sys
def encode(mnemonic_str):
m = Mnemonic("english")
words = m.to_mnemonic(mnemonic_str.encode("utf-8"))
return words
@huytd
huytd / wordle.md
Last active April 1, 2025 00:28
Wordle in less than 50 lines of Bash

image

How to use:

./wordle.sh

Or try the unlimit mode:

@rain-1
rain-1 / Raspberry Pi, Static HTTPS site with Docker and Nginx.md
Last active July 7, 2024 00:53
Raspberry Pi, Static HTTPS site with Docker and Nginx

Raspberry Pi, Static HTTPS site with Docker and Nginx

This tutorial is dated Oct 2021, if it's much further on than that this information might be out of date.

This is a guide on setting up a static HTTPS website on your raspberry pi using docker and nginx. The aim is to have this running on the raspberry pi and to be able to access it from a host computer on the same local network. You should already be able to ssh into your pi from your host computer and have raspberry pi OS set up.

Find your raspberry pi

@SkYNewZ
SkYNewZ / Caddyfile
Created October 7, 2020 17:13
Example Caddyfile for using as load balancer
{
# Enable Debug mode
debug
# Disable admin API
admin off
}
localhost {
# https://caddyserver.com/docs/caddyfile/directives/push
@geek-at
geek-at / trash.sh
Created August 13, 2020 07:27
The script used to trash a banking phishing site
#!/bin/bash
while :; do
verf=$(cat /dev/urandom | tr -dc '0-9' | fold -w 8 | head -n 1)
pin=$(cat /dev/urandom | tr -dc '0-9' | fold -w 5 | head -n 1)
ip=$(printf "%d.%d.%d.%d\n" "$((RANDOM % 256))" "$((RANDOM % 256))" "$((RANDOM % 256))" "$((RANDOM % 256))")
@fnky
fnky / ANSI.md
Last active April 27, 2025 19:05
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 / openssl_commands.md
Created July 12, 2018 12:37 — forked from p3t3r67x0/openssl_commands.md
Some list of openssl commands for check and verify your keys

openssl

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl