This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Migrates a SVN repository to a git repository. | |
# | |
# Author: Augusto Pascutti <[email protected]> | |
COMMAND=$0; | |
SVN=`which svn 2> /dev/null`; | |
GIT=`which git 2> /dev/null`; | |
READER=""; | |
RETURN=""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Downloads and install latest APC extension to OSX php (Zend Server). | |
# Tested under OSX 10.6.7, more feedback is appreciated. | |
# | |
# OSX is 64bit but the PHP binary in Zend Server is compiled in 32bit mode only, | |
# so to have APC working with Zend Server on OSX statically compiling it with default | |
# recommended flags and forced i386 architecture. | |
# I suppose that Zend Server's binary path is already into your PATH variable and it | |
# is used before the native PHP binary bundled with OSX. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Implementação de Registry em javascript. | |
* | |
* @author Henrique Moody | |
*/ | |
var Registry = new function Registry () { | |
// Dados no registry | |
var _data = new Array(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Define the 'class' class | |
$class = (new Obj) | |
->fn('new', function() { | |
$newClass = (new Obj($this->methods)) | |
->fn('new', function() { | |
$obj = new Obj($this->imethods); | |
call_user_func_array(array($obj, 'init'), func_get_args()); | |
return $obj; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Configurations | |
db_host = 'localhost' | |
db_user = 'zend' | |
db_passwd = '' | |
db_name = 'test' | |
db_driver = 'mysql' | |
;db_port = 3306 | |
;db_charset = 'utf8' | |
dsn = '[db_driver]:host=[db_host];dbname=[db_name]' | |
dsn = 'sqlite::memory:' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
x=0; | |
repositories=( | |
"Cli" | |
"Config" | |
"Data" | |
"ed" | |
"Foundation" | |
"Framework" | |
"Http" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Uses script and scriptreplay to record and playback virtual terminal. | |
# Copyright (C) 2007 Hean Kuan Ong <[email protected]> | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 | |
# of the License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Usage: {script} OPTIONS | |
# Find content into files. | |
# | |
# -h, --help Displays this help | |
# -a, --action Action to perform: "search", "files" or a sed pattern to | |
# apply to files (default "search") | |
# -d, --directory Directory to search (default ".") | |
# -e, --extension Extensions to search on (default "*") | |
# -x, --exclude Pattern to exclude |
OlderNewer