Skip to content

Instantly share code, notes, and snippets.

View mlyxshi's full-sized avatar
💭
Self-studying CS again

mlyxshi

💭
Self-studying CS again
  • 13:01 (UTC +08:00)
View GitHub Profile
@dramforever
dramforever / nixos-substrate.sh
Last active December 16, 2025 12:39 — forked from whitequark/nixos-bite.sh
substrate n. portmanteau of "subdir" and "lustrate" (also a real word that means something relevant, probably)
#! /usr/bin/env bash
set -x -e -o pipefail
# PoC of nixos-substrate
#
# substrate n.
# portmanteau of "subdir" and "lustrate"
# (also a real word that means something relevant, probably)
#
# fanfiction of nixos-bite https://gist.github.com/whitequark/b2ebce6ce77f4b29e37dffc4cbd45873
@rxliuli
rxliuli / convert-chrome-extension-to-safari.md
Last active May 13, 2026 11:35
Converting Chrome Extensions to Safari

Converting Chrome Extensions to Safari

Origin https://rxliuli.com/blog/convert-chrome-extension-to-safari

Background

I recently attempted to convert a Chrome extension to Safari—something I had postponed due to Xcode's poor development experience. This article documents the conversion process for Redirector, which is already available on Chrome/Firefox/Edge, into my first Safari extension on the App Store.

Conversion Process

@x0nu11byt3
x0nu11byt3 / elf_format_cheatsheet.md
Created February 27, 2021 05:26
ELF Format Cheatsheet

ELF Format Cheatsheet

Introduction

Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.

ELF

Compilation

@rmcdongit
rmcdongit / macOS_SytemPrefs.md
Last active May 1, 2026 16:30
Apple System Preferences URL Schemes

macOS 10.15 System Preference Panes

Below are a list of System Preference pane URLs and paths that can be accessed with scripting to assist users with enabling macOS security settings without having to walk them through launching System Preferences, finding panes, and scrolling to settings. Not all panes have an accessible anchor and some are OS specific.

To find the Pane ID of a specific pane, open the System Preferences app and select the desired Preference Pane. With the pane selected, open the ScriptEditor.app and run the following script to copy the current Pane ID to your clipboard and display any available anchors:

tell application "System Preferences"
	set CurrentPane to the id of the current pane
	set the clipboard to CurrentPane
@darcyparker
darcyparker / vimModeStateDiagram.svg
Last active May 1, 2026 20:34
Vim Modes Transition Diagram in SVG https://rawgithub.com/darcyparker/1886716/raw/eab57dfe784f016085251771d65a75a471ca22d4/vimModeStateDiagram.svg Note, most of the nodes in this graph have clickable hyperlinks to documentation.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.