start new:
tmux
start new with session name:
tmux new -s myname
| /* | |
| * @in_params | |
| * center_hash - GeoHash identifier to find adjacent cells for | |
| * | |
| * @out_params (column description) | |
| * hash - GeoHash identifier for this adjacent cell | |
| * centroid - Centroid geometry (POINT) for this adjacent cell | |
| * bound - Cell bounds geometry (POLYGON) for this adjacent cell | |
| * | |
| * The function returns a SETOF RECORD containing the 8 direct |
| #!/usr/bin/env python | |
| """ | |
| Recipe for creating and updating security groups programmatically. | |
| """ | |
| import collections | |
| import boto |
| from django.core.mail import send_mail | |
| import os | |
| def sendMyAppEmail(toList, template, toType=None, subject="", templateDict={}): | |
| # Load the image you want to send at bytes | |
| img_data = open(os.path.join(settings.MEDIA_ROOT, 'bumblebee.jpeg'), 'rb').read() | |
| # Create a "related" message container that will hold the HTML |
| #!/bin/bash | |
| # +----------------------------------------------------------------------+ | |
| # | | | |
| # | Mount the root file system / with the option noatime | | |
| # | | | |
| # | By Philipp Klaus <http://blog.philippklaus.de> | | |
| # | Tip found on <http://blogs.nullvision.com/?p=275> | | |
| # | | | |
| # +----------------------------------------------------------------------+ |
| (r'^articles/(?P<year>\d{4}/?$, 'main.views.year'), | |
| # When a use case comes up that a month needs to be involved as | |
| # well, you add an argument in your regex: | |
| (r'^articles/(?P<year>\d{4}/(?P<month>\d{2})/?$, 'main.views.year_month'), | |
| # That works fine, unless of course you want to show something | |
| # different for just the year, in which case the following case can be | |
| # used, making separate views based on the arguments as djangoproject |