Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
<?php | |
class base58 | |
{ | |
static public $alphabet = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"; | |
public static function encode($int) { | |
$base58_string = ""; | |
$base = strlen(self::$alphabet); | |
while($int >= $base) { |
<?php | |
namespace Ocramius\Auth\Storage; | |
use Entity\Ocramius\Admin as AdminEntity, | |
Doctrine\ORM\EntityManager; | |
/** | |
* An @see \Zend_Auth_Storage_Session that handles @see AdminEntity items | |
* @author Marco Pivetta <ocramius@gmail.com> | |
*/ |
# HTTP Status Cats | |
# Apache (htaccess) config created by @dave1010 | |
# Licensed CC BY 2.0 | |
# Images CC BY 2.0, from GirlieMac's photostream: | |
# http://www.flickr.com/photos/girliemac/sets/72157628409467125/with/6508023065/ | |
# Usage: copy save this file as .htaccess or add it to your httpd.conf | |
ErrorDocument 404 '<a href="http://www.flickr.com/photos/girliemac/6508022985/" title="404 - Not Found by GirlieMac, on Flickr"><img src="http://farm8.staticflickr.com/7172/6508022985_b22200ced0.jpg" width="500" height="400" alt="404 - Not Found"></a>' |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
#!/bin/sh | |
echo "Running..." | |
PROG=$0 | |
RSYNC="/usr/bin/rsync" | |
SCRIPT_MOUNTED='false' | |
MOUNT_VOLUME="/Volumes/Qdownload" | |
SRC="$MOUNT_VOLUME/transmission/completed/" | |
DST="/Users/tom/Dumping Ground/Qnap Downloads" |
#Mac OS X
<?php | |
/** | |
* This script is used to process the output of a PHPUnit test run | |
* that uses --log-junit for the purposes of timing each executed | |
* test method. It outputs test methods with their respective | |
* runtimes in order from largest to smallest. Times are in | |
* seconds. The script accepts paths to any number of files in the | |
* JUnit log format. | |
* | |
* Ex: php phpunit-log-junit.php /path/to/junit-log1.xml /path/to/junit-log2.xml ... |
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
<!-- Rich Object stuff --> | |
<meta property="og:url" value="{{ site.url }}{{ page.url }}"> | |
<meta property="og:type" content="website" /> | |
{% if page.title %}<meta property="og:title" value="{% if page.title %}{{ page.title }}{% endif %}"> | |
<meta property="og:description" value="{% if page.description %}{{ page.description }}{% else %}{{site.description}}{% endif %}"> | |
{% else %}<meta property="og:title" value="{{ site.title }}"> | |
<meta property="og:description" value="{{ description }}"> | |
{% endif %}{% if page.cover %}<meta property="og:image" value="{{ site.url }}{{ page.cover }}">{% endif %} |
--- | |
- hosts: all | |
gather_facts: yes | |
## | |
# Create the password then create the user | |
# | |
- name: Users | Generate password for new user | |
shell: makepasswd --chars=20 | |
register: user_password |