Skip to content

Instantly share code, notes, and snippets.

@CoreyMSchafer
CoreyMSchafer / tutorial.py
Created August 15, 2024 17:48
Python Tkinter Tutorial - Part 2
import tkinter as tk
from tkinter import ttk
def main():
app = Application()
app.mainloop()
class Application(tk.Tk):
@omarmciver
omarmciver / new-data-vhdx-wsl2.md
Last active March 15, 2026 08:26
New VHDX attach to WSL2

Creating and Maintaining a VHDX Drive in WSL

This guide explains how to create, mount, and maintain a VHDX drive for use with WSL (Windows Subsystem for Linux).

Prerequisites

  • Windows 10/11 with WSL2 installed
  • Administrative access
  • PowerShell
  • Sufficient disk space
@CoreyMSchafer
CoreyMSchafer / tutorial.py
Created July 27, 2024 16:47
Python Tkinter Tutorial - Part 1
import tkinter as tk
from tkinter import ttk
root = tk.Tk()
root.title("Simple App")
def add_to_list(event=None):
text = entry.get()
if text:

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

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

GitHub - nof0 Follow @wquguru

目录

@dickinsonre
dickinsonre / swmm5_combined_icm.html
Created March 15, 2026 08:15
SWMM5 Complete Runoff Explorer — Three Surfaces · Cash-Karp RK5 · ICM InfoWorks Mapping
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SWMM5 Complete Runoff Engine — Three Surfaces · Cash-Karp RK5 · Design Storms</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=IBM+Plex+Mono:wght@300;400;500;600&display=swap');
:root {
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active March 15, 2026 08:14
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under the Quests tab
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@pythoninthegrass
pythoninthegrass / nvidia_error43_fixer.ps1
Created June 12, 2025 02:39
Refactor nando4eva's batch script to use powershell w/error handling
# Script: nvidia-error43-fixer.ps1
# Author: (C) 2018-2021 nando4eva@ymail.com (Converted to PowerShell by @pythoninthegrass)
# Homepage: https://egpu.io/nvidia-error43-fixer
param(
[switch]$Force
)
# Check if running as administrator
function Test-Administrator {
@kungfulon
kungfulon / RezExtractor.cpp
Created November 5, 2019 17:30
CrossFire VN Rez Extractor
#include <iostream>
#include <fstream>
#include <algorithm>
#include <experimental/filesystem>
#include <cstdlib>
using namespace std;
typedef unsigned int DWORD;
typedef unsigned char BYTE;
@ehsan18t
ehsan18t / processor-boost-mode.md
Last active March 15, 2026 08:10
Enable Processor Boost Mode Control in Advanced Power Settings

Enable Processor Boost Mode Control in Windows

Disable Turbo Boost to Reduce Power Consumption and Heat

Why Do We Need It?

If your laptop’s CPU is running very hot and you’ve tried to undervolt it, you’ve probably discovered there’s no easy way to do so—especially on laptops whose BIOS doesn’t expose those controls. I ran into the same issue with my Ryzen 7 5800H, despite numerous attempts, I couldn’t undervolt because the firmware simply wouldn’t allow it. While it may seem drastic, disabling Turbo Boost is one workaround—and you might be surprised how little real-world performance you lose by turning it off.

@ikawka
ikawka / cloudflare-trace.js
Last active March 15, 2026 08:04
Trace current user's location via javascript with CloudFlare provided the /cdn-cgi/trace is enabled.
(function($){
$(function(){
$.ajax({
contentType: 'application/text; charset=utf-8',
crossBrowser: true,
type: 'GET',
url: '/cdn-cgi/trace',
}).done(function(d){
var data = d.replace(/[\r\n]+/g, '","').replace(/\=+/g, '":"');
data = '{"' + data.slice(0, data.lastIndexOf('","')) + '"}';