start new:
tmux
start new with session name:
tmux new -s myname
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| [ | |
| { "keys": ["ctrl+t"], "command": "side_bar_new_file2" }, | |
| { "keys": ["ctrl+shift+o"], "command": "prompt_open_folder" }, | |
| ] |
Laravel Homestead is an official, pre-packaged Vagrant box that provides you a wonderful development environment without requiring you to install PHP, HHVM, a web server, and any other server software on your local machine. Read more...
Download homestead box using this link:
| # -*- coding: utf-8 -*- | |
| from django.http import HttpResponseRedirect | |
| from django.conf import settings | |
| from re import compile | |
| from django.core.urlresolvers import reverse | |
| def get_login_url(): |
| # coding: utf-8 | |
| # FILE: | |
| # ----- | |
| # /mnt/Vancouver/apps/Webcam-Face-Detect/webcam_cv3_v2_fps_v3.py | |
| # FUNCTIONALITY: | |
| # -------------- | |
| # * outputs webcam to screen and finds faces, eyes | |
| # * writes webcam video to *.avi file (MJPG codec) via OpenCV/FourCC |
SchemaSpy is a neat tool to produce visual diagrams for most relational databases.
Here's how to use it to generate schema relationship diagrams for PostgreSQL databases:
Download the jar file from here (the current version is schemaSpy_5.0.0.jar)
Get the PostgreSQL JDBC driver (either the JDBC3 or JDBC4 jar file is fine)
Run the command against an existing database. For most databases, the schema (-s option) we are interested in is the public one:
| # How to generate a secret key with Python | |
| # via http://flask.pocoo.org/docs/quickstart/ | |
| import os | |
| os.urandom(24) |