Skip to content

Instantly share code, notes, and snippets.

View phil-lavin's full-sized avatar

Phil Lavin phil-lavin

View GitHub Profile
synety@au-ks-fw-01# run traceroute 185.87.213.13
traceroute to 185.87.213.13 (185.87.213.13), 30 hops max, 40 byte packets
1 static-153.150.255.49.VOCUS.net.au (49.255.150.153) 6.611 ms 1.157 ms 1.195 ms
2 static-129.150.255.49.VOCUS.net.au (49.255.150.129) 2.261 ms 2.218 ms 2.180 ms
3 static-61.7.255.49.in-addr.VOCUS.net.au (49.255.7.61) 2.018 ms 2.044 ms 1.790 ms
4 BE-107.cor02.syd04.nsw.VOCUS.net.au (114.31.192.82) 149.145 ms 147.593 ms 147.669 ms
MPLS Label=24444 CoS=0 TTL=1 S=1
5 bundle-200.cor01.sjc01.ca.vocus.net (49.255.255.10) 153.001 ms 146.703 ms 155.950 ms
MPLS Label=24548 CoS=0 TTL=1 S=1
6 bundle-100.bdr01.sjc01.ca.vocus.net (49.255.255.19) 153.517 ms 157.506 ms 152.899 ms
[phil@linux site]$ cat ~/elastic/composer.json
{
"name": "elastictest",
"type": "metapackage",
"description": "Testing",
"license": "MIT",
"authors": [
{
"name": "Phil",
"email": "phil@propcom.co.uk"
object(RowNotFoundException)#168 (7) {
["message":protected]=>
string(23) "Unable to retrieve row."
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(0)
["file":protected]=>
string(69) "/mnt/data1/vhosts/gillmarine.com/Framework/library/core/CoreTable.php"
["line":protected]=>
Warning: is_dir(): open_basedir restriction in effect. File(/var/www/vhosts/emarketing.propcom.co.uk/privatefiles/mailers/revisions/41155/) is not within the allowed path(s): (/var/www/vhosts/vouchers.propcom.co.uk/httpdocs:/var/www/vhosts/vouchers.propcom.co.uk/includes:/var/www/vhosts/vouchers.propcom.co.uk/fuel:/tmp:/var/www/shared:/usr/share/pear:/var/www/vhosts/vouchers.emarketing.propcom.co.uk/includes:/var/www/vhosts/emarketing.propcom.co.uk/includes:/var/www/vhosts/emarketing.propcom.co.uk/httpdocs:/mnt/data1/vhosts/emarketing.propcom.co.uk/fuel:/var/www/vhosts/emarketing.propcom.co.uk/privatefiles)
curl -X DELETE localhost:9200/myindex2
curl -X PUT localhost:9200/myindex2 -d '
{
"settings" : {
"index":{
"number_of_replicas":1,
"number_of_shards":4,
"analysis":{
"analyzer":{
"index_analyzer":{

Search is as follows:

{"query":{"query_string":{"query":"armschel"}}}

My index has been defined as follows:

[
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [ext/mcrypt/mcrypt.la] Error 1
@phil-lavin
phil-lavin / gist:4501532
Created January 10, 2013 11:59
Compiling PHP Snapshot on Redhat
yum install aspell-devel bzip2-devel.x86_64 enchant-devel.x86_64 firebird-libfbclient.x86_64 freetds-devel.x86_64 gcc-c++ gdbm-devel gd gd-devel gd-progs libjpeg-devel libpng-devel freetype-devel freetype-utils libxml2-devel curl-devel gd gd-devel gd-progs libjpeg-devel libpng-devel freetype-devel freetype-utils libxml2-devel curl-devel mysql-devel gmp-devel.x86_64 keyutils-libs-devel.x86_64 krb5-devel.x86_64 libc-client-devel libedit-devel.x86_64 libibcommon-devel.x86_64 libicu-devel.x86_64 icu.x86_64 libmcrypt-devel.x86_64 libtidy-devel.x86_64 libxml2-devel.x86_64 libxslt-devel.x86_64 net-snmp-devel.x86_64 openldap-devel.x86_64 openssl-devel openssl-devel.x86_64 openssl-devel.x86_64 krb5-libs-1.9-33.el6_3.2.x86_64 keyutils-libs-1.4-4.el6.x86_64 libcom_err-1.41.12-12.el6.x86_64 libselinux-2.0.94-5.3.el6.x86_64 openssl-devel.x86_64 krb5-libs.x86_64 keyutils-libs.x86_64 libcom_err.x86_64 libselinux.x86_64 postgresql-devel.x86_64 pspell-devel recode-devel.x86_64 sqlite-devel.x86_64 t1lib-devel unixODBC-devel.x8
#!/bin/bash
if [ "$1" = "" ]; then
PASSWD=
else
PASSWD="-p$1"
fi
#
# DB_IGNORE_LIST is for those schemas which we do not want dump the data
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
main() {
char *lots_of_memory;
int i;
printf("Allocating...\n");
lots_of_memory = malloc(2000000000);