这是indexloc提供的服务,不要输入任何密码
Skip to content

Instantly share code, notes, and snippets.

import os
import struct
from concurrent.futures import ThreadPoolExecutor
from pathlib import Path
from PIL import Image
BIN_FILE = 'game.bin' # or .iso
OUTPUT_DIR = 'textures'
Path(OUTPUT_DIR).mkdir(exist_ok=True)
@Piinks
Piinks / notable_instructions.md
Created July 25, 2025 23:31
Compiling Notable Commits

Instructions for Compiling the Weekly Notable Changes Report

This document outlines the comprehensive, step-by-step process for generating the weekly notable changes report for the Flutter repository. Follow these instructions carefully to ensure accuracy and efficiency.

Phase 1: Initial Data Gathering & Curation

  1. Fetch Latest Commits: Ensure the local repository is up-to-date by running git fetch.
  2. Get All Commits from the Last 7 Days: Get a list of all commits that have landed in the past seven days (inclusive of today). Use the following command to get the commit hash and the subject line:

git log --since="7 days ago" --pretty=format:"%H - %s"

use std::convert::Infallible;
use axum::{
async_trait,
extract::FromRequestParts,
http::{request::Parts, Request, header::CONTENT_LENGTH},
middleware::{from_fn, Next},
response::{Html, IntoResponse, IntoResponseParts, Response},
routing::get,
Router, body::{Full, self},
@kylegg
kylegg / pspoc.php
Created June 1, 2024 05:04
The backend logic behind free Roblox private servers. Access codes are signed and then returned all right here. https://www.roblox.com/games/16875821750/Any-Game-Reserved-Server-POC
<?php
//
// kylegg 2024
//
// Response is always text/plain for our API.
header('Content-Type: text/plain');
// Generic function I wrote for validating url parameters in like 30 seconds, its not pretty but it works.
function getQueryParameter(string $name, Closure $cl): mixed
@assiless
assiless / MagiskSupport.md
Last active July 26, 2025 05:47
MagiskOnRedroid
setup variables for commands
echo -e "\n
export image=redroid/redroid:11.0.0-amd64
export image_tar=${HOME}/redroid:11.0.0-amd64" >> ${HOME}/.bashrc
source ${HOME}/.bashrc
@jemc
jemc / gh-enable-all-inactivity-disabled-workflows.fish
Created October 20, 2023 15:14
Use GitHub CLI to enable all workflows that were disabled due to repository inactivity - either for all repos in a given org that you manage, or (by default) your personal repos.
function gh-enable-all-inactivity-disabled-workflows
set org $argv[1]
gh repo list $org | cut -f 1 | xargs -I REPO sh -c 'gh workflow list --all -R REPO | grep disabled_inactivity | cut -f 3 | xargs -I WORKFLOW sh -xc "gh workflow enable WORKFLOW -R REPO"'
end
import os
import struct
from pathlib import Path
from PIL import Image
import numpy as np
# TIM header constant
TIM_MAGIC = b'\x10\x00\x00\x00'
# Ensure output directory exists
import os
import struct
import time
from pathlib import Path
from PIL import Image
import numpy as np
# Constants
TIM_MAGIC = 0x10
BPP_MAP = {0: 4, 1: 8, 2: 16, 3: 24}
@1wErt3r
1wErt3r / SMBDIS.ASM
Created November 9, 2012 22:27
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
@vielhuber
vielhuber / script.sh
Last active July 26, 2025 05:40
PostgreSQL: Backup and restore export import pg_dump with password on command line #sql
# best practice: linux
nano ~/.pgpass
*:5432:*:username:password
chmod 0600 ~/.pgpass
# best practice: windows
edit %APPDATA%\postgresql\pgpass.conf
*:5432:*:username:password
# linux