The instructions here are useful although the current packages in Arch and Debian repositories do not work with iOS 7 (Trust Loop Bug) but it is still a good starting point to understand how this works.
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/env node | |
var fs = require('graceful-fs'); | |
var crypto = require('crypto'); | |
var glob = require("glob"); | |
var pathlib = require('path'); | |
var dict = {}; | |
var pattern = "530755bkup082911/**/*"; | |
console.log("Walking directory tree ..."); | |
var paths = glob.sync(pattern); |
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
// Could send base64 to browser and work on it there | |
// http://blog.danguer.com/2011/10/24/base64-binary-decoding-in-javascript/ | |
// nice explanation of readable streams | |
// http://codewinds.com/blog/2013-08-04-nodejs-readable-streams.html | |
// official docs about it | |
// http://nodejs.org/api/stream.html#stream_class_stream_readable | |
// more jump off points |
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
var data = { | |
people: [ | |
{ | |
"id": "1", | |
"img": "1-dan.jpg", | |
"name": "Dan" | |
}, | |
{ | |
"id": "2", | |
"img": "2-ron.jpg", |
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
var token = process.env.NOS_TOKEN; | |
var relayServer = process.env.RELAY_SERVER; | |
if (!token) { throw new Error("missing environment variable NOS_TOKEN"); } | |
if (!relayServer) { throw new Error("missing environment variable RELAY_SERVER"); } | |
(function() { | |
"use strict"; | |
var config = { |
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
# curl https://gist.github.com/keyvanfatehi/ea54e9bcc663782562d6/raw/manifest.sh | bash | |
# i use this for VMs, will update as needed | |
sudo apt-get update && sudo apt-get install git tmux vim | |
git clone https://github.com/keyvanfatehi/config.git && cd config && bash manifest |
An all-in-one image running graphite and carbon-cache. Version: 0.9.12.
This script contains a sensible default configuration of graphite and carbon-cache. Starting this container will, by default, bind the the following host ports:
80
: the graphite web interface2003
: the carbon-cache line receiver (the standard graphite protocol)
- indexer and shipper setups
- TODO: add auth layer between kibana and elasticsearch... https://github.com/fangli/kibana-authentication-proxy ?
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
apt-get -y update | |
apt-get -y install linux-image-generic-lts-raring linux-headers-generic-lts-raring | |
reboot |
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
input { | |
lumberjack { | |
# The port to listen on | |
port => 32451 | |
# The paths to your ssl cert and key | |
ssl_certificate => "path/to/ssl.crt" | |
ssl_key => "path/to/ssl.key" | |
# Set this to whatever you want. |