sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
| function mapPromises(args, callback, concurrency = 3) { | |
| const { promise, resolve } = Promise.withResolvers(); | |
| const results = []; | |
| let cursor = 0; | |
| function next() { | |
| if (cursor < args.length) { | |
| const index = cursor++; | |
| void callback(...args[index]).then(value => { |
| #!/bin/bash | |
| # IMPORTANT: Make sure your VM's network security rules allows access over TCP Port 80. | |
| # This is required to pass the HTTP challenge. | |
| # Download: curl -o setup.sh <raw URL of this gist> | |
| # Enable execution: sudo chmod +x setup.sh | |
| # Run: ./setup.sh -d "yourdomain.tld" -e "[email protected]" | |
| while getopts d:e: option |
# View public IP
| # source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list | |
| # A list of available STUN server. | |
| stun.l.google.com:19302 | |
| stun1.l.google.com:19302 | |
| stun2.l.google.com:19302 | |
| stun3.l.google.com:19302 | |
| stun4.l.google.com:19302 | |
| stun01.sipphone.com | |
| stun.ekiga.net |