- https://github.com/UNOMP/unified-node-open-mining-portal
- Platform:
- Main: NodeJS
- Stratum: NodeJS (node-merged-pool)
- Web: NodeJS
- Database: Redis
- Pros:
- A lot of focus on security and attack guard features are implemented by default.
- Scalable and efficient pool manager.
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
String.prototype.trunc = function(n) { | |
if (this.length <= n) { | |
return this; | |
} | |
var truncated = this.substr(0, n); | |
if (this.charAt(n) === ' ') { | |
return truncated; | |
} | |
return truncated.substr(0, truncated.lastIndexOf(' ')); | |
}; |
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
{ | |
"binary_file_patterns": | |
[ | |
"*.doc", | |
"*.docx", | |
"*.eot", | |
"*.gif", | |
"*.gzip", | |
"*.ico", | |
"*.jar", |
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
git status -u --porcelain | egrep -h '^[^D]{2}.*\.js$' | cut -c 4- | xargs eslint |
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
# Permissions 0644 for '/root/.ssh/id_rsa' are too open. | |
chmod 400 ~/.ssh/id_rsa | |
# Update apt-get | |
sudo apt-get update | |
# Enable firewall | |
sudo apt-get install ufw | |
sudo ufw disable | |
sudo ufw allow 22 | |
sudo ufw allow 80 |