Skip to content

Instantly share code, notes, and snippets.

View 0D1NTR33's full-sized avatar
💎
Excited by The Open Network

Max Shvedov 0D1NTR33

💎
Excited by The Open Network
View GitHub Profile
<!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">
@0D1NTR33
0D1NTR33 / chrontab
Last active June 17, 2018 00:49 — forked from ziadoz/install.sh
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
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
@0D1NTR33
0D1NTR33 / gist:f8516a04887bcce4cdc08d445e860078
Created June 28, 2018 23:43 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :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:
@0D1NTR33
0D1NTR33 / http-server.py
Last active July 5, 2018 13:48
Simple Python 3 http server
"""
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
@0D1NTR33
0D1NTR33 / python-http-server.sh
Created July 4, 2018 21:28
Minimal http server on Python 3
python -m http.server 9090
@0D1NTR33
0D1NTR33 / setTimeout.py
Created July 5, 2018 11:17
setTimeout in Python
# 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.
@0D1NTR33
0D1NTR33 / MTProto.sh
Last active October 17, 2018 16:07
MTProto Docker Proxy Server
# 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
@0D1NTR33
0D1NTR33 / txt
Created July 21, 2019 18:37
Crontab Backup
# 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
@0D1NTR33
0D1NTR33 / git-release
Created November 16, 2020 20:17 — forked from mcguffin/git-release
Shell script to create GitHub release
#!/bin/bash
MESSAGE="0"
VERSION="0"
DRAFT="false"
PRE="false"
BRANCH="master"
GITHUB_ACCESS_TOKEN="<YOUR_ACCESS_TOKEN>"
# get repon name and owner