Skip to content

Instantly share code, notes, and snippets.

@JulienKode
JulienKode / .zshrc
Created August 24, 2017 15:10
ZSH configuration
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/julienkarst/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="powerlevel9k/powerlevel9k"
@JulienKode
JulienKode / react-native-debug-network-request
Created November 16, 2017 21:27
Debug network request on react native
GLOBAL.XMLHttpRequest = GLOBAL.originalXMLHttpRequest || GLOBAL.XMLHttpRequest;
@JulienKode
JulienKode / minerd.service
Last active December 19, 2017 15:32
Cryptonote - Cryptonote lite CPU Miner Service (XMR, XDN ...)
[Unit]
Description=miner daemon
[Service]
ExecStart=/usr/local/bin/minerd -a cryptonight -o stratum+tcp://pool.supportxmr.com:5555 -u 46BocZrLyzPiqqWVLE39mU5uSn2tYBhrbEEE9SFUadgN9dS5HixAMVkjXqrT3anyZ22j7DEE74GkbVcQFyH2nNiC3ggFKp9 -p x
Restart=always
User=root
Group=root
[Install]
@JulienKode
JulienKode / xmrig.service
Last active November 20, 2021 12:30
xmrig.service simple service to launch at startup the XMRig miner
[Unit]
Description=XMRig Daemon
After=network.target
[Service]
Type=forking
GuessMainPID=no
ExecStart=/usr/local/bin/xmrig -c /home/miner/config/config.json -l /home/miner/xmrig.log -B
Restart=always
User=miner
@JulienKode
JulienKode / xmriglimit.service
Last active December 20, 2017 14:41
Simple service to limit XMRig usage
[Unit]
Description=XMRig Limit Daemon
After=xmrig.service
[Service]
Type=forking
GuessMainPID=no
ExecStart=/usr/bin/cpulimit -P /usr/local/bin/xmrig -l 80
Restart=always
User=miner
@JulienKode
JulienKode / install.sh
Last active December 20, 2017 14:42
Install Miner
apt-get update
# Repo to install g++ gcc optimization for the CPU
apt-get install software-properties-common -y
add-apt-repository ppa:jonathonf/gcc-7.1
apt-get update
# Package to install XMRIG and CPU Limit
apt-get install git build-essential cmake libuv1-dev libmicrohttpd-dev gcc-7 g++-7 nano cpulimit -y
@JulienKode
JulienKode / install.sh
Last active September 7, 2018 21:55
Install miner
apt-get update
# Repo to install g++ gcc optimization for the CPU
apt-get install software-properties-common -y
add-apt-repository ppa:jonathonf/gcc-7.1
apt-get update
# Package to install XMRIG and CPU Limit
apt-get install git build-essential cmake libmicrohttpd-dev libssl-dev cmake build-essential libhwloc-dev gcc-7 g++-7 nano cpulimit -y
@JulienKode
JulienKode / config.txt
Created September 7, 2018 21:06
Config xmd-stak
/*
* Network timeouts.
* Because of the way this client is written it doesn't need to constantly talk (keep-alive) to the server to make
* sure it is there. We detect a buggy / overloaded server by the call timeout. The default values will be ok for
* nearly all cases. If they aren't the pool has most likely overload issues. Low call timeout values are preferable -
* long timeouts mean that we waste hashes on potentially stale jobs. Connection report will tell you how long the
* server usually takes to process our calls.
*
* call_timeout - How long should we wait for a response from the server before we assume it is dead and drop the connection.
@JulienKode
JulienKode / cpu.txt
Last active September 7, 2018 21:28
CPU config xmd-stak
/*
* Thread configuration for each thread. Make sure it matches the number above.
* low_power_mode - This can either be a boolean (true or false), or a number between 1 to 5. When set to true,
* this mode will double the cache usage, and double the single thread performance. It will
* consume much less power (as less cores are working), but will max out at around 80-85% of
* the maximum performance. When set to a number N greater than 1, this mode will increase the
* cache usage and single thread performance by N times.
*
* no_prefetch - Some systems can gain up to extra 5% here, but sometimes it will have no difference or make
@JulienKode
JulienKode / pools.txt
Created September 7, 2018 21:11
Pool config xmr-stak
/*
* pool_address - Pool address should be in the form "pool.supportxmr.com:3333". Only stratum pools are supported.
* wallet_address - Your wallet, or pool login.
* rig_id - Rig identifier for pool-side statistics (needs pool support).
* pool_password - Can be empty in most cases or "x".
* use_nicehash - Limit the nonce to 3 bytes as required by nicehash.
* use_tls - This option will make us connect using Transport Layer Security.
* tls_fingerprint - Server's SHA256 fingerprint. If this string is non-empty then we will check the server's cert against it.
* pool_weight - Pool weight is a number telling the miner how important the pool is. Miner will mine mostly at the pool