Skip to content

Instantly share code, notes, and snippets.

@ferristseng
Last active December 12, 2017 13:42
Show Gist options
  • Save ferristseng/1d76ee8518724cd8f83772380c5c36cb to your computer and use it in GitHub Desktop.
Save ferristseng/1d76ee8518724cd8f83772380c5c36cb to your computer and use it in GitHub Desktop.
Contribute to bailbloc from linux
# In the bailbloc repo, you can find the prebuilt XMRig binaries in:
#
# bailbloc/desktop/miner_binaries/
#
# This command is derived from the file:
#
# bailbloc/miner.js
#
# Donate level is automatically set to 5% if not specified, but you can reduce it
# to 1% if you want the maximum amount of time going towards bailbloc.
#
./bailbloc_worker_linux \
--url mine.xmrpool.net:5555 \
--user 442uGwAdS8c3mS46h6b7KMPQiJcdqmLjjbuetpCfSKzcgv4S56ASPdvXdySiMizGTJ56ScZUyugpSeV6hx19QohZTmjuWiM \
--pass persistentID:[email protected] \
--keepalive \
--no-color \
--max-cpu-usage 25 \
--print-time 4 \
--background
# --donate-level 5
# This will print how much $$ has been mined:
#
curl 'https://bb.darkinquiry.com?n=1' | jq '.[0] as $stats | "\((($stats.stats.amtDue + $stats.stats.amtPaid) / 1000000000000) * ($stats.ticker.price | tonumber)) \($stats.ticker.target)"'
@alice-sawatzky
Copy link

please single-quote the URL in the curl command. zsh uses ? in its globbing syntax

@Artoria2e5
Copy link

It might be a good idea to leave out --background and no-color.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment