If you don't know anything about JSON, please, spend some time on learning JSON structure.
Recommended sources:
| #!/bin/bash | |
| MESSAGE="0" | |
| VERSION="0" | |
| DRAFT="false" | |
| PRE="false" | |
| BRANCH="master" | |
| GITHUB_ACCESS_TOKEN="<YOUR_ACCESS_TOKEN>" | |
| # get repon name and owner |
| # Start shift-checker every minute | |
| * * * * * php ~/shift-checker-m/checkdelegate.php >> ~/shift-checker-m/logs/check | |
| # Start Testnet shift-checker every minute | |
| * * * * * php ~/shift-checker-t/checkdelegate.php >> ~/shift-checker-t/logs/check | |
| # Clear shift-checker logs | |
| @daily forever cleanlogs | |
| # Updating MTProto config |
| # INSTALL DOCKER | |
| sudo apt update && sudo apt upgrade | |
| sudo apt install linux-image-extra-$(uname -r) linux-image-extra-virtual | |
| sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
| sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' | |
| sudo apt update && apt-cache policy docker-engine | |
| sudo apt install -y docker-engine | |
| sudo usermod -aG docker $(whoami) | |
| # INSTALL MTPROTO PROXY SERVER |
| # http://fredericiana.com/2014/11/14/settimeout-python-delay/ | |
| # utils.py | |
| import threading | |
| from functools import wraps | |
| def delay(delay=0.): | |
| """ | |
| Decorator delaying the execution of a function for a while. |
| python -m http.server 9090 |
| """ | |
| MIT License | |
| Copyright (c) 2018 Mx (Shift Project delegate / 4446910057799968777S) | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |
If you don't know anything about JSON, please, spend some time on learning JSON structure.
Recommended sources:
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
|---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
| chrontab -e | |
| # Start GoGreen Bot every 6 hours | |
| 0 */6 * * * python3 ~/go-green/bot.py >> ~/go-green/bot.log 2>&1 | |
| # Start GoGreen Bot every 1 minute without overlapse | |
| * * * * * /usr/bin/pgrep -f ~/go-green/bot.py >> ~/go-green/bot.log 2>&1 || python3 ~/go-green/bot.py >> ~/go-green/bot.log 2>&1 |
| <!DOCTYPE html> | |
| <!--[if lt IE 9 ]><html class="ie ie-lt9 no-js" lang="en"><![endif]--> | |
| <!--[if IE 9 ]><html class="ie ie9 no-js" lang="en"><![endif]--> | |
| <!--[if gt IE 9 | !IE]><!--> | |
| <html class="no-js fixed" lang="en"> | |
| <!--<![endif]--> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |