Skip to content

Instantly share code, notes, and snippets.

View phil-lavin's full-sized avatar

Phil Lavin phil-lavin

View GitHub Profile
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"
<?php

$pid = pcntl_fork();

if ($pid == -1) {
     die('could not fork');
} else if ($pid) {
        cli_set_process_title("parent");
} else {
<?php

$pid = pcntl_fork();

if ($pid == -1) {
     die('could not fork');
} else if ($pid) {
        cli_set_process_title("parent");
} else {
[phil@local versions]$ host outlook.office365.com
;; Truncated, retrying in TCP mode.
outlook.office365.com is an alias for lb.geo.office365.com.
lb.geo.office365.com is an alias for outlook.office365.com.glbdns2.microsoft.com.
outlook.office365.com.glbdns2.microsoft.com is an alias for outlook-namwest.office365.com.
outlook-namwest.office365.com has address 132.245.92.210
outlook-namwest.office365.com has address 132.245.82.50
outlook-namwest.office365.com has address 132.245.92.226
outlook-namwest.office365.com has address 132.245.20.18
outlook-namwest.office365.com has address 132.245.81.194
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
main() {
char *lots_of_memory;
int i;
printf("Allocating...\n");
lots_of_memory = malloc(2000000000);
#!/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:

[