๐
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
| // Set console.log to log to a file, for easy debugging of large amounts of data; | |
| // https://stackoverflow.com/a/33898010/6456163 | |
| const fs = require('fs'); | |
| const util = require('util'); | |
| const logFile = fs.createWriteStream('console.log', { flags: 'w' }); | |
| var logStdout = process.stdout; | |
| console.log = function () { | |
| logFile.write(util.format.apply(null, arguments) + '\n'); | |
| logStdout.write(util.format.apply(null, arguments) + '\n'); | |
| } |
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
| did:3:kjzl6cwe1jw1496p6mu2si9t1s6q1uyyez90t4irl7l2hng5rpfh3prchm18xk2 |
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
| @keyframes static { | |
| 0% { | |
| transform: translateX(-1000px); | |
| } | |
| 33% { | |
| transform: translateY(-1000px); | |
| } | |
| 66% { |
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
| /** Modified from https://stackoverflow.com/a/26917987/6456163 */ | |
| String.prototype.parseFunction = function () { | |
| /** Removes inline comments, courtesy of https://www.regextester.com/93742 */ | |
| const strippedOfComments = this.replace(/[^:]\/\/.*/g, ''); | |
| const funcReg = /function *\(([^()]*)\)[ \n\t]*{(.*)}/gmi; | |
| const match = funcReg.exec(strippedOfComments.replace(/(\n|\t)/g, '')); | |
| // If the passed string is somehow not a function | |
| if (!match) return null; |
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
| curl https://raw.githubusercontent.com/TheSpeedX/SOCKS-List/master/http.txt -o proxyList.txt |
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 | |
| git fetch --all | |
| git reset --hard origin/master |
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
| alias cat='_cat(){ echo "$(<$1)";}; _cat' |
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 apt-get update | |
| sudo apt-get install make gcc linux-headers-$(uname -r) build-essential git dkms | |
| git clone https://github.com/lwfinger/rtl8188eu.git | |
| cd rtl8188eu | |
| make all | |
| sudo make install |
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 baseURL = (url) => url.split("//")[1].split("/")[0]; |
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 | |
| export $(sed 's/#.*//g' .env | xargs) |