- Create your bot with botfather
- Make you bot an admin of your channel
- Go to https://web.telegram.org
- Click on your channel
- Look at the URL and find the part that looks like
c12112121212_17878787878787878 - Remove the underscore and after
c12112121212
| [Unit] | |
| Description=Shadowsocks Server | |
| After=network.target | |
| [Service] | |
| ExecStart=/usr/local/bin/ssserver -c /etc/shadowsocks/ss-config.json | |
| Restart=on-abort | |
| [Install] | |
| WantedBy=multi-user.target |
c12112121212_17878787878787878c12112121212Caused by Acrobat DC, which installs an add-on that causes the error.
~/Library/Group Containers/UBF8T346G9.Office/User Content/Startup/ExcelSaveAsAdobePDF.xlam| #!/bin/bash | |
| PREFIX="MY CLIENT -" | |
| REPO_PATH='/home/ubuntu/server/client' | |
| ACCEPTABLE_BRANCH="DEV" | |
| COMPOSE_FILE="docker-compose.production.yml" | |
| CLIENT_IMAGE="127.0.0.1:5000/mpc_nginx_client" |
| #!/bin/bash | |
| target_branch="production" | |
| working_tree="PATH_TO_DEPLOY" | |
| while read oldrev newrev refname | |
| do | |
| branch=$(git rev-parse --symbolic --abbrev-ref $refname) | |
| if [ -n "$branch" ] && [ "$target_branch" == "$branch" ]; then | |
Add Add RethinkDB key
source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
Install packages
sudo apt-get update && sudo apt-get install -y git nodejs nodejs-legacy npm rethinkdb android-tools-adb python autoconf automake libtool build-essential ninja-build libzmq3-dev libprotobuf-dev git graphicsmagick yasm stow
| #install oracle java https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get | |
| sudo apt-get install python-software-properties | |
| sudo add-apt-repository ppa:webupd8team/java | |
| sudo apt-get update | |
| sudo apt-get install oracle-java7-installer | |
| #ANDROIDSTUDIO | |
| #necessary for mksdcard | |
| sudo apt-get install lib32stdc++6 |
Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.
| import asyncio | |
| @asyncio.coroutine | |
| def factorial(name, number): | |
| f = 1 | |
| for i in range(2, number + 1): | |
| print("Task %s: Compute factorial(%d)..." % (name, i)) | |
| yield from asyncio.sleep(1) | |
| f *= i |