This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import os | |
gettext = lambda s: s | |
PROJECT_DIR = os.path.abspath(os.path.dirname(__file__)) | |
DEBUG = True | |
TEMPLATE_DEBUG = DEBUG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.idea/* | |
*.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\"Program Files"\Oracle\VirtualBox\VBoxManage.exe startvm Ubuntu | |
timeout 30 | |
net use X: \\chuwy-ubuntu\home /user:user pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# This script will download NodeJS, NPM and lessc, and install them into you Python | |
# virtualenv. | |
# | |
# Based on a post by Natim: | |
# http://stackoverflow.com/questions/8986709/how-to-install-lessc-and-nodejs-in-a-python-virtualenv | |
NODEJS="http://nodejs.org/dist/v0.8.3/node-v0.8.3.tar.gz" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.{File, PrintWriter} | |
import org.json4s.jackson.JsonMethods._ | |
def printToFile(f: File)(op: PrintWriter => Unit) { | |
val p = new java.io.PrintWriter(f) | |
try { op(p) } finally { p.close() } | |
} | |
object jsonGen extends JsonGen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.snowplowanalytics.schemaguru.utils; | |
import java.io.*; | |
import com.fasterxml.jackson.core.*; | |
import com.fasterxml.jackson.core.util.DefaultPrettyPrinter; | |
public class SuperPrinter extends DefaultPrettyPrinter | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dockerfile | |
FROM java:7 | |
MAINTAINER Snowplow Analytics, support@snowplowanalytics.com | |
WORKDIR / | |
USER daemon | |
EXPOSE 8000 | |
ADD start.sh /tmp/ | |
CMD ./tmp/start.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
""" | |
Stupid EC2 meta data instance mock | |
Save this file as server.py | |
>>> python server.py 0.0.0.0 8001 | |
serving on 0.0.0.0:8001 | |
or simply |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ami-id" : "ami-d05e75b8", | |
"ami-launch-index" : "0", | |
"ami-manifest-path" : "(unknown)", | |
"block-device-mapping" : { | |
"ami" : "/dev/sda1", | |
"root" : "/dev/sda1" | |
}, | |
"hostname" : "ip-172-31-9-37.ec2.internal", | |
"instance-action" : "none", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"meta-data" : { | |
"ami-id" : "ami-d05e75b8", | |
"ami-launch-index" : "0", | |
"ami-manifest-path" : "(unknown)", | |
"block-device-mapping" : { | |
"ami" : "/dev/sda1", | |
"root" : "/dev/sda1" | |
}, | |
"hostname" : "ip-172-31-9-37.ec2.internal", |
OlderNewer