Skip to content

Instantly share code, notes, and snippets.

@neutronscott
neutronscott / mtk-bootseq.py
Created June 10, 2024 15:59 — forked from plugnburn/mtk-bootseq.py
MTK Bootseq: enter alternative boot modes in MediaTek-based smartphones
#!/usr/bin/env python3
# Simple script to enter the necessary boot mode in the MT6572-based (etc) phones
# Depends on pyserial, otherwise fully cross-platform
# Usage: python3 mtk-bootseq.py [MODECMD] [port]
# e.g. python3 mtk-bootseq.py FASTBOOT /dev/tty.usbmodem14200
# and then connect the cable and repeatedly short-press the power on key
# Supported commands depend on the device and its preloader. Here's the list for Sigma S3500 sKai:
@Sysetup
Sysetup / removeUrlExtension.js
Created August 19, 2016 16:53
Remove .html from url in a static website
var url = window.location.href;
url = url.split('.html')[0];
//url = url.substring(0, url.lastIndexOf("."));
window.history.replaceState( null, null, url );
@karpathy
karpathy / microgpt.py
Last active February 19, 2026 00:53
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@dabit3
dabit3 / you_couldve_invented_openclaw.md
Last active February 19, 2026 00:53
You Could've Invented OpenClaw

See more of my writing here.

In this post, I'll start from scratch and build up to OpenClaw's architecture step by step, showing how you could have invented it yourself from first principles, using nothing but a messaging API, an LLM, and the desire to make AI actually useful outside the chat window.

End goal: understand how persistent AI assistants work, so you can build your own (or become an OpenClaw power user).

First, let's establish the problem

When you use ChatGPT or Claude in a browser, there are several limitations:

Ethereum RPC Infra Security

Over the years, as a DevOps engineer who has deployed and maintained blockchain nodes in production, I've compiled this list of security standards that should be used as a checklist, whether you are a node operator (or developer) or building an application using blockchain for production.

This docs defines:

  • what must be secured on RPC nodes

1. Network

@trungly1
trungly1 / proton-expose.md
Last active February 19, 2026 00:49
ProtonBridge Headless Mode

Source: https://ndo.dev/posts/headless_protonbridge All credits go to the author

Proton Mail is a great web email service, but if you've landed here, you've probably run into their lack of support for SMTP. They offer a local bridge application which is designed to run in a desktop environment and enable you to use your Outlook, Thunderbird, etc. email client on that same local computer with your Proton Mail account. However, if you'd like to access your Proton Mail email via another email client on your mobile device or another computer where you can't run their bridge application - that is not supported. This was incredibly frustrating so I figured out how to compile their bridge application without the GUI dependencies in order to run it on any Linux server and expose SMTP / IMAP ports for you to consume from your email client of choice.

Challenges

There are a few challenges here that we've got to overcome to enable using the proton-bridge project in this way:

  1. Application by default requires
@POTUS-Elect46
POTUS-Elect46 / PRESIDENTIAL ADDRESS ON FAIRER WAGES
Created February 19, 2026 00:32
PRESIDENTIAL ADDRESS ON FAIRER WAGES
PRESIDENTIAL ADDRESS ON FAIRER WAGES
"A Nation That Honors Work Must Honor Workers"
My fellow Americans,
Tonight, I want to speak about something fundamental to the American promise — the dignity of work, and the fairness of the wages that reward it.
From the earliest days of our Republic, we have believed that opportunity is not inherited; it is earned. That belief has carried us through wars, depressions, and eras of extraordinary change. But opportunity cannot survive on belief alone. It must be supported by a simple, unshakable principle:
If you work hard in the United States of America, you should be able to build a decent life.