- Preperation steps
git clone git://github.com/kohana/kohana yourdomain.com
cd yourdomain.com
git submodule update --init
rm install.php
cd application
chmod 0777 cache
chmod 0777 logs
git clone git://github.com/kohana/kohana yourdomain.com
cd yourdomain.com
git submodule update --init
rm install.php
cd application
chmod 0777 cache
chmod 0777 logs
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| # -*- coding: utf-8 -*- | |
| """ | |
| sphinx.builders.mobi | |
| ~~~~~~~~~~~~~~~~~~~~ | |
| Build mobi files. | |
| Originally derived from epub.py. | |
| :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS. | |
| :license: BSD, see LICENSE for details. |
The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 14 Nov 2012 03:35:10 GMT till Thu, 14 Nov 2013 03:35:10 GMT.
Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:
githubUsers
.filter((user) -> user.followers > 0)This is an example of how to generate occurrences from python-dateutil's rrule module, and convert them properly to UTC before saving to the database, particularly if your input is localized to a timezone that observes daylight savings. This assumes your server time is localized, otherwise if it's UTC you probably won't run into these problems.
Note: US daylight savings in 2014 started on March 9
| """ | |
| In the book a game state is | |
| struct { | |
| int x; | |
| int y; | |
| } move | |
| Essentially this represent value, | |
| struct { | |
| int board[DIMENSION+1][DIMENSION+1]; | |
| int freecount; |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
| def find_password(): | |
| import subprocess | |
| import re | |
| cmd = ['security', 'find-internet-password', '-gs', 'github.com'] | |
| pwinfo = subprocess.Popen(cmd, stdout = subprocess.PIPE, | |
| stderr = subprocess.PIPE) | |
| pwline = pwinfo.stderr.read().strip() | |
| return re.sub('password: "(.*)"', '\\1', pwline) |
This is a guide on how to email securely.
There are many guides on how to install and use PGP to encrypt email. This is not one of them. This is a guide on secure communication using email with PGP encryption. If you are not familiar with PGP, please read another guide first. If you are comfortable using PGP to encrypt and decrypt emails, this guide will raise your security to the next level.
This is a study of interpersonal closeness, and your task, which we think will be quite enjoyable, is simply to get close to your partner. We believe that the best way for you to get close to your partner is for you to share with them and for them to share with you. Of course, when we advise you about getting close to your partner, we are giving advice regarding your behavior in this demonstration only, we are not advising you about your behavior outside of this demonstration.
In order to help you get close we've arranged for the two of you to engage in a kind of sharing game. You're sharing time will be for about one hour, after which time we ask you to fill out a questionnaire concerning your experience of getting close to your partner.
You have been given three sets of slips. Each slip has a question or a task written on it. As soon as you both finish reading these instructions, you should