Skip to content

Instantly share code, notes, and snippets.

@undefinedroot
undefinedroot / Redmi 9 Global Debloat List.txt
Last active May 17, 2024 17:36
Redmi 9 Global Debloat List
Code name: lancelot
MIUI version: MIUI Global 11.0.8 Stable 11.0.8.0 (QJCMIXM)
Android version: 10 QP1A.190711.020
Model: M2004J19G
Kernel version: 4.14.141-perf-g54df45d
note: do not update your phone yet (do not connect to wifi, disable mobile data)
if you can't access usb debugging (even if you already enabled it on developer options),
@biast12
biast12 / Replace-twitter-logo.user.js
Last active May 17, 2024 17:35
Replaces the X logo with the old Twitter logo
// ==UserScript==
// @name Replaces the X logo with the old Twitter logo
// @description Replaces the X logo with the old Twitter logo by Biast12
// @icon https://abs.twimg.com/favicons/twitter.ico
// @version 1.0.6
// @author Biast12
// @namespace https://twitter.com/Biast12
// @homepageURL https://gist.github.com/biast12/04f66af3297b9395ec489f7eb16a9286
// @supportURL https://gist.github.com/biast12/04f66af3297b9395ec489f7eb16a9286
// @updateURL https://gist.github.com/biast12/04f66af3297b9395ec489f7eb16a9286/raw/Replace-twitter-logo.user.js
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 17, 2024 17:35
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@code-boxx
code-boxx / 0-JS-TTS.MD
Last active May 17, 2024 17:35
Javascript Text To Speech
@lukem512
lukem512 / compactBits.js
Created December 20, 2017 23:19
Bitcoin difficulty target to compact bits conversion
var MAX_PRECISION = 28;
function _findExp (n, base, exp = 1) {
var pow = Math.pow(base, exp);
var div = Math.floor(n / pow);
if (exp > MAX_PRECISION) {
return div;
}
return div + _findExp(n, base, exp + 1);
}
@xuesongbj
xuesongbj / inet_ntop and inet_pton example
Created May 15, 2019 09:03
inet_ntop and inet_pton example
// IPv6 demo of inet_ntop() and inet_pton()
// (basically the same except with a bunch of 6s thrown around)
struct sockaddr_in6 sa;
char str[INET6_ADDRSTRLEN];
// store this IP address in sa:
inet_pton(AF_INET6, "2001:db8:8714:3a90::12", &(sa.sin6_addr));
// now get it back and print it
@mluisbrown
mluisbrown / Rx2Ras-Cheatsheet.md
Last active May 17, 2024 17:33
An RxSwift to ReactiveSwift cheatsheet
@abduhbm
abduhbm / at_to_df.py
Created April 10, 2019 14:57
Retrieve a table from Airtable to Pandas DataFrame
import requests
import pandas as pd
BASE_URL = 'https://api.airtable.com/v0/'
def airtable_to_dataframe(base_name, table_name, api_key):
header = {'Authorization': 'Bearer ' + api_key}
data = []
r = requests.get(BASE_URL + base_name + '/' + table_name, headers=header)
@TheSunCat
TheSunCat / DisblockOrigin.theme.css
Last active May 17, 2024 17:31
Hide all Nitro & Boost upsells in Discord!
/**
* @name Adblock for Discord
* @author TheSunCat and contributors
* @version 1.0.0
* @description Hide all Nitro & Boost upsells on Discord!
* @source https://gist.github.com/TheSunCat/58fedaa19d6154ef3e4b2b676c286906
*/
/* ------------------ */
/* Hide Nitro upsells */