Skip to content

Instantly share code, notes, and snippets.

View Matthew0x's full-sized avatar
💭
RARLLOJZHFBONXU

Matthew A. Matthew0x

💭
RARLLOJZHFBONXU
View GitHub Profile
@vlavrynovych
vlavrynovych / ghost-toc-v2.1.html
Last active January 11, 2025 22:34
Script for the Ghost blog which builds a Table of Contents. Provided code should be added to the footer using Ghost code injection. And then in article you only need to add html with <toc title="Table of Contents"></toc> tag
<script>
class TOC {
constructor() {
document.addEventListener('DOMContentLoaded', () => this.onLoad());
}
onLoad() {
this.article = document.querySelector('article');
const toc = this.article.querySelector('toc');
if (!toc) return;
@mcxiaoke
mcxiaoke / miui-blotware-apps.md
Last active June 7, 2025 23:25
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.)

@nickovs
nickovs / stepper.py
Last active March 11, 2025 14:45
A stepper motor driver for MicroPython
# stepper.py
# A micropython driver for 4-phase, unipolar stepper motors such as
# the 28BYJ-48
# Relesed to the Public Domain by Nicko van Someren, 2020
# The constructor for the Stepper class takes as arguments the four
# pins for driving the motor phases, in phase order, and optionally a
# timer. The pins can be passed as pin numbers or machine.Pin objects
@ausfestivus
ausfestivus / AzureRegionData.md
Last active May 28, 2025 19:29
A list of the Azure regions

List of Azure Regions

A list of all the region names and locations for Azure

Creating the list

You can recreate the list anytime using this command:

az account list-locations -o table
@RickStrahl
RickStrahl / MarkdownMonster-Mermaid.md
Last active October 20, 2024 08:11
Markdown Monster Mermaid Sample

Mermaid

Mermaid is a JavaScript based parsing engine that allows you to embed blocks of graph markup into a page. Markdown Monster supports two different approaches using either code block or HTML tag syntax to embed the mermaid blocks.

@icon-warning Internal Preview Limitations

Note the MM internal preview can't properly display or refresh all chart types, but you can preview in your system browser via Shift-F12 to see proper representation.

Sequence Diagram

You can use a mermaid code block:

import io
import selectors
import subprocess
import sys
def capture_subprocess_output(subprocess_args):
# Start subprocess
# bufsize = 1 means output is line buffered
# universal_newlines = True is required for line buffering
process = subprocess.Popen(subprocess_args,
@lopspower
lopspower / README.md
Last active June 7, 2025 20:25
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@pksunkara
pksunkara / config
Last active May 31, 2025 15:37
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
[user]
name = Pavan Kumar Sunkara
email = [email protected]
github = pksunkara
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
[column]
ui = auto