Skip to content

Instantly share code, notes, and snippets.

@frankIT
frankIT / android_stock_debloat.sh
Last active July 31, 2021 09:34
Uninstall vendor system packages through adb shell
#!/bin/bash
# Uninstall vendor system packages through adb shell.
# Stock ROM Samsung Galaxy J3 - J330F
apps=(
'com.samsung.android.calendar'
'com.google.android.music'
'com.google.android.videos'
'com.microsoft.office.excel'
@frankIT
frankIT / CSGO-3way.sh
Last active December 7, 2024 21:17
Play Counter Strike Global Offensive in a triple display setup on linux
#!/bin/bash
# Display names
# xrandr | grep connected
LEFT="DP-1"
MIDDLE="eDP-1"
RIGHT="HDMI-2"
# Middle display resolution (native)
@frankIT
frankIT / reloadCookiePolicy.js
Last active June 1, 2023 09:37
Async iubenda reload
// Looking for a way to reload/refresh iubenda asynchronously width a different config?
// Yup, doesn't look like there's any documentation about that, so this might save you some time :)
// Get localized configuration dinamically
window.getIubConf = (lang) => {
if( typeof lang === undefined )
lang = 'en';
// That's the common config as it comes from iubenda, stripped down of all the diffs with the localized ones
@frankIT
frankIT / im-in-class.js
Created December 5, 2024 20:18
Cheats a learning object platform by pretending you're following the lesson.
(function monitorModal() {
let intervalId;
// Request notification permission on start
if (Notification.permission !== 'granted') {
Notification.requestPermission();
}
const watch = async () => {
const modalAlert = document.querySelector('#modalAlert');
@frankIT
frankIT / adbwild.sh
Last active May 17, 2025 21:32
Use wildcards with adb pull
#!/bin/bash
# cd in your download folder first
adb shell 'find "/storage/emulated/0/DCIM/Camera/" -maxdepth 1 -name "202501*"' | while read -r file; do adb pull "$file"; done