Skip to content

Instantly share code, notes, and snippets.

View levous's full-sized avatar

Rusty Zarse levous

View GitHub Profile
@kristopherjohnson
kristopherjohnson / deletetweets.py
Last active February 9, 2022 14:13
Delete all tweets older than 90 days
#!/usr/bin/env python
"""Deletes all tweets older than 90 days.
"""
from __future__ import print_function
# Dependencies: pip install twitter python-dateutil
import twitter
import dateutil.parser
@randallreedjr
randallreedjr / heroku-remote.md
Last active April 25, 2024 07:06
Add a Heroku remote to an existing git repo

Working with git remotes on Heroku

Generally, you will add a git remote for your Heroku app during the Heroku app creation process, i.e. heroku create. However, if you are working on an existing app and want to add git remotes to enable manual deploys, the following commands may be useful.

Adding a new remote

Add a remote for your Staging app and deploy

Note that on Heroku, you must always use master as the destination branch on the remote. If you want to deploy a different branch, you can use the syntax local_branch:destination_branch seen below (in this example, we push the local staging branch to the master branch on heroku.

$ git remote add staging https://git.heroku.com/staging-app.git