This file contains 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
V2ray Tunnels | |
install v2ray | |
sudo apt install speedtest-cli | |
apt-get update -y && apt-get upgrade -y | |
sudo rm /var/lib/apt/lists/lock | |
sudo rm /var/cache/apt/archives/lock |
This file contains 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 http = require('http'); | |
const {promisify} = require('util'); | |
http.get[promisify.custom] = function getAsync(options) { | |
return new Promise((resolve, reject) => { | |
http.get(options, (response) => { | |
response.end = new Promise((resolve) => response.on('end', resolve)); | |
resolve(response); | |
}).on('error', reject); | |
}); |
This file contains 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
/* | |
FarsiType | |
Version: 1.3.6 | |
http://www.farsitype.ir | |
This script developed to ease typing Farsi (Persian) in web forms where there is no Farsi Keyboard installed on a PC. | |
Works with Internet Explorer, FireFox, Opera and Chrome. | |
For more information and getting the using manual please visit the script website (http://www.farsitype.ir). | |
Copyright 2002-2011 Kaveh Ahmadi (http://www.kavehahmadi.com, email: me@kavehahmadi.com). |
This file contains 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
user nginx; | |
# one(1) worker or equal the number of _real_ cpu cores. 4=4 core cpu | |
worker_processes 4; | |
# renice workers to reduce priority compared to system processes for | |
# machine health. worst case nginx will get ~25% system resources at nice=15 | |
worker_priority -5; |
This file contains 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
### 1: Drop invalid packets ### | |
/sbin/iptables -t mangle -A PREROUTING -m conntrack --ctstate INVALID -j DROP | |
### 2: Drop TCP packets that are new and are not SYN ### | |
/sbin/iptables -t mangle -A PREROUTING -p tcp ! --syn -m conntrack --ctstate NEW -j DROP | |
### 3: Drop SYN packets with suspicious MSS value ### | |
/sbin/iptables -t mangle -A PREROUTING -p tcp -m conntrack --ctstate NEW -m tcpmss ! --mss 536:65535 -j DROP | |
### 4: Block packets with bogus TCP flags ### |
The gist: by having a Promise adopt the state of a forever pending one, you can suspend its then
handlers chain.
Promise.pending = Promise.race.bind(Promise, [])
let cancel
new Promise(function(fulfill, reject) {
cancel = function() {fulfill(Promise.pending())}
setTimeout(fulfill, 1000, 5)
During the Course
#xmacroplay
Exemplo de uso do xmacroplay.
Usage:
sudo apt-get install xmacro
sudo apt-get install vim
wget --output-document=xmacroexample.sh https://goo.gl/Xt9KkU
NewerOlder