Skip to content

Instantly share code, notes, and snippets.

🔛

James J Porter porterjamesj

🔛
Block or report user

Report or block porterjamesj

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
@porterjamesj
porterjamesj / fix-venv.sh
Created Oct 2, 2016 — forked from pv8/fix-venv.sh
Fix virtualenv symlinks after upgrading python with Homebrew and running brew cleanup
View fix-venv.sh
#!/usr/bin/env bash
#
# Fix virtualenv symlinks after upgrading python with Homebrew and then running
# `cleanup`.
#
# After upgrading Python using Homebrew and then running `brew cleanup` one can
# get this message while trying to run python:
# dyld: Library not loaded: @executable_path/../.Python
# Referenced from: /Users/pablo/.venv/my-app/bin/python
# Reason: image not found
@porterjamesj
porterjamesj / mom log
Created Oct 10, 2013 — forked from anonymous/20131009
mom log from failed torque run
View mom log
10/09/2013 12:33:34;0002; pbs_mom.1199;Svr;Log;Log opened
10/09/2013 12:33:34;0002; pbs_mom.1199;Svr;pbs_mom;Torque Mom Version = 4.1.5, loglevel = 0
10/09/2013 12:33:34;0002; pbs_mom.1200;Svr;setpbsserver;torque-headnode-63079663-10-09-13
10/09/2013 12:33:34;0002; pbs_mom.1200;Svr;mom_server_add;server torque-headnode-63079663-10-09-13 added
10/09/2013 12:33:34;0002; pbs_mom.1200;Svr;usecp;*:/glusterfs/users /glusterfs/users
10/09/2013 12:33:34;0002; pbs_mom.1200;Svr;setloglevel;4
10/09/2013 12:33:34;0002; pbs_mom.1200;n/a;initialize;independent
10/09/2013 12:33:34;0080; pbs_mom.1200;Svr;pbs_mom;before init_abort_jobs
10/09/2013 12:33:34;0002; pbs_mom.1200;Svr;pbs_mom;Is up
10/09/2013 12:33:34;0002; pbs_mom.1200;Svr;setup_program_environment;MOM executable path and mtime at launch: /usr/local/sbin/pbs_mom 1363720006
View gist:6076205
#!/usr/bin/python
# -*- coding: utf-8 -*-
from flask import Flask
from flaskext.sqlalchemy import SQLAlchemy
from werkzeug.security import generate_password_hash
from werkzeug.security import check_password_hash
from sqlalchemy.orm.exc import NoResultFound
app = Flask(__name__)
You can’t perform that action at this time.