Skip to content

Instantly share code, notes, and snippets.

"""
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

nof1.ai Alpha Arena 提示词工程逆向分析

逆向工程说明: 本文档基于 nof1.ai Alpha Arena 的公开文档、交易行为模式、API 响应格式和社区讨论,系统性地逆向推导出其 System Prompt 和 User Prompt 的完整结构,欢迎各路大佬戳戳评论,一起来进行这个有趣的实验。

GitHub - nof0 Follow @wquguru

目录

@Kinyugo
Kinyugo / install_cursor.sh
Last active December 14, 2025 08:22
Cursor AI IDE Installer and Updater Script
#!/bin/bash
installCursor() {
local CURSOR_URL="https://downloader.cursor.sh/linux/appImage/x64"
local ICON_URL="https://miro.medium.com/v2/resize:fit:700/1*YLg8VpqXaTyRHJoStnMuog.png"
local APPIMAGE_PATH="/opt/cursor.appimage"
local ICON_PATH="/opt/cursor.png"
local DESKTOP_ENTRY_PATH="/usr/share/applications/cursor.desktop"
echo "Checking for existing Cursor installation..."
@leumasme
leumasme / info.md
Created January 6, 2025 16:58
Debugging the new NVIDIA App

Debugging the Nvidia CEF processes (Nvidia Overlay or Nvidia App) can be achieved by editing C:\Program Files\NVIDIA Corporation\NVIDIA app\CEF\Resources file NVIDIA (app/overlay).json to add the flag nv-remote-debugging-port=XXXX (pick your port), then using chrome://inspect to connect.

The Nvidia Overlay performs RPC calls by calling into the native function window.cefQuery with data like '{"command":"QUERY_IPC_EXTENSION_MESSAGE","system":"CrimsonNative","module":"ShareServer","method":"EnableInstantReplay","payload":{"enable":true}}' to enable instant replay

@Ljzd-PRO
Ljzd-PRO / pikpak_online_extract.py
Last active January 12, 2026 19:44
Extract All Files in PikPak Directory Online
"""
## License
BSD 3-Clause License
Copyright (c) 2024, Ljzd-PRO, https://github.com/Ljzd-PRO
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
@ftk
ftk / Cargo.toml
Last active March 24, 2026 12:13
http mitm proxy. Simple http proxy to modify Range: http headers. Can be used to speed up youtube in mpv. This is no longer needed since mpv v0.42 (ffmpeg 8.1+).
# To generate mitm cert and key:
# openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -passout pass:"third-wheel" -subj "/C=US/ST=private/L=province/O=city/CN=hostname.example.com"
# see: https://github.com/campbellC/third-wheel
[package]
name = "http-ytproxy"
version = "0.1.0"
edition = "2021"
@SophieShears
SophieShears / dl_m3u8_multithreaded.py
Last active February 16, 2025 02:21
Download m3u8 links as mp4 multithreaded to decrease download time
# pip install m3u8_To_MP4
# Code to download m3u8 links as mp4 files
import m3u8_To_MP4
import os
def dl_m3u8(url, directory, filename):
# Note directory should be the filepath to save the file ex: '/home/username/bin'
# Directory can be a relative or absolute path
# Filename should end with an .mp4 ex: 'test.mp4'
@TrevTV
TrevTV / ArcOn10.md
Last active October 23, 2025 19:22
Guide to installing Arc Browser on Windows 10

NOTICE: Arc now supports Windows 10 officially. This guide is no longer necessary.

As this is not an official way of installing Arc, if you encounter any issues do NOT report them to the developers, they did not intend for people to be running Arc on Windows 10.

@dougbenham
dougbenham / LeakedZone.ps1
Last active January 28, 2026 01:54
LeakedZone Scraper
# Working as of July 22nd, 2025
# - You'll need N_m3u8DL-RE (grab it from https://github.com/nilaoda/N_m3u8DL-RE/releases/latest)
# - You'll need to edit the cookies (on line 10), the user agent (on line 12), and the names you want to download (on line 14).
# - See this comment for a picture on how to populate these values: https://gist.github.com/dougbenham/400ca9fc488126bf9065e9a6cc3657ad?permalink_comment_id=5114236#gistcomment-5114236
$env:PATH += ";."
$headers = @{
'Accept-Encoding' = 'gzip, deflate'
'Cookie' = 'cf_clearance=..; XSRF-TOKEN=..; leakedzone_session=.. AND MAYBE MORE, PULL ALL COOKIES FROM FIREFOX'
@SMUsamaShah
SMUsamaShah / list_of_p2p_file_sharing.md
Last active April 2, 2026 00:21
List of P2P file sharing tools

Browser Based

  1. Web Wormhole https://webwormhole.io/ https://github.com/saljam/webwormhole
  2. Localsend https://web.localsend.org/
  3. FilePizza https://file.pizza/
  4. ShareDrop sharedrop.io https://github.com/szimek/sharedrop (SOLD, not recommended, use one of the forks)
    1. A clone SnapDrop snapdrop.net https://github.com/RobinLinus/snapdrop (SOLD, not recommended, use one of the forks)
      1. A fork PairDrop https://pairdrop.net/ https://github.com/schlagmichdoch/pairdrop
  5. ToffeeShare https://toffeeshare.com/
  6. Instant.io https://instant.io/