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
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
main() {
char *lots_of_memory;
int i;
printf("Allocating...\n");
lots_of_memory = malloc(2000000000);
[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
<?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 {

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"
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)
[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)