$ ./zenbot.sh trade gdax.eth-USD --trend_ema 20 -period 7m --max_slippage_pct 0.48 --poll_trades 6000 --order_poll_time 6000 --order_adjust_time 6000 --oversold_rsi_periods=1000 --oversold_rsi=1000 --rsi_periods=1100 --neutral_rate=0.1 --max_sell_loss_pct=0.85 --max_buy_loss_pct=5 --buy_pct=100 --sell_pct=100 --selector gdax.eth-usd --markup_sell_pct 0.25 --markdown_buy_pct 0.00 --reset-profit
This file contains 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
git config --global pager.log false | |
git config --global pager.branch false | |
git config --global alias.co checkout | |
git config --global alias.br branch | |
git config --global alias.ci commit | |
git config --global alias.st status | |
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
This file contains 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
# tar before encrypting | |
tar -cf archive.tar -C /path/to/directory file1 file2 | |
# encrypt | |
openssl enc -aes-256-cbc -salt -in <input file> -out <output file> | |
# decrypt | |
openssl enc -d -aes-256-cbc -in <encrypted file> -out <decrypted file> | |
This file contains 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
pragma solidity ^0.4.17; | |
contract Auction { | |
// Data | |
//Structure to hold details of the item | |
struct Item { | |
uint itemId; // id of the item | |
uint[] itemTokens; //tokens bid in favor of the item | |
} |
This file contains 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
let session = await diffusion.connect({ | |
host: <host>, | |
principal: <admin username>, | |
credentials: <admin password> | |
}); | |
let authenticator = { | |
authenticate(principal, credentials, sessionProperties, proposedProperties, callback) { | |
console.log('Auth:', principal, proposedProperties); | |
This file contains 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
# 1. Create an SSH Key. If you already have one (for sure you have) skip this step. | |
# Use the ssh-keygen command to create an SSH key. Accept all the defaults by pressing ENTER at every prompt. You’ll want to leave the passphrase empty. | |
ssh-keygen | |
# 2. Copy the SSH Public Key to the Remote Host | |
ssh-copy-id user_for_remote_server@remote_server |
This file contains 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
## Problem | |
When login in, the shell prints: | |
``` | |
manpath: can't set the locale; make sure $LC_* and $LANG are correct | |
``` | |
## Solution | |
``` | |
sudo locale-gen "en_US.UTF-8" | |
sudo dpkg-reconfigure locales |
This file contains 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
## Problem | |
When login in, the shell prints: | |
``` | |
manpath: can't set the locale; make sure $LC_* and $LANG are correct | |
``` | |
## Solution | |
``` | |
sudo locale-gen "en_US.UTF-8" | |
sudo dpkg-reconfigure locales |
NewerOlder