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 -y git tor tmux rubygems

cd
git clone https://github.com/j4imefoo/nokyc
cd nokyc
pip install -r requirements.txt

# create nokycconfig.ini
cat << EOF > nokyc/nokycconfig.ini
[DEFAULT]
# Local port where tor is running. 9050 for tor daemon, 9150 for tor browser
TOR_PORT = 9050
# Payment methods to avoid. In lower case.
avoid_methods = ["ripple", "litecoin", "ethereum", "cardano", "binance smart chain (bsc)", "amazon fr giftcard"]
EOF

# 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
cat << EOF > ~/.config/tmuxinator/nokyceur.yml
name: nokyc
root: ~/nokyc/

windows:
  - nokyc:
      layout: even-vertical
      panes:
      - selleur:
        - while true; do ./nokyc.py -f eur -t sell -d 5; sleep 600; done
      - sellgbp:
        - while true; do ./nokyc.py -f gbp -t sell -d 5; sleep 600; done
      - buyeur:
        - while true; do ./nokyc.py -f eur -t buy -d 5; sleep 600; done
EOF

Start

bash
mux s nokyc

Exit window

CTRL+b -> & -> y