Skip to content

Instantly share code, notes, and snippets.

Working on NullServe

David J. Felix DavidJFelix

Working on NullServe
Block or report user

Report or block DavidJFelix

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 davidjfelix on github.
  • I am davidjfelix ( on keybase.
  • I have a public key ASBXhkpcdJ6o4vmyZRI1p7PDZK1XXL82RZB2iks6U7RNqQo

To claim this, I am signing this object:

set -euvxo pipefail
# Get commande line tools
xcode-select --install
# Get homebrew
/usr/bin/ruby -e "$(curl -fsSL"
View java.pp
class java {
class { 'apt': }
# Add PPA
apt::ppa { 'ppa:webupd8team/java': } ->
# Install Java
package { 'oracle-java7-installer':
ensure => latest,
require => [
DavidJFelix /
Last active May 20, 2019
A lab for HyperLogLogs using Redis & Python, created with Ipython notebook

Redis is an in-memory network key/value store and nltk is the python natural language toolkit. We'll be using these libraries later for the lab.

    import redis
    import nltk

Setup our redis connection. It's on the VM, so local is fine.

DavidJFelix / ugly_json.json
Last active Aug 29, 2015
View ugly_json.json
"xsi:schemaLocation": " jsonx.xsd",
"xmlns:xsi": "",
"xmlns:json": "",
"name": "name",
"content": "John Smith"
{"json:object": {
DavidJFelix /
Created Jul 26, 2014
Modify python behavior
from ctypes import c_int8
from struct import calcsize
# Make 4 = 5
c_int8.from_address(id(4) + calcsize('PP')).value = 5
# A little more readable
address = id(4)
offset = calcsize('PP')
You can’t perform that action at this time.