Skip to content

Instantly share code, notes, and snippets.

Paul Lewis paul91

  • Domino Data Lab
  • New York, NY
Block or report user

Report or block paul91

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am paul91 on github.
  • I am paullewis ( on keybase.
  • I have a public key ASDb1mA4t5nRJxRYXA3CHybkq0XmNZ1B3ewFWNSCtPBRiwo

To claim this, I am signing this object:

paul91 /
Created Oct 17, 2014
PECL install mongo client on CentOS 6.5
# Resolve dependencies. If you are using a custom version of php (ex. php55w) replace it here.
yum install -y php php-devel php-pear gcc
# Use PECL to compile the extension
pecl install mongo
# Enable the mongo extension
echo "" > /etc/php.d/mongo.ini
paul91 / nyct-gtfs.js
Created Sep 17, 2014
Nodejs NYCT GTFS decoding example
View nyct-gtfs.js
// All thanks goes to:
var ProtoBuf = require("protobufjs");
var http = require('http');
// MTA Realtime endpoint
var feedUrl = "...";
// Initialize from .proto file
// Requires nyct-subway.proto and gtfs-realtime.proto
#!/usr/bin/perl -w
use strict;
use Socket;
use IO::Handle;
if($#ARGV+1 != 2){
print "$#ARGV $0 Remote_IP Remote_Port \n";
exit 1;
paul91 /
Created May 5, 2014
How to install php memcached on CentOS 6.5
# How to install PHP memcached on CentOS 6.5
# Install dependencies
yum install cyrus-sasl-devel zlib-devel gcc-c++
# Get the latest libmemcached
tar -xvf libmemcached-1.0.16.tar.gz
View apache strace
# Strace an Apache request
ps auxw | grep httpd | awk '{print"-p " $2}' | xargs strace
View .htoprc
# Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly.
fields=0 48 17 18 38 39 40 2 46 47 49 1
paul91 /
Last active Oct 14, 2019
How to install GraphicsMagick on CentOS 6.4
# Install build dependencies
yum install -y gcc libpng libjpeg libpng-devel libjpeg-devel ghostscript libtiff libtiff-devel freetype freetype-devel
# Get GraphicsMagick source
tar zxvf GraphicsMagick-1.3.9.tar.gz
# Configure and compile
paul91 /
Last active Feb 24, 2016
Install ffmpeg v1.2.4 on CentOS 6.4
# Can be obtained from RepoForge
yum install -y yasm
git clone git:// ffmpeg
cd ffmpeg
git checkout n1.2.4
paul91 /
Last active Aug 29, 2015
Install credis dependencies for the Redis Collectd plugin on CentOS 6.4
tar -zxvf credis-0.2.3.tar.gz
cd credis-0.2.3
You can’t perform that action at this time.