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 | |
$sdb = new AmazonSDB("accessKey", "secretKey"); | |
$sdb->setRegion(AmazonSDB::REGION_US_E1); | |
$response = $sdb->create_domain("projects"); | |
print_r($response); |
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 | |
require_once('aws-sdk-for-php/sdk.class.php'); | |
$table_name = "queuesNStuff"; | |
function outputArray($output) | |
{ | |
print_r(nl2br(print_r($output->body->to_array(), TRUE))); | |
} | |
function outputJson($output) | |
{ |
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/perl | |
use DBI; | |
use Data::Dumper; | |
# Configuration Information | |
my $EOL = "\n"; | |
my $dbFile = "perl.anki"; | |
my $scriptStarting = "starting$EOL"; | |
my $scriptComplete = "done$EOL"; | |
my $sqlSelectAllCards = "SELECT * FROM cards"; |
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
function! OpenUnitTest() | |
let file = expand("%:p") | |
let words = split(getline(search('^class '))) | |
let words = split(words[1],"_") | |
let paths = matchlist(file, '\([A-Za-z0-9/].*\)/application') | |
let head = paths[1] | |
let path = "/tests" | |
let counter = 0 | |
for word in words | |
if counter < 2 |
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
var simpleForm = { "elements": | |
{ "verb" : | |
{ "label" : "verb", | |
"id" : "verb", | |
"type" : "text", | |
"size" : "50" , | |
"element" : "input" | |
}, | |
"url" : | |
{ "label" : "url", |
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 | |
class Zend_View_Helper_ViewHelperSkeleton extends Zend_View_Helper_Abstract | |
{ | |
public $view; | |
/** | |
* Allows the view to be passed into the helper for later use. | |
*/ | |
public function setView(Zend_View_Interface $view) | |
{ |
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 | |
if(!defined('TEST_PATH')){ | |
DEFINE('TEST_PATH', '../..'); | |
}//if | |
require_once TEST_PATH . '/library/ControllerTestCase.php'; | |
require_once APPLICATION_PATH . '/controllers/SkeletonController.php'; | |
/** | |
* Test class for SkeletonController. | |
*/ |
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 | |
perl -i -pe ';s/(Version: [0-9]+\.[0-9]+\-)([0-9])//; if($1){print $1 . ($2 + 1)}' package/DEBIAN/control |
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
copy *.isp \\server\home\ubuntu\iso |
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 | |
package=sflphone_20110328-1_amd64.deb | |
packageDir=sflphone_20110328-1_amd64 | |
apt-get install libtool autoconf pkg-config libasound2-dev libpulse-dev libsamplerate0-dev libcommoncpp2-dev libccrtp-dev libzrtpcpp-dev libssl-dev libexpat1-dev libpcre3-dev libgsm1-dev libspeex-dev libspeexdsp-dev libyaml-dev | |
cd /opt/SFLWebService/sflphone-0.9.11/sflphone-common/libs/pjproject | |
./autogen.sh | |
./configure | |
make dep && make | |
cd /opt/SFLWebService/sflphone-0.9.11/sflphone-common | |
./autogen.sh |