Skip to content

Instantly share code, notes, and snippets.

View gvlx's full-sized avatar

Gerardo Lisboa gvlx

View GitHub Profile
@KernelTruth
KernelTruth / miui-debloat-generic-list.md
Last active September 16, 2026 14:04
Xiaomi MIUI bloatware packages: Generic List [Update 20241128]

CAUTION

Please don’t uninstall packages in a hurry and don’t touch the apps you don’t know about. Use your discretion and uninstall packages that you don’t need.

ADB terminal commands

  • pm uninstall -k --user 0 <package.name>
  • pm disable-user <package.name>
  • pm enable <package.name>

DO NOT UNINSTALL:

You may encounter device bricking or bootloop issues.

@jrandiny
jrandiny / autoinstall.yml
Last active November 24, 2025 09:54
Fresh Install of Ubuntu 24.04 Desktop to existing LVM PV/LV partition
autoinstall:
version: 1
interactive-sections:
- identity
- locale
- keyboard
source:
search_drivers: true
storage:
version: 1
@ziadoz
ziadoz / unbookmark.js
Last active August 29, 2025 17:09
Mastodon - Delete All Bookmarks
// Inspired by Twitter Unfollow All: https://gist.github.com/ziadoz/caa882e75c11be9e8064e570ffec1f5f
(() => {
const $bookmarkButtons = 'button.status__action-bar__button.bookmark-icon';
const retry = {
count: 0,
limit: 3,
};
@lleyton
lleyton / translation.md
Last active January 14, 2026 12:07
(ENG) Open Source Business Challenges and Reality, Rui Ueyama

Open Source Business Challenges and Reality

Original Japanese note here.

Original Author: Rui Ueyama (creator of the mold linker)

Translated by @windowsboy111

Minimally edited by @lleyton

@RobertAKARobin
RobertAKARobin / safari.md
Last active May 24, 2026 00:47
Safari's date-picker is the cause of 1/3 of our customer support issues

Safari's date-picker is the cause of 1/3 of our customer support issues

...and obviously we're building a workaround. But I'm absolutely flabbergasted that a standard <input type="date"> HTML field, in a standard browser, from a company that bases its reputation good design, could be so dreadful.

The context

I'm the developer for a startup that sells a genetic test to recommend medications for high blood pressure. For medical reasons we need to know our customers' birth date. Most of our customers are in their 60s or older. We've found that many of them use iPads or iPhones. And they're the ones who complain to our customer support that our site is unusable.

The problem

@fr0der1c
fr0der1c / delete_unused_assets.py
Created December 22, 2022 09:20
Logseq find unused assets & find missing assets
import os
import shutil
assets_dir = './assets'
journal_dir = './journals'
pages_dir = './pages'
to_delete_dir = './to_delete'
def get_all_assets() -> list[str]:
@filipnet
filipnet / remove_moto_bloatware.bat
Last active September 16, 2026 14:04
ADB Command to Uninstall Bloatware and Remove its Data
# Enable Devoloper Options
# Download E5 USB-Driver http://www.motorola.com/getmdmwin
# Minimal and Install minimal ADB and fastboot https://androidmtk.com/download-minimal-adb-and-fastboot-tool
# ADB command to search for packages
pm list packages | grep "moto"
# ADB command to uninstall Bloatware but keep data
pm uninstall -k --user 0 <package name>
# ADB command to uninstall Bloatware and remove its data
pm uninstall --user 0 <package name>
@briandfoy
briandfoy / perl_features_by_version.pl
Created May 31, 2022 22:48
(Perl) What feature is what version?
#!perl
use v5.36;
use feature ();
my( %Features, %Versions );
foreach my $key ( keys %feature::feature_bundle ) {
next unless $key =~ /\A5\.\d[02468]\z/;
$Versions{$key}++;
foreach my $feature ( $feature::feature_bundle{$key}->@* ) {
$Features{$feature}{$key}++;
@sug0
sug0 / parsers.scm
Last active May 30, 2022 18:55
Parser combinators in Chez Scheme
;; TODO: add backtracking point, to avoid parsing all the way from the beginning!
;;
;; e.g.
;;
;; (json-value (new-string-state "[\" \" 123]"))
;; ==> (#f "Exhausted all possible JSON value types: Failed to parse JSON number: Expected character '9', but found '[' instead")
;;
;; we know we are looking for a comma, so add a backtracking point after the string
;; return 1 >>= thing1 >>= thing2 >>= thing3

The Freenode resignation FAQ, or: "what the fuck is going on?"

IMPORTANT NOTE:

It's come to my attention that some people have been spamming issue trackers with a link to this gist. While it's a good idea to inform people of the situation in principle, please do not do this. By all means spread the word in the communities that you are a part of, after verifying that they are not aware yet, but unsolicited spam is not helpful. It will just frustrate people.

Update 3 (May 24, 2021)

A number of things have happened since the last update.