Skip to content

Instantly share code, notes, and snippets.


José Antunes theholy7

Block or report user

Report or block theholy7

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
class AuthorizedResource(Resource):
We created this AuthorizedResource from Resource
because the user authorization was being made after payload
validation. This way a non-auth'ed user was able to sniff the
payload that was required by the endpoint.
By wrapping dispatch_request with the requires_auth function,
we check for user authentication first.
theholy7 /
Created Apr 10, 2019
Update Firefox in Ubuntu (download and command line instructions)

First, download firefox. Then:

$ # Untar the download
$ tar xjf firefox-<version-num>.tar.bz2
$ # Remove current firefox
$ sudo rm -r /opt/firefox
$ # Move new firefox to old firefox location
$ sudo mv ~/Downloads/firefox /opt/firefox
theholy7 /
Last active Sep 8, 2018
psycopg2, pandas and python
import os
import as sqlio
import psycopg2
from dotenv import load_dotenv, find_dotenv
SQL_USER = os.environ.get('SQL_USER')
SQL_PASS = os.environ.get('SQL_PASS')
You can’t perform that action at this time.