For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo find / -iname "*.ovpn" (looking for file with .ovpn ext) | |
| scp [email protected]:/path/from/file.ovpn /path/to (copy file by ssh) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| adb shell am start -W -a android.intent.action.VIEW -d "https://your-site.com" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-20-04 | |
| https://qna.habr.com/q/1153302 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget -mpEk "url" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function checkBrackets(str) { | |
| const bracketsMap = { | |
| '<': '>', | |
| '(': ')', | |
| '[': ']', | |
| '{': '}', | |
| } | |
| const openedBrackets = Object.keys(bracketsMap); | |
| const stack = []; | |
NewerOlder