Skip to content

Instantly share code, notes, and snippets.

@aweekj
aweekj / fixup.txt
Created July 2, 2017 13:35 — forked from lucasdavila/fixup.txt
Fixing mac os yosemite issue "bash: fork: Resource temporarily unavailable"
# see the current limits
$ sysctl -a | grep maxproc
# increase it
$ sudo sysctl -w kern.maxproc=xxxx
$ sudo sysctl -w kern.maxprocperuid=xxx
# run at startup
$ sudo vim /etc/sysctl.conf
@aweekj
aweekj / README
Last active October 30, 2016 02:51
Twitter Bot Tutorial (4)
heroku ps:scale worker=1
@aweekj
aweekj / Procfile
Last active October 29, 2016 18:49
Twitter Bot Tutorial (3)
worker: python bot.py
@aweekj
aweekj / README
Created October 28, 2016 14:36
Twitter Bot Tutorial (2)
(env) $ pip install pytz beautifulsoup4
(env) $ touch weather.py
(env) $ python bot.py
@aweekj
aweekj / README
Last active October 29, 2016 05:24
Twitter Bot Tutorial (1)
$ mkdir twitter-bot && cd twitter-bot # 폴더 생성
$ python3 -m venv env # 가상환경 셋업
$ source env/bin/activate # 가상환경 실행
(env) $ pip install —-upgrade pip # pip를 최신버전으로 업데이트(권장)
(env) $ pip install tweepy # 가상환경에 Tweepy 모듈 설치
(env) $ touch secret.py bot.py # 파이썬 파일 생성
(env) $ python bot.py