Looks familiar?
Worry no more! Use extract and prosper!
| # 1) Create your private key (any password will do, we remove it below) | |
| $ cd ~/.ssh | |
| $ openssl genrsa -des3 -out server.orig.key 2048 | |
| # 2) Remove the password | |
| $ openssl rsa -in server.orig.key -out server.key |
| # Basic Dante Socks5 Setup, Debian | |
| apt-get update | |
| apt-get install make gcc | |
| cd /usr/src | |
| # get newest from http://www.inet.no/dante/download.html | |
| wget http://www.inet.no/dante/files/dante-1.4.1.tar.gz |
| // Since `overlapArea` function is monotonic increasing, we can perform a | |
| // simple bisection search to find the distance that leads to an overlap | |
| // area within epsilon of the desired overlap. | |
| function distanceForOverlapArea(r1, r2, desiredOverlap) { | |
| // Ensure r1 <= r2 | |
| if (r1 > r2) { | |
| var temp = r2; | |
| r2 = r1; | |
| r1 = temp; | |
| } |