Skip to content

Instantly share code, notes, and snippets.

View zsarge's full-sized avatar

Zack Sargent zsarge

View GitHub Profile
---
import 'glightbox/dist/css/glightbox.css'
const { files, dir, id } = Astro.props
---
<section class="glightbox-images" id={`gallery-${id || 1}`}>
{
files.map((f) => (
<a
@adtac
adtac / README.md
Last active September 7, 2026 07:37
Using your Kindle as an e-ink monitor

3.5 fps, Paperwhite 3
@adtac_

step 1: jailbreak your Kindle

mobileread.com is your best resource here, follow the instructions from the LanguageBreak thread

I didn't really follow the LanguageBreak instructions because I didn't care about most of the features + I was curious to do it myself, but the LanguageBreak github repo was invaluable for debugging

@edrisranjbar
edrisranjbar / natas.txt
Last active January 17, 2025 21:39
Natas Hacking Challenge Passwords
natas0:
natas1: 0nzCigAq7t2iALyvU9xcHlYN4MlkIwlq
natas2: TguMNxKo1DSa1tujBLuZJnDUlCcUAPlI
natas3: 3gqisGdR0pjm6tpkDKdIWO2hSvchLeYH
natas4: QryZXc2e0zahULdHrtHxzyYkj59kUxLQ
natas5: 0n35PkggAPm2zbEpOU802c0x0Msn1ToK
natas6: 0RoJwHdSKWFTYR5WuiAewauSuNaBXned
natas7: bmg8SvU1LizuWjx3y7xkNERkHxGre0GS
natas8: xcoXLmzMkoIP9D7hlgPlh9XD7OgLAe5Q
natas9: ZE1ck82lmdGIoErlhQgWND6j2Wzz6b6t
@quad
quad / 0-unnamed-architecture.md
Last active December 25, 2025 23:58
What is this architecture called?

What is this architecture called?

I rarely see the classical three-tier architecture in the wild; I frequently see a different architecture.

I don't know this architecture's name. Do you?

The Three-Tier Architecture

The "three-tier architecture" has been the reference pattern for Internet services:

@LiquidityC
LiquidityC / Makefile
Last active December 26, 2025 00:21
Generic drop in Makefile
VERSION = \"1.0.0\"
PREFIX ?= out
INCDIR = include
SRCDIR = src
LANG = c
OBJDIR = .obj
MODULE ?= binary_name
CC ?= gcc
@kbdharun
kbdharun / downgrade-fedora-kernel.md
Last active November 21, 2025 23:05
Downgrading Kernel in Fedora

Steps

  • List kernel versions:
dnf list kernel --showduplicates
  • Now, install/modify/reinstall the latest kernel:
@rain-1
rain-1 / llama-home.md
Last active March 1, 2026 16:35
How to run Llama 13B with a 6GB graphics card

This worked on 14/May/23. The instructions will probably require updating in the future.

llama is a text prediction model similar to GPT-2, and the version of GPT-3 that has not been fine tuned yet. It is also possible to run fine tuned versions (like alpaca or vicuna with this. I think. Those versions are more focused on answering questions)

Note: I have been told that this does not support multiple GPUs. It can only use a single GPU.

It is possible to run LLama 13B with a 6GB graphics card now! (e.g. a RTX 2060). Thanks to the amazing work involved in llama.cpp. The latest change is CUDA/cuBLAS which allows you pick an arbitrary number of the transformer layers to be run on the GPU. This is perfect for low VRAM.

  • Clone llama.cpp from git, I am on commit 08737ef720f0510c7ec2aa84d7f70c691073c35d.
@rain-1
rain-1 / LLM.md
Last active September 20, 2026 22:21
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

@awesomebjt
awesomebjt / setup_clojure.sh
Created November 10, 2022 12:06
Steps to set up your Clojure environment on Fedora 37+
#!/bin/bash
sudo yum install -y java-latest-openjdk clojure emacs rlwrap
rm -rf ~/.emacs ~/.emacs.d
curl https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein > ~/.local/bin/lein
chmod +x ~/.local/bin/lein
wget https://github.com/flyingmachine/emacs-for-clojure/archive/book1.zip
unzip book1.zip
mv emacs-for-clojure-book1 ~/.emacs.d