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 / TaskerBootPremissionsOverride.sh
Created July 16, 2024 08:36 — forked from DanEdens/TaskerBootPremissionsOverride.sh
List of permission grants for tasker after reboot
echo=off
if [ "$1" = "--s8" ]; then
mosquitto_pub -h $awsip -p $awsport -t vars/S8_boot_patch -r -m 1
device=9888d9303354564442
else
mosquitto_pub -h $awsip -p $awsport -t vars/S10_boot_patch -r -m 1
device=RF8N82MR1VA
fi
echo Overriding security protocols for $device
// Consumer usage
class MyFragment : Fragment(R.layout.my_fragment) {
private val viewModel: MyViewModel by viewModels()
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
val consumer = consumeState(viewModel)
}
}
@vaimalaviya1233
vaimalaviya1233 / windows-keys.md
Created February 24, 2024 22:22
Windows Product Keys

NOTE

These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.

Index

@vaimalaviya1233
vaimalaviya1233 / txt.txt
Created December 30, 2023 22:01 — forked from wookiecooking/txt.txt
haha google dork searches
intitle:index.of .bash_history
intitle:index.of .sh_history
intitle:”Index of” index.html.bak
intitle:”Index of” index.php.bak
intitle:”Index of” index.jsp.bak
intitle:”Index of” “.htpasswd” htpasswd.bak
inurl:backup intitle:index.of inurl:admin
“Index of /backup”
intitle:”Index of” index.html~
intitle:”Index of” index.php~
@vaimalaviya1233
vaimalaviya1233 / AdbCommands
Created October 1, 2023 18:15 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
*** Best video in mp4 format [if available] in 1080p ***
$ youtube-dl -f 'bestvideo[height<=1080 && ext=mp4]+bestaudio' https://www.youtube.com/watch?v=LXb3EKWsInQ
*** For ease of use make alias for this command ***
$ alias yt="youtube-dl -f 'bestvideo[ext=mp4][height<=1200]+bestaudio[ext=m4a]' -o '%(title)s'"
Youtube-dl Tutorial With Examples
Here, I have compiled most commonly used Youtube-dl commands to download a video or playlist from YouTube.
@vaimalaviya1233
vaimalaviya1233 / begin(C++).md
Created February 12, 2023 02:54 — forked from johnmcfarlane/begin(C++).md
Resources for C++ beginners