Skip to content

Instantly share code, notes, and snippets.

View mulloymorrow's full-sized avatar

Mulloy Morrow mulloymorrow

View GitHub Profile
curl -H "Content-Type: application/json" -X POST -d '{
"app_id": "com.yourapp.mobi",
"platform": "android",
"click_time": "2014-10-01 06:12:32",
"install_time": "2014-10-01 06:15:16",
"agency": "agency name",
"media_source": "Facebook Ads",
"campaign": null,
"fb_campaign_name": "fb campaign name",
"fb_campaign_id": "12345678910",
54.72.160.117 - - [16/Sep/2015:22:56:53 +0000] "POST /android HTTP/1.1" 400 47 "-" "http-kit/2.0" 0
54.77.45.90 - - [16/Sep/2015:22:56:53 +0000] "POST /ios HTTP/1.1" 400 47 "-" "http-kit/2.0" 0
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import org.apache.avro.Schema;
import org.apache.avro.generic.GenericDatumWriter;
import org.apache.avro.generic.GenericRecord;
import org.apache.avro.generic.GenericRecordBuilder;
import org.apache.avro.io.Decoder;
import org.apache.avro.io.DecoderFactory;
import org.apache.avro.io.Encoder;
import org.apache.avro.io.EncoderFactory;
import org.apache.avro.reflect.Nullable;
@mulloymorrow
mulloymorrow / iso-3166.sql
Created April 4, 2016 22:31
ISO 3166 is a standard published by the International Organization for Standardization (ISO) that defines codes for the names of countries, dependent territories, special areas of geographical interest, and their principal subdivisions (e.g., provinces or states). The official name of the standard is Codes for the representation of names of coun…
-- Table structure for table countries --
DROP TABLE IF EXISTS reference.countries;
CREATE TABLE reference.countries (
country_id SMALLINT NOT NULL,
country_name VARCHAR(100) DEFAULT NULL,
country_code_char2 VARCHAR(2) NOT NULL UNIQUE,
country_code_char3 VARCHAR(3) NOT NULL UNIQUE,
un_region VARCHAR(80) DEFAULT NULL,

Welcome to StackEdit!

Hey! I'm your first Markdown document in StackEdit[^stackedit]. Don't delete me, I'm very helpful! I can be recovered anyway in the Utils tab of the Settings dialog.


Documents

FROM ubuntu:15.04
MAINTAINER Mulloy Morrow <mulloy@offerup.com>
#################################################
# Inspired by
# https://hub.docker.com/r/cloudbees/java-build-tools/
#################################################
#================================================
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env bash
#Spin up a p2 ec2 instance on AWS and then run through this script to install tensorflow running on GPUs
#NVIDIA CUDA TOOLKIT + DRIVERS - http://docs.nvidia.com/cuda/cuda-installation-guide-linux/#axzz4ZXNjlCfN
lspci | grep -i nvidia
uname -m && cat /etc/*release
gcc --version
uname -r
sudo apt-get update && \
sudo apt-get install build-essential software-properties-common -y && \