(Create a symlink pytest for py.test)
pytest [options] [file_or_dir] [file_or_dir] ...
Help:
server { | |
root /var/www/example.com/static; | |
server_name example.com; | |
access_log /var/log/nginx/example.com.access.log; | |
error_log /var/log/nginx/example.com.error.log; | |
try_files /maintenance.html @proxy; | |
location @proxy { | |
proxy_pass http://127.0.0.1:10001; |
#!/usr/bin/perl | |
use v5.10; | |
use strict; | |
use warnings FATAL => 'all'; | |
use Mojo::UserAgent; | |
my $latest_url = Mojo::UserAgent->new->get('http://www.sublimetext.com/2') |
#!/bin/sh | |
# This script will migrate schema and data from a SQLite3 database to PostgreSQL. | |
# Schema translation based on http://stackoverflow.com/a/4581921/1303625. | |
# Some column types are not handled (e.g blobs). | |
SQLITE_DB_PATH=$1 | |
PG_DB_NAME=$2 | |
PG_USER_NAME=$3 |
/** | |
* Create an array with `len` elements. | |
* | |
* @param [initFunc] Optional: a function that returns | |
* the elements with which to fill the array. | |
* If the function is omitted, all elements are `undefined`. | |
* `initFunc` receives a single parameter: the index of an element. | |
*/ | |
function initArray(len, initFunc) { | |
if (typeof initFunc !== 'function') { |
#!/bin/bash | |
usage() { | |
echo "WebM cutter and uploader." | |
echo "Usage: $0 <source> <start time> <length> [-subs]" | |
echo "Example: $0 video.mkv 00:10:15 00:00:30" | |
exit 1 | |
} | |
if [ $# -eq 0 ]; then usage; fi |
Полезные ссылки изучающему анону
diff --git a/user.py b/user.py | |
index cb47cbb..6b9ff36 100644 | |
--- a/user.py | |
+++ b/user.py | |
@@ -40,7 +40,7 @@ from ipalib import _, ngettext | |
from ipalib import output | |
from ipalib import x509 | |
from ipaplatform.paths import paths | |
-from ipapython.ipautil import ipa_generate_password | |
+from ipapython.ipautil import ipa_generate_password, run |