This python:
lg = LocationGroup
lgl1 = LocationGroupLocation
lgl2 = aliased(LocationGroupLocation)
sub_q1 = (
self.db_session.query(lg).
filter(lg.location_group_type_id == 2,
from app import db | |
from sqlalchemy import desc, event, func, orm | |
from sqlalchemy.ext.associationproxy import association_proxy | |
from sqlalchemy.ext.declarative import declared_attr | |
from sqlalchemy_utils import ArrowType, auto_delete_orphans | |
from slugify import slugify_unicode | |
tags = db.Table('tag_associations', | |
db.Column('tag_id', db.Integer, db.ForeignKey('tags.id')), | |
db.Column('article_id', db.Integer, db.ForeignKey('articles.id'))) |
#!/bin/bash | |
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home lein run |
This python:
lg = LocationGroup
lgl1 = LocationGroupLocation
lgl2 = aliased(LocationGroupLocation)
sub_q1 = (
self.db_session.query(lg).
filter(lg.location_group_type_id == 2,
When setting these options consider the following:
sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log
#!/bin/bash | |
get_current_wifi_password() { | |
# this command from http://bit.ly/2zWtUhQ | |
current_wifi=`/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | \ | |
awk '/ SSID/ {print substr($0, index($0, $2))}'` | |
security find-generic-password -a "$current_wifi" -g | tail -0 | |
} | |
get_wifi_password() { |