Skip to content

Instantly share code, notes, and snippets.

@avnerbarr
avnerbarr / devices
Created February 9, 2016 10:17
get the devices from a mobile.provision file
security cms -D -i path/to/file
@avnerbarr
avnerbarr / gist:a46b1f651b16f647389e
Created May 2, 2015 19:53
Test parallax controller
//
// ViewController.swift
// ParallaxTableVIew
//
// Created by Avner on 5/2/15.
// Copyright (c) 2015 Avner. All rights reserved.
//
import UIKit
@avnerbarr
avnerbarr / Parallax for a table view
Last active August 29, 2015 14:20
Parallax table view helper
//
// ParallaxController.swift
// ParallaxTableVIew
//
// Created by Avner on 5/2/15.
// Copyright (c) 2015 Avner. All rights reserved.
//
import UIKit
@objc protocol ParallaxControllerDelegate {
@avnerbarr
avnerbarr / installstatsd
Created July 3, 2013 12:39
Installing StatsD to write to mongodb by a total systems noob - some what annoying thing to do and time time consuming because nothing seems to work the first time. There aren't that many configurations but you got to get them right. This gist is more of a walkthrough and less of an automated install like you would probably wish there was. There…
I installed Statsd on Ubuntu 12.04.2 LTS (GNU/Linux 3.2.0-48-virtual x86_64)
Get node (i think that the repo for it changed so check out a different way to install)
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python-software-properties git-core
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
@avnerbarr
avnerbarr / graphite
Created July 3, 2013 11:39
Installing Graphite server on Ubuntu 13.04 (GNU/Linux 3.8.0-25-generic x86_64) by a total noob. Server configuration is annoying, especially when you are a developer and not a systems guy. Getting things right took ages. Now it seems to work for me. Try this script out
sudo apt-get update
sudo apt-get upgrade
wget http://launchpad.net/graphite/0.9/0.9.9/+download/graphite-web-0.9.9.tar.gz
wget http://launchpad.net/graphite/0.9/0.9.9/+download/carbon-0.9.9.tar.gz
wget http://launchpad.net/graphite/0.9/0.9.9/+download/whisper-0.9.9.tar.gz
tar -zxvf graphite-web-0.9.9.tar.gz
tar -zxvf carbon-0.9.9.tar.gz
tar -zxvf whisper-0.9.9.tar.gz
mv graphite-web-0.9.9 graphite