Skip to content

Instantly share code, notes, and snippets.

@dozzman
dozzman / unstable_deps
Created May 22, 2016 00:14
Output of `npm ls` in the `UNSTABLE` parse 2.2.7 server directory
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
@dozzman
dozzman / stable_deps
Last active May 22, 2016 00:15
Output of `npm ls` in the `STABLE` parse 2.2.7 server directory
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
#! /bin/bash
wget -O - http://debian.hyperdex.org/hyperdex.gpg.key | apt-key add -
cat >> /etc/apt/sources.list.d/hyperdex.list << EOF
deb [arch=amd64] http://debian.hyperdex.org wheezy main
EOF
apt-get update
apt-get install -y hyperdex java-hyperdex-client python-hyperdex-admin python-hyperdex-client
@dozzman
dozzman / AppDelegate.swift
Created August 21, 2015 13:53
AppDelegate with push notifications implemented
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate, GGLInstanceIDDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// register for push notifications
var types = UIUserNotificationType.Alert | UIUserNotificationType.Sound | UIUserNotificationType.Badge
var settings = UIUserNotificationSettings(forTypes: types, categories: nil)
@dozzman
dozzman / gist:4fd1d10effc1ee65db56
Created January 23, 2015 16:12
Working Nexmo Number Callback Change
using System;
using System.Net;
public class HelloWorld
{
static public void Main ()
{
string api_key = "xxxxx";
string api_secret = "xxxxx";
string country = "xx";