Skip to content

Instantly share code, notes, and snippets.

@Volizik
Volizik / gist:0fdd8536204b7aeb979fce5020983e2d
Last active August 17, 2024 16:05
Reverse engineering apk
apktool d -r [path to apk] -o [path to directory] (decompile apk to dir. -r for decompile only code, and skip resources)
apktool b -d [path to dir of decompiled apk] -o [name for new apk] (build new apk. -d is allowed to debug apk in a future)
d2j-apk-sign.sh [path to new builded apk] (sign new apk)
adb install [path to signed apk]
d2j-dex2jar.sh [path to dex file] (create jar from dex for JD-GUI)
// Connect to adb as sudo
adb shell; su;
@Volizik
Volizik / gist:c1516b38e35cac3580fdab500f5842d8
Last active January 20, 2024 17:33
Usefull linux commands
sudo find / -iname "*.ovpn" (looking for file with .ovpn ext)
scp [email protected]:/path/from/file.ovpn /path/to (copy file by ssh)
adb shell am start -W -a android.intent.action.VIEW -d "https://your-site.com"
https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-20-04
https://qna.habr.com/q/1153302
@Volizik
Volizik / start_ngrok_telegram_bot.sh
Created February 2, 2023 13:46 — forked from obokaman-com/start_ngrok_telegram_bot.sh
A bash script to start Ngrok in background, and send ngrok URL to a Telegram Bot automatically, copying the remote URL to clipboard
#!/usr/bin/env bash
# Start NGROK in background
echo "⚡️ Starting ngrok"
ngrok http 8080 > /dev/null &
# Wait for ngrok to be available
while ! nc -z localhost 4040; do
sleep 1/5 # wait Ngrok to be available
done
@Volizik
Volizik / README.md
Created January 3, 2023 14:17 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

wget -mpEk "url"
@Volizik
Volizik / communication.js
Created November 30, 2021 13:52 — forked from 0xjjpa/communication.js
Basic communication between a Background Page and a Content Script inside a Chrome Extension.
// In Background.js
chrome.tabs.sendMessage(tab.id, {content: "message"}, function(response) {
if(response) {
//We do something
}
});
// In ContentScript.js
chrome.extension.onMessage.addListener(function(request, sender, sendResponse) {
if(request.content) {
@Volizik
Volizik / doubleItems.js
Created July 16, 2021 14:14
Remove double items
function removeDouble(arr) {
const resultArray = []
for (let i = 0, length = arr.length; i < length; i++) {
const arrOfItems = arr.filter(item => item === arr[i]);
if (arrOfItems.length === 1) {
resultArray.push(arr[i])
}
}
return resultArray
}
function checkBrackets(str) {
const bracketsMap = {
'<': '>',
'(': ')',
'[': ']',
'{': '}',
}
const openedBrackets = Object.keys(bracketsMap);
const stack = [];