mirror of
https://github.com/openoms/bitcoin-tutorials.git
synced 2025-12-19 21:04:20 +01:00
nokyc sample with tmuxinator
This commit is contained in:
51
nokyc/README.md
Normal file
51
nokyc/README.md
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
# Run the nokyc scripts in every 10 minutes in a tmux window
|
||||||
|
|
||||||
|
Using:
|
||||||
|
* https://github.com/j4imefoo/nokyc
|
||||||
|
* https://github.com/tmuxinator/tmuxinator
|
||||||
|
|
||||||
|
|
||||||
|
## Install
|
||||||
|
```
|
||||||
|
sudo apt-get install tmux git rubygems -y
|
||||||
|
|
||||||
|
cd
|
||||||
|
git clone https://github.com/j4imefoo/nokyc
|
||||||
|
cd nokyc
|
||||||
|
pip install -r requirements.txt
|
||||||
|
|
||||||
|
# install https://github.com/tmuxinator/tmuxinator
|
||||||
|
sudo gem install tmuxinator
|
||||||
|
sudo wget https://raw.githubusercontent.com/tmuxinator/tmuxinator/master/completion/tmuxinator.bash -O /etc/bash_completion.d/tmuxinator.bash
|
||||||
|
echo "export EDITOR=$(which nano)" >> ~/.bashrc
|
||||||
|
|
||||||
|
# tmuxinator config
|
||||||
|
echo "\
|
||||||
|
name: nokyc
|
||||||
|
root: ~/
|
||||||
|
|
||||||
|
windows:
|
||||||
|
- nokyc:
|
||||||
|
layout: even-vertical
|
||||||
|
panes:
|
||||||
|
- buyeur:
|
||||||
|
- cd ~/_storage/dev/nokyc/
|
||||||
|
- while ./nokyc.py -f eur -t buy -d 5; do sleep 600; done
|
||||||
|
- buygbp:
|
||||||
|
- cd ~/nokyc
|
||||||
|
- while ./nokyc.py -f gbp -t buy -d 5; do sleep 600; done
|
||||||
|
- sellgbp:
|
||||||
|
- cd ~/nokyc/
|
||||||
|
- while ./nokyc.py -f gbp -t sell -d 5; do sleep 600; done
|
||||||
|
" | tee ~/.config/tmuxinator/nokyc.yml
|
||||||
|
```
|
||||||
|
|
||||||
|
## Start
|
||||||
|
```
|
||||||
|
bash
|
||||||
|
mux s nokyc
|
||||||
|
```
|
||||||
|
## Exit window
|
||||||
|
```
|
||||||
|
CTRL+B -> & , y
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user