Skip to content

Instantly share code, notes, and snippets.

View fadenb's full-sized avatar

Tristan Helmich fadenb

  • Munich, Germany
View GitHub Profile
@fadenb
fadenb / getmailrc
Created February 8, 2024 12:14
Example getmail6 config file to fetch a copy of all emails from Gmail. Should be placed at `~/.config/getmail/getmailrc`.
[retriever]
type = SimpleIMAPSSLRetriever
server = imap.gmail.com
port = 993
username = <[email protected]>
password = <YOUR-APP-PASSWORD-WHILE-THEY-STILL-ALLOW-IT>
mailboxes = ALL
[destination]
type = Mboxrd
@fadenb
fadenb / extensions.md
Last active January 15, 2024 16:57
Automatic1111 Extensions I Like

Automatic1111 Extensions I like

  • sd-webui-controlnet
    • https://github.com/Mikubill/sd-webui-controlnet.git
  • After Detailer / adetailer
    • https://github.com/Bing-su/adetailer.git
  • Segment Anything
    • https://github.com/continue-revolution/sd-webui-segment-anything.git
  • Dynamic Prompts
@fadenb
fadenb / 2023-12-21_Apple_Public_Verification_Code.txt
Created December 21, 2023 12:36
My Apple Contact Key Verification Public Verification Code
APKTIDoLV060B_LpPwpXFQqH8HTJF7CcJHMGGIpfDWOPT1dYGU_g
@fadenb
fadenb / setup-docker.sh
Last active November 26, 2023 18:12
Set up Docker for use with NVIDIA GPU on Ubuntu 22.04
#!/bin/bash
# This script automates the installation and setup of Docker, Docker Compose, and NVIDIA Docker extensions on Ubuntu 22.04.
# It is designed to run without user interaction. Run this script with root privileges.
# Script URL: https://gist.github.com/fadenb/5eb42f646706891abe2c6f12799f6e89/raw/setup-docker.sh
# Ensure the script is run as root
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root. Use 'sudo' to run it."
exit 1
@fadenb
fadenb / styles.csv
Created July 27, 2023 19:25
clipdrop.cp like styles for automatic1111 `styles.csv`
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 7.
name,prompt,negative_prompt
"Style: Enhance","breathtaking {prompt} . award-winning, professional, highly detailed","ugly, deformed, noisy, blurry, distorted, grainy"
"Style: Anime","anime artwork {prompt} . anime style, key visual, vibrant, studio anime, highly detailed","photo, deformed, black and white, realism, disfigured, low contrast"
"Style: Photographic","cinematic photo {prompt} . 35mm photograph, film, bokeh, professional, 4k, highly detailed","drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly"
"Style: Digital art","concept art {prompt} . digital artwork, illustrative, painterly, matte painting, highly detailed","photo, photorealistic, realism, ugly"
"Style: Comic book","comic {prompt} . graphic illustration, comic art, graphic novel art, vibrant, highly detailed","photograph, deformed, glitch, noisy, realistic, stock photo"
"Style: Fantasy art","ethereal fantasy concept art of {prompt} . magnificent, celestial, ethereal, painterly, epic, majestic, magic
@fadenb
fadenb / NRS.md
Created May 28, 2023 18:06
Just some reasons why you should not sign ROAs or otherwise waste time on RPKI 😉
  1. Zero Learning Curve: With no signing, there's no need to understand complex cryptographic principles or key management strategies. Keep your team focused on more pressing issues.
  2. Increased Speed: Skip the overhead of cryptographic validations and let your data run free, at lightning-fast speeds.
  3. Simplified Processes: Eliminate complicated signing procedures from your workflow, making network management straightforward and hassle-free.
  4. Lower Operational Costs: Save on resources, human effort, and money by avoiding the expenses associated with maintaining signed route origins.
  5. No Key Management: With no keys to manage, you eliminate the risk of losing or compromising them. No keys, no problems.
  6. Ease of Implementation: Avoid the hassle of introducing new protocols and dealing with possible incompatibilities. Stick with what you know and what has worked for you.
  7. Quick Network Scaling: Expand and modify your network with ease and speed, without the need to manage
@fadenb
fadenb / gist:61c08cee2747337eb0284e09e33ed21a
Created May 24, 2023 20:38
ChatGPT-4 prompt: Based on the styles shown in https://datatracker.ietf.org/doc/html/rfc8771 and https://datatracker.ietf.org/doc/html/rfc9226 and https://datatracker.ietf.org/doc/html/rfc9405 generate a humorous RFC on classful IPv6 routing. There should be at least 11 classes.
RFC 9999 CLASSFUL-IPV6 May 2023
Smith & Doe Experimental [Page]
Stream:
Independent Submission
RFC:
9999
Category:
Experimental
Published:
24 May 2023
@fadenb
fadenb / ubuntu-mirror-speedtest.py
Last active July 23, 2023 08:12
Quick and dirty download speedtest for Ubuntu mirrors. Script looks up the largest file available on all mirrors and downloads it from each one. Download speeds are summarized at the end.
import os
import gzip
import requests
from collections import defaultdict
from urllib.parse import urljoin
from datetime import datetime, timedelta
# List of Ubuntu mirrors
mirrors = [
"http://archive.ubuntu.com/ubuntu/",
@fadenb
fadenb / naive-cloudflare-speedtest.py
Created April 9, 2023 12:55
A (very) naive speedtest using the cloudflare speedtest endpoint written by ChatGPT 🤷
import requests
import time
import argparse
def get_trace_info():
trace_url = "https://speed.cloudflare.com/cdn-cgi/trace"
response = requests.get(trace_url)
trace_data = {}
for line in response.text.splitlines():
@fadenb
fadenb / hashcat-benchmark.log
Created April 20, 2021 20:33
RTX 3090 Cuda Hashcat Benchmark (on Genesis Cloud)
hashcat (v6.1.1) starting in benchmark mode...
Benchmarking uses hand-optimized kernel code by default.
You can use it in your cracking session by setting the -O option.
Note: Using optimized kernel code limits the maximum supported password length.
To disable the optimized kernel code in benchmark mode, use the -w option.
CUDA API (CUDA 11.3)
====================
* Device #1: NVIDIA GeForce RTX 3090, 24013/24268 MB, 82MCU