A man walking on snow. Enjoying the silence and the sound of his own footsteps.
Original concept: Oguzhan Oguzhantufenk
import requests
headers = {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "en-GB,en-US;q=0.9,en;q=0.8",
"Cache-Control": "no-cache",
"Connection": "keep-alive",Go to the Slack App Management page. Click on "Create New App" and follow the instructions to set up your app.
After creating the app, install it to your workspace. Get OAuth Access Token: Once installed, you'll receive an OAuth access token. This token will be used to authenticate your requests.
| sudo -s | |
| service ecs stop | |
| docker stop ecs-agent | |
| docker rm ecs-agent | |
| mv /var/lib/ecs/data/agent.db{,.bak} | |
| sed -i 's/Prod-BC-ECS-ElasticSearch-Standard-C1/Prod-BC-ECS-ElasticSearch-Premium-C1/g' /etc/ecs/ecs.config | |
| echo -e 'ECS_DATADIR=/data\nECS_ENABLE_TASK_IAM_ROLE=true\nECS_ENABLE_TASK_IAM_ROLE_NETWORK_HOST=true\nECS_LOGFILE=/log/ecs-agent.log\nECS_AVAILABLE_LOGGING_DRIVERS=["json-file","awslogs"]\nECS_LOGLEVEL=info' >> /etc/ecs/ecs.config | |
| echo "ecs config is: " | |
| cat /etc/ecs/ecs.config |
| # Install all the packages | |
| sudo yum install -y \ | |
| curl gpg gcc gcc-c++ make git \ | |
| openssl-devel readline-devel libcurl-devel \ | |
| zlib-devel postgresql-server.x86_64 ruby-devel \ | |
| sqlite sqlite-devel ruby-rdoc python-devel \ | |
| cairo-devel libffi-devel python-pip nc docker \ | |
| tmux htop postgresql-libs postgresql-devel \ | |
| amazon-cloudwatch-agent |
To install tweepy do:
pip install tweepy
More information at http://tweepy.org.