Below command would create a log.
node --prof app.js
To understand the log you would need to pass it to --prof-process.
| # Sticky Thread Pool would help to execute your block | |
| # by sticking to a particular executor on the pool by | |
| # by index. | |
| require "concurrent" | |
| class StickyThreadPool | |
| attr_accessor :pool |
| #!/bin/bash | |
| printf yyy | sudo apt-get install cmake build-essential libboost-all-dev | |
| git clone https://github.com/feeleep75/nheqminer.git | |
| cd nheqminer/nheqminer | |
| mkdir build | |
| cd build | |
| cmake .. | |
| make |
Run this command to install MG-CLI:
sudo apt-get update && wget https://minergate.com/download/deb-cli -O minergate-cli.deb && sudo dpkg -i minergate-cli.deb
start miner (4 cores for BCN) use this command:
minergate-cli -user <[email protected]> -bcn 4
Add interval to timestamp value
select (<column-name>::timestamp::date + interval '1 week') as inter from <table-name> limit 1;
| #!/usr/bin/phantomjs | |
| // This script will load a dynamic page and gives you the content. | |
| // Args: url -> URL to be downloaded. | |
| var system = require('system'); | |
| if(system.args.length == 1){ | |
| system.stderr.write("Pass URL as argument to the script"); | |
| phantom.exit(1) |