Skip to content

Instantly share code, notes, and snippets.

@nnzo
nnzo / fixgembundler.md
Created April 18, 2020 05:47
gem or bundler arn't working after installing rvm? (bundler command not found, gem command not found, gem, rvm)

Have you installed ruby through RVM and gem or bundler aren't working?

Most likely you have forgotten to run source ~/.rvm/scripts/rvm.

If that doesn't work, try source /etc/profile.d/rvm.sh and restart the terminal.

Hope I helped :)

@nnzo
nnzo / ngnixreverseproxyssl
Last active April 30, 2020 13:07
Ngnix Reverse Proxy using let's encrypto SSL
# This file is located at /etc/nginx/sites-enabled/default
# Replace the entire contents of the file with this
server {
listen 9196 default_server;
server_name pool.flame.exchange;
rewrite ^ https://$host$request_uri? permanent;
}
server {
@nnzo
nnzo / scammers.txt
Last active July 15, 2020 09:08
AtomicLemon's Scammer list (scum of the crypto community)
"Claudine Dela cruz"
Telegram: @Claudine (Known Alts: @Webdevmarie)
Facebook: https://www.facebook.com/claudine.delacruz.98096
- Clever scammer, will do literally anything to get what she wants
"Hashthereum"
Telegram: (they have channels, websites etc. just google them)
Website: https://hashthereum.info/
- Also will do whatever he can do to get what he wants, don't trust him with anything
@nnzo
nnzo / parity-slow-sync.md
Last active May 3, 2020 06:27
Very slow parity sync around block 2,340,000 - 2,6000,000 [FIX]

Parity syncing very slow around blocks 2,340,000 - 2,6000,000 - FIX

Chances are you are running parity-2.7.2

If you can, downgrade to parity-2.5.13. As specified here, you can see the reason of parity syncing very slow

You may have to resync your entire db, but in the end it will be more worthwhile than having to wait for 2.7.2 to slowly go through around 300,000 blocks.

@nnzo
nnzo / erc20.sol
Created May 8, 2020 01:37
SimpleERC20
pragma solidity ^0.4.8;
contract ERC20Interface {
// Get the total token supply
function totalSupply() constant returns (uint256 totalSupply);
// Get the account balance of another account with address _owner
function balanceOf(address _owner) constant returns (uint256 balance);
// Send _value amount of tokens to address _to
@nnzo
nnzo / gitstoreuserpass.md
Created May 15, 2020 01:50
git store credentials

git config credential.helper store --global

@nnzo
nnzo / gethlightclients.txt
Last active May 17, 2020 01:52
Geth light client peers list
Run these commands in your geth console
admin.addPeer("enode://3afdfd40713a8b188a94e4c7a9ddc61bc6ef176c3abbb13d1dd35eb367725b95329a7570039044dbffa49c50d4aa65f0a1f99ee68e46b8e2f09100d11d4fc85a@31.17.230.132:30303")
admin.addPeer("enode://7578d1e6d6e256272ae3ff6680d7c2a6b72233231a10f15180a8fcdb2425692c81542a3e7255a804ceda8b081987d007e4e30f9a9e893107b344d7b9b07b11f1@50.250.156.59:30303")
admin.addPeer("enode://4c2b5c5d9503b7f4e76a551c827f19200f7f9ebb62f2cb5078c352de1e8d4d1006efa8fc143f9ccf2c8fd85836198dc1c69729dfa1c54d63f5d1d57fd8781bf8@62.151.178.212:30303")
admin.addPeer("enode://8fcd039bb514ccac1f207d9b23efbea79a1ba9ed559768109b9b3fc9f7f89cfc3a6cd3e11ec1d92a93bdbfe2322e43f3bb3d9519530e8b503c92294116c38c32@108.232.148.241:30303")
admin.addPeer("enode://bfad505cbb2bde72e161a7cff044d66d20ceb85c8a61047b50037881f289bd2dcc064189ade2077daddd5b20fd2fc6dee7208f227ae2a34361bf51751d225e8e@51.15.220.91:30303")
admin.addPeer("enode://1d70e87a2ee28a2762f1b2cd56f1b9134824a84264030539bba297f67a5bc9ec7ae3016b5f900dc59b1c27b4
@nnzo
nnzo / rsyncsheet.txt
Last active May 19, 2020 11:06
rsync
rsync -avzm --stats --safe-links --ignore-existing --dry-run \
--human-readable .ethereum root@IP:.ethereum > /tmp/transfer.log
cat /tmp/transfer.log | \
parallel --will-cite -j 5 rsync -avzm --relative \
--stats --safe-links --ignore-existing \
--human-readable {} root@IP:.ethereum > /tmp/result.log
@nnzo
nnzo / install.md
Created May 28, 2020 22:07
Installation

Install MicroKube in Ubuntu 18.04

Step 1: Install Docker

To install Docker you will need to do those steps with sudo or login as root user with sudo -i

Create a Unix user for holding your application

groupadd app
useradd -d /home/app -s `which bash` -g app -m app
@nnzo
nnzo / 🎧 My music activity over the last 4 weeks
Last active June 28, 2020 09:29
🎧 My music activity
Yxngxr1 |β–ˆβ–ˆβ–ˆ | 14.76% Let's Shake
Sueco the Child |β–ˆβ–ˆβ–Š | 13.97% no sleep in my body
Lil Peep |β–ˆβ–ˆβ–Œ | 12.53% Falling Down - Bonus Track
Young Spool |β–ˆβ–ˆβ– | 10.38% Weekend
$NOT |β–ˆβ– | 6.77% Moon & Stars (feat. Maggie Lindemann)
The Kid LAROI |β–ˆβ–Ž | 6.38% Let Her Go
fun. |β–ˆβ– | 5.41% We Are Young (feat. Janelle MonΓ‘e)
XXXTENTACION |β–ˆ | 5.29% Falling Down - Bonus Track
Maggie Lindemann |β–Š | 3.55% Moon & Stars (feat. Maggie Lindemann)
AzChike |β–Š | 3.53% No Fucks (feat. Sueco The Child and AzChike)