Skip to content

Instantly share code, notes, and snippets.

View l2D's full-sized avatar
🌱
Relearn

l2D l2D

🌱
Relearn
  • 127.0.0.1
View GitHub Profile
@alvarobartt
alvarobartt / estimate-deepseek-vram.py
Created January 31, 2025 15:52
Calculates the required VRAM for DeepSeek R1 (pulled from the Hugging Face Hub Safetensors metadata)
from huggingface_hub import get_safetensors_metadata
model_id = "deepseek-ai/DeepSeek-R1"
dtype_bytes = {"F32": 4, "F16": 2, "F8": 1}
metadata = get_safetensors_metadata(model_id)
memory = (
sum(count * dtype_bytes[key.split("_")[0]] for key, count in metadata.parameter_count.items())
/ (1024**3)
* 1.18
@stonehippo
stonehippo / inspect_https-tls-ssl_certs.md
Last active September 12, 2025 10:04
A couple of ways to look at web server HTTPS/TLS/SSL certificate data via the command line

Inspecting HTTPS (TLS, SSL) certificates from the command line

I needed to inspect an HTTPS site's current certs and wanted to do it from the command line. Here are a couple of commands that I used that worked quite well.

With nmap

nmap -p 443 --script ssl-cert [hostname]
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active December 27, 2025 06:03
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@StevenACoffman
StevenACoffman / fluent-filebeat-comparison.md
Last active December 12, 2025 14:31
Fluentd Fluent-bit FileBeat memory and cpu resources

Fluent-bit rocks

A short survey of log collection options and why you picked the wrong one. 😜

Who am I? Where am I from?

I'm Steve Coffman and I work at Ithaka. We do JStor (academic journals) and other stuff. How big is it?

Number what it means
101,332,633 unique visitors in 2017
@Artistan
Artistan / A Readme for Adding Certs.md
Last active March 11, 2024 21:12
Add new certificate (cert) from local/internal intranet to your mac

Add a cert to you macbook

USAGE

~/add_cert.sh my.intra.net

you will be asked for your password to add thit to keychain

  • downloads pem file
  • adds to trusted root certificates
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active January 6, 2026 22:36
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k