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
require_once 'Cassandra.php'; | |
$servers = array( | |
array( | |
'host' => '192.168.1.74', | |
'port' => 9160, | |
'use-framed-transport' => true, | |
'send-timeout-ms' => 1000, | |
'receive-timeout-ms' => 1000 | |
) |
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
:%s/urlschemeUserLog__\w*/urlschemeUserLog/g |
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
cd ad4rtb/libext/ | |
vim externals | |
A4SFWK http://ad4sdevsrv.ad4s.local/ws_fwk/trunk/A4SFWK/ | |
svn propset svn:externals . -F externals | |
svn update | |
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 | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); |
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
cd hiphop/hiphop-php/ | |
export CMAKE_PREFIX_PATH=`/bin/pwd`/../ | |
export HPHP_HOME=`/bin/pwd` | |
export HPHP_LIB=`/bin/pwd`/bin | |
find . -name "*.php" > files.list | |
sudo rm -R /tmp/hphp_* | |
../hphp/hphp --input-list=files.list -k 1 --log=3 --include-path="." --force=1 --cluster-count=50 -v "AllDynamic=true" | |
sudo /tmp/hphp_zJVsIX/program -m server -v "Server.SourceRoot=`pwd`" -v "Server.DefaultDocument=public/index.php" -p 8080 |
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
curl -s https://getcomposer.org/installer | php | |
sudo mv composer.phar /usr/local/bin/composer | |
mkdir testzf2/ | |
cd testzf2/ | |
vim composer.json | |
################ | |
{ | |
"name": "zendframework/testzf2", | |
"description": "Skeleton Application for ZF2", |
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
http://snippets.notmyidea.org/2009/07/30/using-scribe-log-server-with-php/ | |
sudo apt-get install libboost-dev flex bison libtool automake autoconf pkg-config libevent-dev autoconf libtool php5 php-config g++ libcrypto++-dev libssl-dev libboost1.42-all-dev | |
svn co http://svn.apache.org/repos/asf/thrift/trunk thrift | |
cd thrift/ | |
Problems with uint32_t |
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
sudo vim /usr/share/applications/eclipse.desktop | |
[Desktop Entry] | |
Type=Application | |
Terminal=false | |
Name=Eclipse Kepler | |
Icon=/opt/eclipse-kepler/icon.xpm | |
Exec=/opt/eclipse-kepler/eclipse |
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
sudo apt-get install compizconfig-settings-manager |
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
# This number should be, at maximum, the number of CPU cores on your system. | |
# (since nginx doesn't benefit from more than one worker per CPU.) | |
worker_processes 8; | |
# Determines how many clients will be served by each worker process. | |
# (Max clients = worker_connections * worker_processes) | |
# "Max clients" is also limited by the number of socket connections available on the system (~64k) | |
# run ss -s and u'll see a timewait param | |
# The reason for TIMED_WAIT is to handle the case of packets arriving after the socket is closed. |
OlderNewer