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
//author: http://github.com/wongoo | |
//date: 20190717 | |
package rsautil | |
import ( | |
"bytes" | |
"crypto" | |
"crypto/rand" | |
"crypto/rsa" |
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
function arrayFrom(a) { | |
return Array.from(arguments).slice(1); | |
} | |
function arraySlice(a) { | |
return Array.prototype.slice.call(arguments, 1); | |
} | |
function argsRest(a, ...args) { | |
return args; |
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
# Install minimal development tools | |
apt-get install build-essential | |
# Get python from official python ftp | |
cd /tmp | |
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2 | |
tar jxvf Python-2.7.3.tar.bz2 | |
cd Python-2.7.3/ | |
# Configure, compile and install python to /opt/py2.7 |