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
| ssh root@XXX.XXX.XXX.XXX -fNL 12345:localhost:2375 | |
| # Forwards local port 12345 to remote port 2375 |
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
| sequelize.transaction({ | |
| isolationLevel: Sequelize.Transaction.ISOLATION_LEVELS.SERIALIZABLE, | |
| //autocommit: false, ??? | |
| }, function (t) { | |
| return Config.findAll({ | |
| where: { assigned: false }, | |
| transaction: t, | |
| //lock: t.LOCK.UPDATE, ??? | |
| //lock: t.LOCK.SHARE, ??? | |
| //lock: t.LOCK.KEY_SHARE ??? |
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
| sudo fallocate -l 1G /swap | |
| sudo mkswap /swap | |
| sudo chmod 600 /swap | |
| sudo swapon /swap |
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
| #!/bin/bash | |
| WEB_IP=$1 | |
| rsync --archive --progress --compress ./*.service core@$WEB_IP:/home/core/ | |
| ssh core@$WEB_IP sudo cp /home/core/*.service /etc/systemd/system/ | |
| ssh core@$WEB_IP sudo systemctl daemon-reload |
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
| find ./src -name '*.js' | xargs | pbcopy | |
| jscodeshift -t ~/Projects/temp/codemod-RN24-to-RN25/transform.js <PASTE> |
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
| # Run detatched client in the background | |
| docker run -it --rm -d -p 8545:8545 -p 30303:30303 -v /root/.ethereum:/root/.ethereum --name geth ethereum/client-go | |
| # Connect to client's console | |
| docker run -it --rm -v /root/.ethereum:/root/.ethereum ethereum/client-go attach | |
| # Testing contracts on testnet | |
| docker run -it --rm -v /root/testnet3301/.ethash:/root/.ethash -v /root/script.js:/root/script.js ethereum/client-go --maxpeers 0 --nodiscover --networkid 3301 js /root/script.js 2>> geth.log |
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
| prettier --write --single-quote --trailing-comma es5 "src/**/*.js" |
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
| https://whatsonchain.com/tx/05757b42770da5ee5835a9156f4e5ed9466b5d320117e222cde9a8661bfc56a8 |
OlderNewer