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
const domains = [ | |
`sci-hub.ws`, | |
`sci-hub.ac`, | |
`sci-hub.biz`, | |
`sci-hub.gq`, | |
`sci-hub.ga`, | |
`sci-hub.io`, | |
`sci-hub.nu`, | |
`sci-hub.name`, | |
`sci-hub.is`, |
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* generateIds() { | |
let i = 0; | |
while (true) { yield i; i++ } | |
} | |
const generator = generateIds(); | |
const getId = () => { return Object.freeze(generator.next().value) } | |
const typesList = [ |
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
/*index-begin-hide-tabs*/ | |
#TabsToolbar { | |
visibility: collapse !important; | |
} | |
/*index-end-hide-tabs*/ | |
/*index-begin-hide-sidebar-title*/ | |
#sidebar-header { | |
visibility: collapse !important; | |
} |
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
{ | |
"Single quote mark": { | |
"prefix": ["sq"], | |
"body": ["''"], | |
"description": "Single quotatioms marks" | |
}, | |
"Double quote mark": { | |
"prefix": ["dq"], | |
"body": ["\"\""], | |
"description": "Single quotatioms marks" |
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
:root { | |
--colorA: #ecff6b; | |
--colorB: #6affda; | |
--colorC: #b4b4b4; | |
--colorD: #5ceaff; | |
--colorE: #514350; | |
--colorF: #281f1a; | |
--colorG: green; | |
--tab-height: 30px; | |
--font-size: 11px; |
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
PROFILE_DIR=~/.mozilla/firefox/$( ls -tr ~/.mozilla/firefox/ | grep -v profiles.ini | tail -1 ) | |
if [ ! -d "${PROFILE_DIR}"/chrome ] ; then | |
mkdir -p "${PROFILE_DIR}"/chrome | |
fi | |
STYLE="#TabsToolbar { visibility: collapse !important; }" | |
echo ${STYLE} >> "${PROFILE_DIR}"/chrome/userChrome.css |
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
const filter = "the text by which messages will be filtered" | |
const fileName = "file.json" | |
function stripHtml(html){ | |
const tmp = document.createElement("DIV") | |
tmp.innerHTML = html | |
return tmp.textContent || tmp.innerText || "" | |
} | |
function saveAs(data, filename){ |
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
// Load extension with manifest, and click on the icon that appears on browser panel | |
// And don't forget to load random pic to extension folder and name it "icon.png" | |
// | |
const endpoint = "https://prnt.sc" | |
browser.browserAction.onClicked.addListener(() => { | |
const rndId = (length) => { | |
const characters = 'abcdefghijklmnopqrstuvwxyz0123456789' | |
const charactersLength = characters.length | |
const getRndChar = function() { |
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
// bash | |
EMOJIS=(โ โ โ โ โ โ โ โ โ โ โ โ โ โฃ โฅ โฆ โจ โป โฟ โ โ โก โช โซ โฝ โพ โ โ โ โ โช โฒ โณ โต โบ โฝ โ โ โ โ โ โ โ โ โ โ โ โจ โณ โด โ โ โ โ โ โ โ โ โค โ โ โ โก โฐ โคด โคต โฌ โฌ โฌ โฌ โฌ โญ โญ ใฐ ใฝ ใ ใ ๐ ๐ ๐ ฐ ๐ ฑ ๐ พ ๐ ฟ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐จ ๐ณ ๐ฉ ๐ช ๐ช ๐ธ ๐ซ ๐ท ๐ฌ ๐ง ๐ฎ ๐น ๐ฏ ๐ต ๐ฐ ๐ท ๐ท ๐บ ๐บ ๐ธ ๐ ๐ ๐ ๐ฏ ๐ฒ ๐ณ ๐ด ๐ต ๐ถ ๐ท ๐ธ ๐น ๐บ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ฐ ๐ฑ ๐ด ๐ต ๐ท ๐ธ ๐น ๐บ ๐ป ๐ผ ๐ฝ ๐พ ๐ฟ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ก ๐ข ๐ฃ ๐ค ๐ฅ ๐ฆ ๐ง ๐จ ๐ฉ ๐ช ๐ซ ๐ฌ ๐ญ ๐ฎ ๐ฏ ๐ฐ ๐ฑ ๐ฒ ๐ณ ๐ด ๐ต ๐ถ ๐ท ๐ธ ๐น ๐บ ๐ป ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ก ๐ข ๐ฃ ๐ค ๐ฅ ๐ฆ ๐ง ๐จ ๐ฉ ๐ช ๐ซ ๐ฌ ๐ญ ๐ฎ ๐ฏ ๐ฐ ๐ฑ ๐ฒ ๐ณ ๐ด ๐ต ๐ถ ๐ท ๐ธ ๐น ๐บ ๐ป ๐ผ ๐ฝ ๐พ ๐ฟ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ก ๐ข ๐ฃ ๐ฅ ๐ฆ ๐ง ๐จ ๐ฉ ๐ช ๐ซ ๐ฌ ๐ญ ๐ฎ ๐ฏ ๐ฐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ก ๐ข ๐ฃ ๐ค ๐ฅ ๐ฆ ๐ง ๐จ ๐ฉ ๐ซ ๐ฌ ๐ญ ๐ฎ ๐ฏ ๐ฐ ๐ฑ ๐ฒ ๐ณ ๐ด ๐ต ๐ถ ๐ท ๐ธ ๐น ๐บ ๐ป ๐ผ ๐ฝ ๐พ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ก ๐ข ๐ฃ ๐ค ๐ฆ ๐ง ๐จ ๐ฉ ๐ช ๐ซ ๐ฎ ๐ฏ ๐ฐ ๐ฑ ๐ฒ ๐ณ ๐ด ๐ต ๐ถ ๐ท ๐ธ ๐น ๐บ ๐ป ๐ผ ๐ฝ ๐พ ๐ค ๐ฟ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ก ๐ข ๐ฃ ๐ค ๐ฅ ๐ฆ ๐ง ๐จ ๐ฉ ๐ช ๐ซ ๐ฌ ๐ฎ ๐ฏ ๐ฐ ๐ฑ ๐ฒ ๐ณ ๐ด ๐ต ๐ธ ๐น ๐บ ๐ป ๐ผ ๐ฝ ๐พ ๐ฟ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ก ๐ข ๐ฃ ๐ค ๐ฅ ๐ฆ |
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
#!/bin/bash | |
# Copy to /usr/bin and don't forget to make the script executable | |
# Usage: adb-auto-connect <adb_port> ("5555" if empty) | |
IP_TEMPLATE=$(ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}' | grep -Eo '([0-9]*\.){3}' | grep -v '127.0.0') | |
NETWORK_IP_WITH_MASK="${IP_TEMPLATE}0/24" | |
printf "\e[32mStarting scan \e[0m${NETWORK_IP_WITH_MASK}\n" | |
AVAILABLE_IPS=($(nmap -sn ${NETWORK_IP_WITH_MASK} | grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}")) | |
printf '\e[32mAvailable devices in network: \e[0m\n' |