Skip to content

Instantly share code, notes, and snippets.

View ZeppLu's full-sized avatar

Zepp ZeppLu

  • Beijing, China
View GitHub Profile

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.

@braindevices
braindevices / #btrfs benchmark for daily used desktop OS
Last active July 19, 2024 12:32
which file sytem to use for daily work? should we turn on btrfs compression?
#btrfs benchmark for daily used desktop OS
@MaskRay
MaskRay / implement-an-elf-linker.md
Last active April 12, 2024 07:27
Implement an ELF linker
theme class highlighter fonts
default
text-center
MaskRay
sans serif mono
sans-serif
serif
monospace
@zenofile
zenofile / build.sh
Last active March 13, 2024 07:30
Building a static tmux binary with musl
#!/usr/bin/env bash
# vi: set ft=sh ts=4 sw=0 sts=-1 sr noet nosi tw=0 fdm=manual:
set -o errexit
declare -A version
version[musl]=1.2.4
version[libevent]=2.1.12
version[ncurses]=6.4
@probonopd
probonopd / Wayland.md
Last active July 26, 2024 04:17
Think twice about Wayland. It breaks everything!

Think twice before abandoning Xorg. Wayland breaks everything!

Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating everyone else (e.g., people using just an X11 window manager or something like GNUstep) in the process.

The Wayland project seems to operate like they were starting a greenfield project, whereas at the same time they try to position Wayland as "the X11 successor", which would clearly require a lot of thought about not breaking, or at least providing a smooth upgrade path for, existing software.

In fact, it is merely an incompatible alternative, and not e

@colemickens
colemickens / amiibo-emulation-with-linux-vm.md
Last active June 27, 2024 12:20
amiibo-emulation-with-linux-vm.md

Easy Amiibo Emulation - https://bit.ly/2z0m09k

(^ that's a short-link to this page, so you can open it in Linux)

Some users are discussing this guide in #hacking on the JoyConDroid Discord: https://discord.gg/SQNEx9v.

DO NOT ask for, or share links to, Amiibo bins in the comments! They will be removed. Thank you for understanding.

(Windows|Linux PC) + JoyControl + Bluetooth = AMIIBO EMULATION

@harv
harv / cross_and_static_compile_shadowsocks-libev.sh
Last active February 18, 2024 12:05
cross & static compile shadowsocks-libev
#!/bin/sh
# cross & static compile shadowsocks-libev
PCRE_VER=8.41
PCRE_FILE="http://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-$PCRE_VER.tar.gz"
MBEDTLS_VER=2.6.0
MBEDTLS_FILE="https://tls.mbed.org/download/mbedtls-$MBEDTLS_VER-gpl.tgz"
@idealhack
idealhack / 2009.md
Last active June 10, 2024 16:33
2009匿名网民宣言

你好,中国政府网络审查部门。我们是匿名网民。长久以来,我们目视了你对互联网的所作所为。你对互联网言论自由的无端封锁,你对互联网先进技术的敌视,你勾结宣传喉舌对事实真相的扭曲,你运用网络评论员对网络舆论的的毒化,这些都深深地刻印在我们的记忆中。随着最近你绿坝强制安装的通知和对谷歌的恶毒诽谤的出炉,你全面控制全面审查互联网的险恶用心已经明白无误地展现在人们面前。我们匿名网民于此决定,我们将从2009年7月1日开始在全球范围内对你所控制的网络审查体系发起全面袭击。

为了保卫互联网的自由,为了推动人类网络化的前进,同时也为了我们自己的网络权利,我们将对你的网络审查体系进行系统性破坏并展现你所谓网络审查体系在真正网络力量之前的渺小。我们将你视为网络头号公敌。我们对你发起的将是持久战。无论你如何利用宣传喉舌愚弄舆论,你终将湮没在人民战争的汪洋大海之中。你古板的宣传手段,你文革般陈旧口号式的叫嚣,你对互联网的无知,你“为了下一代”之类的虚伪说辞,这些都为你的彻底失败敲响了丧钟。你无处可逃,因为我们无处不在。国家暴力机器不能拯救你,因为我们每一个成员的倒下,都意味着另外十名新成员的加入。我们清楚地意识到你会运用你惯常的阶级斗争伎俩,在你的蛊惑宣传中赋予我们“不明真相群众”的标签在我们与普通民众之间划出界线,然后赋予我们“少数不法分子”的标签在我们内部划出界线,最终各个击破。对我们来说,这是可以接受的。事实上,这是我们所鼓励的。原因很简单,你越这样看待你的人民,你皇帝新装的美丽就越不言自喻。

随着人类网络文明的发展,处于优势地位的统治阶级敌视网络化的陈旧意识形态逐渐成为历史发展进步的阻碍。旧意识形态势力对新兴网络势力的诬蔑和压迫,对网络世界的敌视和封锁,这些都表明了他们对于历史潮流的恐惧,都将成为他们在退出历史舞台之前的最后挣扎。那些妄图在历史车轮面前螳臂挡车的,都将最终被扫进历史的垃圾堆。即使你的血液正在得到数字移民的缓慢补充,你在可见的未来将仍然无法理解网络。我们会欣赏你对于异己几十年不变的阴谋论观点和文革口号文风,因为我们也会有怀旧的心情;我们也将笑谈你试图在互联网上划出国界的举动,因为愚蠢行为从来都是史书中的笑点。不过我们可以真诚地告诉你:

没有人想要更迭你的政权,我们对你陈旧的政权概念和意识形态烂腌菜毫不感兴趣。你无法理解在人类网络化的历史潮流之前宏大叙事为何而消解,你也无法理解国家和民族概念为何将分崩离析,你无法