Magic words:
psql -U postgres
If run with -E
flag, it will describe the underlaying queries of the \
commands (cool for learning!).
Most \d
commands support additional param of __schema__.name__
and accept wildcards like *.*
#!/bin/bash | |
concurrent=5 | |
max=81 | |
while [ $concurrent -lt $max ] | |
do | |
ab_args='-n 2000 -c '$concurrent | |
folder='run-'`date +'%Y%m%d%H%M%S'`'-'$concurrent |
<?php | |
define('T', ' '); | |
define('N', PHP_EOL); | |
$functions = array(); | |
$classes = array(); | |
$constant_prefix = 'X_'; | |
$php = '<?php' . N; |
<?php | |
/** | |
* This script can be used for generating PHP model for PDT. | |
* It builds PHP functions according to the loaded extensions in running PHP, | |
* using complementary information gathered from PHP.net documentation | |
* | |
* @author Michael Spector <michael@zend.com> | |
*/ | |
if (version_compare(phpversion(), "5.0.0") < 0) { |
<?php | |
/** | |
* | |
* config/autoload/entitiesGenerator.local.php | |
array( | |
'entitiesGenerator' => array( | |
'connection' => array( | |
'cnx' => array( | |
'driver' => 'pdo_mysql', | |
'host' => 'localhost', |
Array | |
( | |
[internal] => Array | |
( | |
[0] => zend_version | |
[1] => func_num_args | |
[2] => func_get_arg | |
[3] => func_get_args | |
[4] => strlen | |
[5] => strcmp |
<!DOCTYPE html> | |
<style> | |
#chart { | |
width: 960px; | |
height: 500px; | |
} | |
#chart rect.bar { | |
stroke: black; | |
fill: #777; |
license: gpl-3.0 |
#!/usr/bin/env python | |
import sys, os, time, atexit | |
from signal import SIGTERM | |
class Daemon: | |
""" | |
A generic daemon class. | |
Usage: subclass the Daemon class and override the run() method |