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
Skillbox | |
Нетология | |
Шаг | |
Учи.ру | |
Фоксфорд | |
Яндекс практикум | |
Синергия | |
Contented | |
Coursera | |
Easy code |
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
<Root> | |
<DefaultMacro> | |
<Major></Major> | |
<Description>Write the long dash | |
</Description> | |
<Comment>DASH | |
</Comment> | |
<GUIOption> | |
<RepeatType>0</RepeatType> | |
</GUIOption> |
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
A 4 | |
B 5 | |
C 6 | |
D 7 | |
E 8 | |
F 9 | |
G 10 | |
H 11 | |
I 12 | |
J 13 |
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
#!/bin/bash | |
# CONFIG | |
SHIFT_DIRECTORY=~/shift-lisk | |
# EXPORT | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export LANGUAGE=en_US.UTF-8 |
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
#!/usr/bin/env python3 | |
import argparse, glob, json, re, subprocess, urllib.request, os, sys | |
class version_number: | |
major=0 | |
minor=0 | |
release=0 |
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
#!/bin/bash | |
MESSAGE="0" | |
VERSION="0" | |
DRAFT="false" | |
PRE="false" | |
BRANCH="master" | |
GITHUB_ACCESS_TOKEN="<YOUR_ACCESS_TOKEN>" | |
# get repon name and owner |
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
# 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 |
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
# 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 |
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
# 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. |
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
python -m http.server 9090 |
NewerOlder