Skip to content

Instantly share code, notes, and snippets.

@awni
awni / mlx_distributed_deepseek.md
Last active July 14, 2026 05:34
Run DeepSeek R1 or V3 with MLX Distributed

Setup

On every machine in the cluster install openmpi and mlx-lm:

conda install conda-forge::openmpi
pip install -U mlx-lm

Next download the pipeline parallel run script. Download it to the same path on every machine:

@kevmo314
kevmo314 / README.md
Last active December 25, 2025 23:55
Llama inference in 150 lines.

It turns out if you're just doing inference, Llama can be written very concisely. This implementation includes paged attention. Speculative decoding can also be added for another speed boost however it's quite verbose and was left out to keep the implementation cleaner.

Download the Llama files and place them in a directory ./Llama3.2-3B (or whatever flavor of Llama you want).

Your directory structure should look like:

./Llama3.2-3B/consolidated.00.pth
@hackermondev
hackermondev / zendesk.md
Last active June 16, 2026 22:05
1 bug, $50,000+ in bounties, how Zendesk intentionally left a backdoor in hundreds of Fortune 500 companies

hi, i'm daniel. i'm a 15-year-old with some programming experience and i do a little bug hunting in my free time. here's the insane story of how I found a single bug that affected over half of all Fortune 500 companies:

say hello to zendesk

If you've spent some time online, you’ve probably come across Zendesk.

Zendesk is a customer service tool used by some of the world’s top companies. It’s easy to set up: you link it to your company’s support email (like support@company.com), and Zendesk starts managing incoming emails and creating tickets. You can handle these tickets yourself or have a support team do it for you. Zendesk is a billion-dollar company, trusted by big names like Cloudflare.

Personally, I’ve always found it surprising that these massive companies, worth billions, rely on third-party tools like Zendesk instead of building their own in-house ticketing systems.

your weakest link

@Shardj
Shardj / docker_volume.sh
Last active May 29, 2025 10:10
Docker volume backup and restore function
#!/usr/bin/env bash
ColorOff='\033[0m' # Text Reset
Yellow='\033[0;33m' # Yellow for important info
Red='\033[0;31m' # Red for errors
function infoMessage() {
echo -e ${Yellow}
echo $1
echo -e ${ColorOff}
}
@fardjad
fardjad / considerations-for-running-postgres-on-nfs.md
Last active July 4, 2026 16:53
[Considerations for Running Postgres on NFS] Considerations for running a Postgres database on an NFS share #blog #postgres #nfs #fsync #fsexport #mount

Considerations for Running Postgres on NFS

Background

Over the weekend, I decided to try running a Postgres database in my Homelab. In my current setup, the most convenient option for storage is NFS. However, NFS is especially tricky for databases. A misconfigured setup can lead to performance or data corruption issues.

After watching

@dmvaldman
dmvaldman / thealignmentgame.js
Last active January 16, 2026 20:16
Play the alignment game
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('path'), require('fs')) :
typeof define === 'function' && define.amd ? define(['path', 'fs'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.alignmentgame = factory(global.require$$0, global.require$$1));
})(this, (function (require$$0, require$$1) { 'use strict';
var src = {};
// Not trying to hack you. This is the base64 of gltk.wasm.js (an LP solver), which you can verify by converting https://github.com/jvail/glpk.js/blob/master/dist/glpk.wasm to base64.
// Since googlescript doesn't allow synchronous loading of WASM modules, I need to include it here manually.
@ammuench
ammuench / 8BitDoUltimateWifi_Linux.MD
Last active July 25, 2026 07:58
8BitDo Ultimate 2.4GHz wifi working in linux
@evadne
evadne / lecture.md
Last active December 27, 2025 05:31
How to Sell Elixir (2023)

How to Sell Elixir AGAIN (2023)

Presented by Evadne Wu at Code BEAM Lite in Stockholm, Sweden on 12 May 2023

Synopsis

We have celebrated 10 years of Elixir and also nearly 25 years of Erlang since the open source release in December 1998.

Most of the libraries that were needed to make the ecosystem viable have been built, talks given, books written, conferences held and training sessions provided. A new generation of companies have been built on top of the Elixir / Erlang ecosystem. In all measures, we have achieved further reach and maturity than 5 years ago.