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
964c964 | |
< if (result <= 0) { | |
--- | |
> if (result < 0) { | |
977c977 | |
< if (result <= 0) { | |
--- | |
> if (result < 0) { | |
994c994 | |
< if (result <= 0) { |
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 | |
// Create a connection | |
$cnn = new AMQPConnection(array("host" => "localhost" | |
,"vhost" => "/" | |
,"port" => 5672 | |
,"login" => "guest" | |
,"password" => "guest")); | |
$cnn->connect(); | |
// Declare a new channel |
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
nohup tcpdump -n -w <Name of file> -s0 -C 100 -i eth0 port 5060 & |
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 | |
sudo pear channel-discover pear.phpmd.org | |
sudo pear channel-discover pear.pdepend.org | |
sudo pear install --alldeps phpmd/PHP_PMD-alpha |
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
#include <stdio.h> | |
int main() | |
{ | |
printf( "Hello World!\n" ); | |
return 0; | |
} |
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
[lucid-i386] | |
description=Ubuntu 10.04 Lucid for i386 | |
directory=/srv/chroot/lucid-i386 | |
root-users=david | |
groups=root | |
type=directory | |
users=david |
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 |
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 | |
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
<?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. | |
*/ |
OlderNewer