Skip to content

Instantly share code, notes, and snippets.

View DavidArsene's full-sized avatar

DavidArsene

  • Bucharest
  • 07:34 (UTC +03:00)
View GitHub Profile
@DavidArsene
DavidArsene / default.nix
Last active May 11, 2026 17:19
Wrap a nixpkgs flake input to always have allowUnfree enabled.
let
#? Get the original nixpkgs from our registry entry.
#? Directly getting "nixpkgs" doesn't work, since it
#? doesn't use the registry for resolving its inputs.
src = builtins.getFlake "nixpkgs-src";
wrapper = import ./flake.nix;
#? Explicitly call `outputs` à la flake-compat
self = wrapper.outputs { inherit self src; };
@MichaelArthurLong
MichaelArthurLong / run.sh
Last active January 17, 2026 21:49
Simple example to run Proton outside of Steam
# Proton
# export PROTON_FORCE_LARGE_ADDRESS_AWARE=1 # just an example ignore this
export STEAM_COMPAT_DATA_PATH=~/Proton/half-life-3
export STEAM_COMPAT_CLIENT_INSTALL_PATH=~/.steam/steam
alias proton="~/.steam/steam/steamapps/Proton - Experimental/proton"
# Use Vulkan driver from Mesa instead of AMDVLK
export AMD_VULKAN_ICD=RADV
# Feral Gamemode
import android.app.AppComponentFactory;
import android.content.pm.ApplicationInfo;
import android.util.Log;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.Channels;
import java.util.ArrayList;
import java.util.List;
import java.util.zip.ZipFile;
@143mailliw
143mailliw / win11.md
Last active March 5, 2026 15:41
Windows 11 Issues List

Issues

Installation

  • The page to download Windows 11 cannot be found from Bing, only Google, and doesn't seem to show up anywhere on the website
  • The Media Creation Tool still uses icons from Windows 8
  • The Media Creation Tool still has an edition selector even though it doesn't do anything
  • The Media Creation Tool still flickers
  • All of the Media Creation Tool languages are in lower case
  • Upgrade prompt in the Windows Update preference pane is buggy
  • Installer still uses Windows 7 themes and Windows 98 buttons
  • Installer still uses the Windows 8 color palette
@yujincheng08
yujincheng08 / enc_str.cc
Last active September 15, 2025 04:29
Compile time encrypt string
#include "enc_str.h"
#include <cstdio>
static_assert(next_prime<next_prime<4>> == next_prime<4> && next_prime<4> == 5, "??");
static constexpr auto j = "I love vvb2060 and she's my wife."_senc;
static constexpr auto k = ".."_senc;
static constexpr auto l = j + k;
int main() {
@RikkaW
RikkaW / gist:be3fe4178903702c54ec73b2fc1187fe
Last active July 14, 2025 07:09
show window in app_process (impossible to work from Android 14 QPR 3 or Android 15, as addView requires the calling process an Android app process)
token = new Binder();
try {
Context _context = android.app.ActivityThread.systemMain().getSystemContext();
final Context context = new ContextWrapper(_context) {
@Override
public Object getSystemService(String name) {
if (Context.WINDOW_SERVICE.equals(name)) {
WindowManager wm = (WindowManager) super.getSystemService(name);
if (wm != null) {
((android.view.WindowManagerImpl) wm).setDefaultToken(token);
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active May 13, 2026 14:11
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}