Generate SSL certificate and key
$ openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout ~/.ssh/vsftpd.key -out ~/.ssh/vsftpd.crt
Add the generated certificate to the Keychain Access app
| var lzma = require('lzma'); | |
| var data = { | |
| 'address': 'XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX', | |
| 'amount': 100, | |
| 'message': 'This is the long description that will be shown to the user once the user opens the requested transaction.\nThis is the long description that will be shown to the user once the user opens the requested transaction.\nThis is the long description that will be shown to the user once the user opens the requested transaction.\nThis is the long description that will be shown to the user once the user opens the requested transaction.', | |
| 'data': 'Data in the extended transaction', | |
| 'flags': 15 | |
| }; | |
| var Base64 = { |
| #!/bin/bash | |
| INTERFACE=Wi-Fi | |
| networksetup -setsocksfirewallproxy $INTERFACE 127.0.0.1 9050 off | |
| networksetup -setsocksfirewallproxystate $INTERFACE on | |
| tor | |
| networksetup -setsocksfirewallproxystate $INTERFACE off |
| # systemd unit for Phusion Passenger | |
| # /lib/systemd/system/peatio.service | |
| [Unit] | |
| Description=Peatio Service | |
| After=network.target | |
| StartLimitInterval=0 | |
| [Service] | |
| Type=forking |
| # systemd unit for Puma server | |
| # /lib/systemd/system/peatio.service | |
| [Unit] | |
| Description=Peatio Service | |
| After=network.target mysqld.service | |
| StartLimitInterval=0 | |
| [Service] | |
| Type=forking |
| [Unit] | |
| Description=Peatio Service | |
| After=network.target mysqld.service | |
| StartLimitInterval=0 | |
| [Service] | |
| Type=simple | |
| User=deploy | |
| Group=deploy |
| [Unit] | |
| Description=Nimiq JSONRPC daemon | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| User=deploy | |
| Group=deploy | |
| WorkingDirectory=/home/deploy/nimiq-core | |
| ExecStart=/usr/bin/node /home/deploy/nimiq-core/clients/nodejs/index.js --config=settings.conf |
| server=1 | |
| daemon=1 | |
| #debug=mempool | |
| debug=rpc | |
| # If run on the test network instead of the real bitcoin network | |
| # testnet=1 | |
| # You must set rpcuser and rpcpassword to secure the JSON-RPC api | |
| # Please make rpcpassword to something secure, `5gKAgrJv8CQr2CGUhjVbBFLSj29HnE6YGXvfykHJzS3k` for example. |
| [Unit] | |
| Description=The Ethereum Blockchain Command Line Interface | |
| After=network.target | |
| [Service] | |
| User=deploy | |
| Group=deploy | |
| ExecStart=/usr/bin/geth --rpc --syncmode "light" --cache=512 --rpcport=8545 --rpcapi eth,personal,net,web3,db --datadir /home/deploy/.ethereum | |
| [Install] |
| [Unit] | |
| Description=Twitter Tip Bot daemon | |
| After=network.target nimiqd.service | |
| [Service] | |
| Type=simple | |
| User=myuser | |
| Group=myuser | |
| Environment="TWITTER_USERNAME=twitter_username" |