Skip to content

Instantly share code, notes, and snippets.

#!/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__)
@porterjamesj
porterjamesj / mom log
Created October 10, 2013 04:30 — forked from anonymous/20131009
mom log from failed torque run
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
@porterjamesj
porterjamesj / fix-venv.sh
Created October 2, 2016 22:10 — forked from pv8/fix-venv.sh
Fix virtualenv symlinks after upgrading python with Homebrew and running brew cleanup
#!/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