This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [uwsgi] | |
| chdir=/var/www/pgadmin/venv/lib/python3.6/site-packages/pgadmin4 | |
| home=/var/www/pgadmin/venv | |
| wsgi-file=pgAdmin4.wsgi | |
| master=true | |
| processes=2 | |
| socket=/var/www/pgadmin/pgadmin.sock | |
| chmod-socket=666 | |
| logfile-chmod=644 | |
| daemonize=/var/www/pgadmin/pgadmin.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ssh -qTfnN -D 1080 fq@123.456.789.10 -p 22 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vi /etc/environment | |
| add these lines... | |
| LANG=en_US.utf-8 | |
| LC_ALL=en_US.utf-8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from flask import Flask, render_template | |
| from flask.ext.wtf import Form, widgets, SelectMultipleField | |
| SECRET_KEY = 'development' | |
| app = Flask(__name__) | |
| app.config.from_object(__name__) | |
| class MultiCheckboxField(SelectMultipleField): | |
| widget = widgets.ListWidget(prefix_label=False) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 模型 | |
| from app import db | |
| from sqlalchemy.dialects.postgresql import UUID, JSON | |
| from sqlalchemy import text as sa_text | |
| class User(db.Model): | |
| id = db.Column(UUID(as_uuid=True), primary_key=True, default=sa_text("uuid_generate_v4()")) | |
| username = db.Column(db.CHAR(16), unique=True, nullable=False) | |
| profile = db.Column(JSON) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ | |
| pg_uuid | |
| ~~~~~~~~~~~~~~~~ | |
| <NO DESCRIPTION>. | |
| :copyright: (c) 2018 by WRDLL <4ever@wrdll.com> | |
| """ | |
| from flask import Flask |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import "fmt" | |
| // Very naive answer. | |
| // fibonacci is a function that returns | |
| // a function that returns an int. | |
| func fibonacci() func() int { | |
| n := 0 | |
| a := 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Homebrew build logs for macvim on OS X 10.11.2 | |
| Build date: 2016-01-11 09:59:09 |