Skip to content

Instantly share code, notes, and snippets.

View gim-'s full-sized avatar
🤔

Andrejs Mivreniks gim-

🤔
View GitHub Profile
@gim-
gim- / revanced-patch.sh
Last active April 21, 2024 10:53
Script to patch an APK using ReVanced CLI tool
#!/bin/sh
# This script automatically pulls revanced-cli, revanced-patches and revanced-integrations source code.
# Then builds and runs revanced-cli with necessary dependencies for APK patching.
#
# Requirements: git, openjdk 11, openjdk 17 (to build integrations)
#
# Usage: ./revanced-patch.sh your-app.apk
# You can also provide any additional options supported by revanced-cli
# See usage docs for more details https://github.com/ReVanced/revanced-cli/blob/main/docs/1_usage.md
@gim-
gim- / InstagramUnfollowScript.java
Last active April 11, 2024 11:05
Unfollows an account from all non-followers on Instagram. Java 8 or higher.
/*
* Copyright (c) 2017 Andrejs Mivreniks
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
@gim-
gim- / subdl.lua
Last active February 25, 2017 10:44 — forked from selsta/autosub.lua
Automatically download subtitles in mpv using subdl.
-- requires subdl: https://github.com/akexakex/subdl
-- default keybinding: b
-- add the following to your input.conf to change the default keybinding:
-- keyname script_binding subdl_load_subs
local utils = require 'mp.utils'
local subdl = "/usr/bin/subdl" -- use 'which subdl' to find the real path
function subdl_load()
mp.msg.info("Searching subtitles...")
mp.osd_message("Searching subtitles...")