Skip to content

Instantly share code, notes, and snippets.

@Rnreck
Rnreck / subs.md
Created September 10, 2025 10:34 — forked from tatsumoto-ren/subs.md
Japanese Subtitles
@Rnreck
Rnreck / clean_code.md
Created June 15, 2025 17:01 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

How to install game-porting-toolkit (aka proton for macOS)

You also might wanna just use Whisky which does this automatically

This guide works on macOS 13.4+ using Command Line Tools for XCode 15 Beta!

What is this?

In the recent WWDC, Apple announced and released the "game porting toolkit", which upon further inspection this is just a modified version of CrossOver's fork of wine which is a "compatibility layer" that allows you to run Windows applications on macOS and Linux.

@Rnreck
Rnreck / build-mpv_silicon.sh
Created February 7, 2025 13:05 — forked from dbrookman/build-mpv_silicon.sh
How to build mpv & mpv.app on an Apple silicon Mac
#!/usr/bin/env bash
# Builds mpv & mpv.app on Apple silicon Macs.
# Run this script from the root directory of the mpv repo.
# if anything fails, gtfo
set -ex
meson setup build
meson compile -C build
@Rnreck
Rnreck / README.md
Created September 8, 2024 15:51 — forked from nikcub/README.md
Facebook PHP Source Code from August 2007
@Rnreck
Rnreck / gist:a566a6271128ca5ee37c36c4afe97396
Created August 26, 2024 03:04 — forked from snail007/gist:83e93e62a3abc390a649b2d96c1a61c4
git仓库删除所有提交历史记录,成为一个干净的新仓库,把旧项目提交到Git上,但是会有一些历史记录,这些历史记录中可能会有项目密码等敏感信息。如何删除这些历史记录,形成一个全新的仓库,并且保持代码不变呢?
1.Checkout
git checkout --orphan latest_branch
2. Add all the files
git add -A
3. Commit the changes
@Rnreck
Rnreck / pppdata.js
Created August 2, 2024 11:12 — forked from s1ntoneli/pppdata.js
各国家购买力水平清单
const ppp = [
{
"range": "0.0-0.1",
"countries": []
},
{
"range": "0.1-0.2",
"countries": []
},
{
#!/usr/bin/env python3
# -*-coding:utf-8 -*-
'''
A picture slideshow viewer widget
'''
import os
import natsort
@Rnreck
Rnreck / Visual Studio 2022 Product Key
Created March 8, 2024 13:36
Visual Studio 2022 Enterprise Product key
Visual Studio 2022
Enterprise :
VHF9H-NXBBB-638P6-6JHCY-88JWH
Professional:
TD244-P4NB7-YQ6XK-Y8MMM-YWV2J