Skip to content

Instantly share code, notes, and snippets.

View null-dev's full-sized avatar
💭
I may be slow to respond.

Andy Bao null-dev

💭
I may be slow to respond.
View GitHub Profile
@icorbrey
icorbrey / changelog.nu
Last active April 30, 2025 21:38
Generates nicely formatted changelogs from a Jujutsu revset. Requires nushell and semantic commits. Config: `aliases.changelog = ["util", "exec", "nu", "~/.config/jj/scripts/changelog.nu"]` (with whatever your script path is)
# ╔══════════════════════════════════════════════════════════════════════════╗
# ║ changelog.nu – produce collapsible-Markdown release notes from jj log ║
# ║ ║
# ║ Usage: nu changelog.nu [<revset>] ║
# ║ – <revset> always appends "~empty()" to drop empty commits. ║
# ║ Needs: Nushell 0.91+ • jj 0.24+ ║
# ╚══════════════════════════════════════════════════════════════════════════╝
export def main [revset: string] {
@melMass
melMass / README.md
Last active May 7, 2025 07:43
Nushell syntax for bat
# repl-env.nu
# example:
# > let repl_env = repl-env setup-env
# > $env.repl-env = ($repl_env.repl-env | upsert max_length 5)
# > $env.config = $repl_env.config
#
# use the `@` alias to view the last commands output (or use the repl-env get-history command)
#
# $env.repl-env will look like:
# {

NoteAfterNote-10
Testing: Termux, vmtest, and QEMU
Published: June 19, 2024
Link: https://gist.github.com/NoteAfterNote/7614b0137ac6959e3bba35df66eaa75a
Updated: November 22, 2024


Observation: vmtest-QEMU-8.0.2 is faster than vmtest-QEMU-8.2.5 on Smartphone-1-Is-Android-10

Solution: qemu-system-x86_64

  • Remove

* -drive if=none,id=vm,format=raw,file=$VM -device virtio-blk-pci,id=vmvirt1,drive=vm

@jimbo8098
jimbo8098 / GHCR Login.ps1
Created March 13, 2023 21:50
A small login script which uses the Github CLI to log into GHCR instead of conventional tokens which must be made on the site.
#Install Github CLI
# Set the scopes used for the token
gh auth login -s read:packages,write:packages,delete:packages
# Read the token in and use it in the docker login call
gh auth token | docker login ghcr.io -u username --password-stdin
@TheSunCat
TheSunCat / usb-sounds-udev.md
Last active December 7, 2024 16:48
USB Sounds on Linux using udev!

This is an overview of how I configured my system to play a sound when a USB device (such as a flash drive) is plugged in.

Requirements

  • Linux install with udev and systemd.
  • Root access.
  • A utility to play sounds (I used aplay).
  • Sounds to play.

Playing a sound

Using the tool aplay (found in the Arch package alsa-utils), it is easy to play an audio file: aplay insert.wav

@Akianonymus
Akianonymus / create_multiple_profiles.md
Last active May 12, 2025 16:35
Create multiple profiles for ISLAND app

Setup multiple island spaces

Note: Must have an work profile already setup, So that we can modify fw.sys.max_profiles to allow more work profiles

su # to gain root access
resetprop ro.debuggable 1 
am restart

@moyix
moyix / killbutmakeitlooklikeanaccident.sh
Created February 5, 2022 22:51
Script to inject an exit(0) syscall into a running process. NB: only x86_64 for now!
#!/bin/bash
gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont'
@Zyst
Zyst / KeyBR Colemak-DH ANSI.js
Last active November 21, 2023 07:18
Makes the KeyBR Colemak Layout be Colemak-DH on an ANSI Keyboard. Install with TamperMonkey
// ==UserScript==
// @name KeyBR Colemak-DH
// @namespace http://tampermonkey.net/
// @version v1.1
// @description Switch Colemak layout in keybr.com to Colemak DH
// @author https://github.com/Zyst
// @match https://www.keybr.com/
// @icon https://www.google.com/s2/favicons?domain=keybr.com
// @grant none
// @contributors https://github.com/hilarycheng
@AadilGillani
AadilGillani / smali-cheatsheet.txt
Created October 1, 2021 06:49
Smalli Cheat-Sheet
A little help in Smali
(To be supplemented)
#
general information
#
Smali
Types
Dalvik bytecode has two main type classes, primitive types and reference types. Reference types are objects and arrays, everything else is primitive.