Skip to content

Instantly share code, notes, and snippets.

Working remotely

Oren Fromberg orenfromberg

Working remotely
View GitHub Profile
jagger27 / nginx.conf
Last active Sep 20, 2019
Nginx clone conf
View nginx.conf
# my humble homage to
server {
listen 80;
# to disallow anything other than what's below (like a direct IP)
server_name _;
server {
listen 80;
staltz /
Last active Dec 3, 2021
The introduction to Reactive Programming you've been missing
ZacSweers /
Last active Mar 12, 2021
Python Reddit bot on Heroku

A crash course in setting up your Python Reddit bot on Heroku

You'll need to do the following:

  • You need to make your bot a python app. Do this by making another directory (can be the same name as the regular one) and put all your python code in that, and make an empty file called in it as well. See how I structured mine if this isn't clear. In your base directory, create two files: "requirements.txt" and "runtime.txt". The requirements.txt file should be the output of pip freeze (you can run the command "pip freeze > requirements.txt"). If you're not using virtualenv, you'll need to go through after and delete all the lines with packages your code doesn't actually use. Check out mine to see what I mean. Runtime.txt just specifies with python version for heroku to use. Mine just has the line "python-2.7.4" in it. All of this will tell heroku to recognize your bot as a python app.

  • Make a heroku account and