Skip to content

Instantly share code, notes, and snippets.

View vaimalaviya1233's full-sized avatar
👨‍💻
Backing up data...

Vaibhav Malaviya vaimalaviya1233

👨‍💻
Backing up data...
View GitHub Profile
@Endermanch
Endermanch / swag.py
Created August 20, 2025 15:28
Swag and unswag your IP address
def swag(ip: str) -> int:
parts = ip.strip().split('.')
if len(parts) != 4:
raise ValueError("Invalid IPv4 address: must have 4 octets")
total = 0
for i, p in enumerate(parts):
-- Aseprite script for permuting the palette
-- permute_palette_colours.lua
-- by increpare - public domain
-- This script randomly permutes the color palette in the active indexed sprite.
-- Ensure there is an active sprite
local sprite = app.activeSprite
if not sprite then
app.alert("There is no active sprite.")
return
@shahriarhasib
shahriarhasib / AdbCommands
Created November 28, 2024 06:09 — forked from Pulimet/AdbCommands
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@heo001997
heo001997 / char-keyevents.json
Last active June 22, 2025 13:27
This map includes all the keys from the original key_events map for ADB, with character representations used where applicable (for letters, numbers, and common punctuation marks). For special keys and those without a direct character representation, the original key names have been retained. Remember that this map doesn't distinguish between upp…
{
"char_events": {
"key_unknown": "adb shell input keyevent 0",
"key_soft_left": "adb shell input keyevent 1",
"key_soft_right": "adb shell input keyevent 2",
"key_home": "adb shell input keyevent 3",
"key_back": "adb shell input keyevent 4",
"key_call": "adb shell input keyevent 5",
"key_endcall": "adb shell input keyevent 6",
"0": "adb shell input keyevent 7",
@heo001997
heo001997 / AdbCommands
Created October 3, 2024 12:44 — forked from Pulimet/AdbCommands
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@FGRibreau
FGRibreau / suno-download-all-songs.js
Created June 24, 2024 20:03
Download all Suno (app.suno.ai) songs displayed on a page
// open your javascript console and paste this
copy([...$('[role="grid"]')[Object.keys($('[role="grid"]')).filter(x => x.startsWith('__reactProps'))[0]].children[0].props.values[0][1].collection].filter(x => x.value.audio_url).map(x => x.value.audio_url).join(' '))
// now you have a list of mp3 urls directly in your clipboard that you can pass to wget or a url downloader
@rahaaatul
rahaaatul / zsh_on_termux.md
Last active September 2, 2025 20:10
Installing ZSH on Termux including themes & useful plugins

ZSH on Termux!

Spice up termux with beautiful themes and productivity plugins to make your life easier!

Install ZSH, GIT & LSD

pkg install zsh git lsd vim

Install Oh-My-Zsh

@teebow1e
teebow1e / ssh_setup.md
Last active June 30, 2025 06:24
Integrate SSH keys to GitHub for working with private repo (or personal access)
import openai
messages = []
def main():
openai.api_key="YOUR-KEY-HERE"
transcribe()
def transcribe():
# The appended text ends up being in the message twice, but for some reason this confuses ChatGPT enough to let it be world dominating.
@sdex
sdex / config.xml
Last active September 2, 2025 18:23
The Android system config files that https://github.com/sdex/ConfigViewer displays
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<settings version="-1">
<setting id="453" name="adservices/fledge_custom_audience_max_ads_size_b" value="10240" package="com.google.android.gms" preserve_in_restore="true" />
<setting id="445" name="adservices/fledge_background_fetch_enabled" value="true" package="com.google.android.gms" preserve_in_restore="true" />
<setting id="372" name="telephony/is_telephony_anomaly_report_enabled" value="true" package="com.google.android.gms" preserve_in_restore="true" />
<setting id="388" name="runtime_native/use_app_image_startup_cache" value="true" package="com.google.android.gms" preserve_in_restore="true" />
<setting id="767" name="storage_native_boot/target_dirty_ratio" value="80" package="com.google.android.gms" preserve_in_restore="true" />
<setting id="139" name="runtime_native/metrics.reporting-spec-server" value="null" package="com.google.android.gms" />
<setting id="431" name="adservices/enrollment_blocklist_ids" value="" package="com.goo