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 lsof -i -n | egrep '\<ssh\>' |
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
Couchbase = require 'couchbase' | |
fs = require('fs') | |
readline = require('readline') | |
stream = require('stream') | |
async = require('async') | |
elasticsearch = require('elasticsearch') | |
host = "xxx" | |
cluster = new Couchbase.Cluster("couchbase://#{host}") | |
couchbase = cluster.openBucket("users") |
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 |
OlderNewer