Skip to content

Instantly share code, notes, and snippets.

View nevrending's full-sized avatar
🍰
The cake is a lie.

Yefta Sutanto nevrending

🍰
The cake is a lie.
View GitHub Profile
@avoidik
avoidik / README.md
Last active July 26, 2024 09:50
Run Windows 11 IoT ARM on Mac M1 or similar

How to run Windows on Mac

We're going to run Windows 11 IoT (ARM) on Mac M1 (ARM) using the native binary translation, thanks to up-to-date version of qemu which has native hardware support.

Prerequisites

Install qemu and required tools (coreutils - we need truncate/gtruncate, dd/gdd CLI tools, samba - to share files between host and guest VM).

$ brew install qemu coreutils samba
@Aslam97
Aslam97 / mix_to_vite.md
Last active June 3, 2023 15:26
Guide on migrating from Mix to Vite
@mcxiaoke
mcxiaoke / miui-blotware-apps.md
Last active July 19, 2024 19:31
MIUI 13/14 bloatware apps, updated at 20240816

对于所有应用,不建议直接删除,使用adb shell pm disable-user package-name禁用即可,方便出问题时恢复。

DO NOT UNINSTALL:

  • com.miui.securitycenter
  • com.miui.securityadd
  • com.xiaomi.finddevice

(Don’t uninstall these three apps or services from your Xiaomi device. Otherwise, you may encounter device bricking or bootloop issues.)

@nathan818fr
nathan818fr / haproxy.cfg
Last active July 22, 2024 07:09
Decoding the Minecraft handshake with HAProxy (protocol version, hostname, next-state) to choose which backend to use.
global
lua-load /path/to/haproxy_minecraft.lua
[...]
defaults
[...]
frontend mc_listener
bind *:25565
mode tcp
@wallentx
wallentx / landBureau
Last active March 23, 2021 07:23
Watch -d dir for completed plots, then exec a mv to other path
#!/usr/bin/env bash
# uses https://github.com/z3bra/wendy
# replace below value with path of your chia '-d' value
CHIA_D="/many/t7"
# replace below value with path of HDD
FINAL="/mnt/plots"
@RafaelWO
RafaelWO / docker-swarm-gpu.md
Last active January 11, 2024 21:19 — forked from tomlankhorst/docker-swarm-gpu.md
Instructions for Docker swarm with GPUs
@icedream
icedream / README.md
Last active March 25, 2022 13:31
Clipping without reencoding

youtube-dl has the ability to give you a direct download link for a video instead of downloading the whole video by itself. This is really useful if you only intend to clip a specific part of a stream, and you can even do that without reencoding for maximum speed if you can accept a tolerance of 2 seconds (the usual keyframe interval used for streams). This is a technique I am using to make my Games Done Quick clips as well, so this is not limited to YouTube.

Here's how you can do it:

Requirements

@darwin
darwin / readme.md
Created November 16, 2020 21:59
APFS Container cloning/replicating under macOS 11.0 (Big Sur) - with a bootable system

It is the year 2020 and replicating APFS containers still sucks. One would expect it would be a simple copy and paste in the Disk Utility app but this is still far from reality.

Last year I wrote how I managed to clone my macOS system under Catalina. The main trick was to create a DMG file with multiple volumes, mount it on target machine and drop to command-line to do asr restore from synthetised disk while avoiding possible pitfalls.

The good news is that Apple devs definitely worked on improving this under Big Sur and added some documentation (see man asr). But I didn't understand it fully on first read. Maybe someone could explain how is this supposed to work?

@jfeilbach
jfeilbach / sysctl.conf.md
Last active July 5, 2024 09:18
10/40 Gb NIC Linux Kernel Performance Tuning for samba file server

TCP tuning

The most important TCP tuning areas since kernel 4.9 are:

  • packet pacing
  • dynamic TSO sizing
  • TCP small queues
  • BBR TCP congestion algorithm

Definitions

  • Gb = gigabit
@jfcherng
jfcherng / st4-changelog.md
Last active April 20, 2024 00:25
Sublime Text 4 changelog just because it's not on the official website yet.