Skip to content

Instantly share code, notes, and snippets.

View phil-lavin's full-sized avatar

Phil Lavin phil-lavin

View GitHub Profile
#!/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
@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
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [ext/mcrypt/mcrypt.la] Error 1

Search is as follows:

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

My index has been defined as follows:

[
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":{
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)
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]=>
[phil@linux site]$ cat ~/elastic/composer.json
{
"name": "elastictest",
"type": "metapackage",
"description": "Testing",
"license": "MIT",
"authors": [
{
"name": "Phil",
"email": "phil@propcom.co.uk"
bacula=> select * from pg_indexes where tablename='file';
schemaname | tablename | indexname | tablespace | indexdef
------------+-----------+----------------+------------+-----------------------------------------------------------------------------
public | file | file_pkey | | CREATE UNIQUE INDEX file_pkey ON file USING btree (fileid)
public | file | file_jobid_idx | | CREATE INDEX file_jobid_idx ON file USING btree (jobid)
public | file | file_jpfid_idx | | CREATE INDEX file_jpfid_idx ON file USING btree (jobid, pathid, filenameid)
(3 rows)

PO file at ./locale/en_US/LC_MESSAGES/foo.po:

msgid ""
msgstr ""
"Project-Id-Version: USA\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-01-29 12:04+0530\n"
"PO-Revision-Date: 2014-01-29 15:20+0530\n"
"Last-Translator: Phil <phil@hi.com>\n"