Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script src="Scripts/jquery-1.9.1.min.js"></script>
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<script src="Scripts/isRockFx.js"></script>
<script>
$(function () {
  1. Download and open HxD.
  2. Open the original engine.dll in HxD.
  3. Go to Search -> Replace -> Hex-values.
  4. Search for 8B F1 E8 40 CD 05 00 8B 7D 10 83 F8 02 0F 94 C3.
  5. Replace with 31 C0 E9 2D 01 00 00 90 90 90 90 90 90 90 90 90.
  6. Use File -> Save as... and save it as engine.dll.

Reference: patching sub_1013BF40 result to successfully return always fixes the constant "No Steam logon\n" error. Meant for Portal Reloaded.

Python usage: python3 patch.py engine.dll

#!/bin/bash
# Docker Compose 暂停状态管理脚本
# 用法: ./docker-compose-manager.sh [check|pause|unpause|toggle]
# 切换到脚本所在目录
cd "$(dirname "$0")"
# 创建必要的目录
mkdir -p ./home
@duyetpt
duyetpt / measure-software-simplicity.md
Last active August 17, 2026 01:31
Meansure software complexity
name measure-software-simplicity
description Measure and report how well a design, pull request, module, service, refactor, or repository follows software-simplicity principles such as Single Responsibility, deep modules, single knowledge ownership, low change amplification, low caller burden, valid-state design, actionable failures, controlled scope, and evidence-based performance work. Use for architecture assessments, code reviews, maintainability audits, refactoring baselines, before-and-after comparisons, and engineering quality reports.

Measure Software Simplicity

Assess simplicity with Goal-Question-Metric (GQM), repository evidence, and a calibrated scorecard. Treat measurements as decision support.

Rules

@aarondfrancis
aarondfrancis / audit-your-codebase.md
Created August 14, 2026 15:20
A read-only, agent-orchestrated codebase audit prompt for data structures, state modeling, algorithms, and ownership.

Audit this entire codebase for materially useful simplifications in its data structures, state representation, control flow, algorithms, and ownership.

This is an audit-only exercise. Do not edit files, run tests, implement recommendations, commit, or push. Read-only inspection commands are allowed.

You are the coordinator. Continue until the complete codebase has been reviewed and the final audit is validated.

  1. Establish the coverage contract

Inspect the repository and inventory every identifiable subsystem.

@101arrowz
101arrowz / README.md
Last active August 17, 2026 01:15
Download a McGraw Hill Education eTextbook

Download a McGraw Hill Education eTextbook

If you purchase a textbook from McGraw Hill, the website to view it is clunky and only works on some devices. You can't go to specific page numbers, the search is super slow, etc. That's why I wrote this script to download the textbook as an ePub file for your own viewing.

Using this script is 100% legal. McGraw Hill publicly hosts their ebooks online in order for their web client to download it. Moreover, to use it, you must already have purchased the book you would like to download, so it is legally yours to use as you please. However, it IS illegal to use this for piracy purposes. DO NOT DISTRIBUTE ANY TEXTBOOKS YOU DOWNLOAD USING THIS SCRIPT.

@samsch
samsch / stop-using-jwts.md
Last active August 17, 2026 01:31
Stop using JWTs

Stop using JWTs!

TLDR: JWTs should not be used for keeping your user logged in. They are not designed for this purpose, they are not secure, and there is a much better tool which is designed for it: regular cookie sessions.

If you've got a bit of time to watch a presentation on it, I highly recommend this talk: https://www.youtube.com/watch?v=pYeekwv3vC4 (Note that other topics are largely skimmed over, such as CSRF protection. You should learn about other topics from other sources. Also note that "valid" usecases for JWTs at the end of the video can also be easily handled by other, better, and more secure tools. Specifically, PASETO.)

A related topic: Don't use localStorage (or sessionStorage) for authentication credentials, including JWT tokens: https://www.rdegges.com/2018/please-stop-using-local-storage/

The reason to avoid JWTs comes down to a couple different points:

  • The JWT specification is specifically designed only for very short-live tokens (~5 minute or less). Sessions
@Computer-Tsu
Computer-Tsu / PSInfo.md
Last active August 17, 2026 00:08
PowerShell Profiles

Comments

# Comment line

<#
comment block
#>

Function Help Comments