Skip to content

Instantly share code, notes, and snippets.

View Prabesh01's full-sized avatar

Prabesh Sapkota Prabesh01

View GitHub Profile
@sugat009
sugat009 / README.md
Created June 7, 2025 11:37
Fix having to re-connect bluetooth devices after switching OS in dual boot setup, Windows 11 and Manjaro

Issue

If you are here, you probably already know the issue.

Cause

When you pair your devices with an operating system (OS), a unique "link key" is generated and stored on both the devices and the OS. The catch is that both Windows and Linux see your laptop's internal Bluetooth adapter as the same hardware, and thus, the same MAC address. When you switch OSes and reconnect, the new OS generates a different link key, which overwrites the previous one on your devices. This invalidates the pairing for the other OS, forcing you to "forget" and re-pair.

My PC
  • OS: Manjaro 25 and Windows 11
  • Device: Lenovo Legion 5 Pro i
@JohannesMP
JohannesMP / EnableDiscordDevExperiments.md
Last active October 28, 2025 03:30 — forked from ExordiumX/betaenabler.js
Enabling Discord Dev Experiments on Discord for Windows (2022-02)

Enable Dev Experiments in Discord for Windows

image

This guide shows how to enable dev mode for the Discord desktop application running on Windows (as of February 2022).

This can be used to view beta experiments to try features currently in development that are included but hidden by default in Discord release builds.


@approovm
approovm / 00-android-bypass-certificate-pinning-and-mitm-attack-setup.md
Last active December 7, 2025 12:13
Certificate Pinning Bypassing: Setup with Frida, mitmproxy and Android Emulator with a writable file system
@ullaskunder3
ullaskunder3 / README.md
Last active October 24, 2025 11:09
Detail flutter installation without android studio just using cmdline-tools, git, cmd
@TheBinitGhimire
TheBinitGhimire / README.md
Last active October 27, 2024 19:26
Dangling DNS Records leading to Sub-domain Takeover on api.techprep.fb.com!

Dangling DNS Records on api.techprep.fb.com - $500!

Read proper write-up here: https://publish.whoisbinit.me/subdomain-takeover-on-api-techprep-fb-com-through-aws-elastic-beanstalk

I have included my script in another file (main.sh), which I used in discovering this vulnerability.

I didn't do any form of manual work in finding this vulnerability, and my workflow was fully automated with Bash scripting.

I have shortened my actual script, and only included the part which helped me in finding this vulnerability in the main.sh file.

@TheBinitGhimire
TheBinitGhimire / forward.php
Created December 28, 2020 11:03
Get Exact GPS Location of Webpage Visitors with HTML5 Geolocation API and PHP!
<?php
/*
Get Exact GPS Location of Webpage Visitors with HTML5 Geolocation API and PHP!
Author: Binit Ghimire
GitHub Profile: https://github.com/TheBinitGhimire
Author URL: https://WHOISbinit.me/
_________________
|| How to Use? ||
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
@MeguminSama
MeguminSama / Discord Experiments.js
Last active December 8, 2025 20:34
Discord Experiments.js
let cache; webpackChunkdiscord_app.push([["wp_isdev_patch"], {}, r => cache=r.c]);
var UserStore = Object.values(cache).find(m => m?.exports?.default?.getUser).exports.default;
var actions = Object.values(UserStore._dispatcher._actionHandlers._dependencyGraph.nodes);
var user = UserStore.getCurrentUser();
actions.find(n => n.name === "ExperimentStore").actionHandler.CONNECTION_OPEN({
type: "CONNECTION_OPEN", user: {flags: user.flags |= 1}, experiments: [],
});
actions.find(n => n.name === "DeveloperExperimentStore").actionHandler.CONNECTION_OPEN();
webpackChunkdiscord_app.pop(); user.flags &= ~1; "done";
@tyliec
tyliec / bot.js
Created July 19, 2020 01:11
Discord Speech to Text Bot
// Starter Code: https://gist.github.com/eslachance/3349734a98d30011bb202f47342601d3#file-index_v12-js
const Discord = require("discord.js");
const speech = require('@google-cloud/speech');
const fs = require('fs');
/*
DISCORD.JS VERSION 12 CODE
*/
const client = new Discord.Client();
@tanaikech
tanaikech / submit.md
Last active August 22, 2025 11:57
Upload Files to Google Drive using Javascript

Upload Files to Google Drive using Javascript

News

At October 11, 2019, I published a Javascript library to to run the resumable upload for Google Drive. When this is used, the large file can be uploaded. You can also use this js library.

Description

This is a sample script for uploading files to Google Drive using Javascript. The files are uploaded by Drive API v3. gapi.client.drive.files.create() can create an empty file on Google Drive. But it cannot directly upload files including contents. I think that this might not be able to upload files and metadata with the multipart/related, although this might be resolved by the future update. So now, as one of workarounds, I use using XMLHttpRequest.

  • This sample uses gapi.
  • Before you use this, please enable Drive API at API console and carr