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
@vaimalaviya1233
vaimalaviya1233 / export-ble-infos.py
Created August 12, 2025 00:28 — forked from Mygod/export-ble-infos.py
Export your Windows Bluetooth LE keys into Linux!
#!/usr/bin/python3
"""
Copyright 2021 Mygod
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
-- 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
@vaimalaviya1233
vaimalaviya1233 / ssh_setup.md
Created June 30, 2025 06:24 — forked from teebow1e/ssh_setup.md
Integrate SSH keys to GitHub for working with private repo (or personal access)
@vaimalaviya1233
vaimalaviya1233 / gist:bd311c5aafa8e5b4cc3069d5a463291e
Created June 30, 2025 05:24 — forked from madrobby/gist:9476733
Download a single file from a private GitHub repo. You'll need an access token as described in this GitHub Help article: https://help.github.com/articles/creating-an-access-token-for-command-line-use
curl -H 'Authorization: token INSERTACCESSTOKENHERE' -H 'Accept: application/vnd.github.v3.raw' -O -L https://api.github.com/repos/owner/repo/contents/path
@vaimalaviya1233
vaimalaviya1233 / GitHub curl.sh
Created June 30, 2025 05:22 — forked from indraniel/GitHub curl.sh
Download a single file from a private GitHub repo. You'll need an access token as described in this GitHub Help article: https://help.github.com/articles/creating-an-access-token-for-command-line-use
curl --header 'Authorization: token INSERTACCESSTOKENHERE' \
--header 'Accept: application/vnd.github.v3.raw' \
--remote-name \
--location https://api.github.com/repos/owner/repo/contents/path
# Example...
TOKEN="INSERTACCESSTOKENHERE"
OWNER="BBC-News"
REPO="responsive-news"
@vaimalaviya1233
vaimalaviya1233 / AdbCommands
Created June 22, 2025 13:29 — forked from heo001997/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.
@vaimalaviya1233
vaimalaviya1233 / char-keyevents.json
Created June 22, 2025 13:27 — forked from heo001997/char-keyevents.json
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",
@vaimalaviya1233
vaimalaviya1233 / keyevents.json
Created June 22, 2025 13:27 — forked from arjunv/keyevents.json
All Android Key Events for usage with adb shell
{
"key_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",
"key_0": "adb shell input keyevent 7",
package com.tobi.example2ktdsl.ui.screens
import android.content.res.Configuration
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
@vaimalaviya1233
vaimalaviya1233 / SwitchWithThumbIconSample.kt
Created June 19, 2025 09:41
switch composable with custom unchecked and checked colors and with custom unchecked icon
@Composable
fun SwitchWithThumbIconSample() {
var checked by remember { mutableStateOf(false) }
Switch(
modifier = Modifier.semantics { contentDescription = "Demo with icon" },
colors = SwitchDefaults.colors(
uncheckedTrackColor=Color(0xFFB71C1C),
uncheckedBorderColor = Color(239, 83, 80, 255),
uncheckedThumbColor = Color(0xFFFF9052),
uncheckedIconColor = Color(0xFFEEEEEE),