Skip to content

Instantly share code, notes, and snippets.

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 December 26, 2025 20:10
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 December 27, 2025 06:03
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;
}