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
├─┬ babel-cli@6.9.0
│ ├─┬ bin-version-check@2.1.0
│ │ ├─┬ bin-version@1.0.4
│ │ │ └─┬ find-versions@1.2.1
│ │ │ └── semver-regex@1.0.0
│ │ ├── semver@4.3.6
│ │ └─┬ semver-truncate@1.1.0
│ │ └── semver@5.1.0
│ ├─┬ chalk@1.1.1
│ │ ├── ansi-styles@2.2.1
@dozzman
dozzman / stable_deps
Last active May 22, 2016 00:15
Output of `npm ls` in the `STABLE` parse 2.2.7 server directory
├─┬ babel-cli@6.8.0
│ ├─┬ bin-version-check@2.1.0
│ │ ├─┬ bin-version@1.0.4
│ │ │ └─┬ find-versions@1.2.1
│ │ │ └── semver-regex@1.0.0
│ │ ├── semver@4.3.6
│ │ └─┬ semver-truncate@1.1.0
│ │ └── semver@5.1.0
│ ├─┬ chalk@1.1.1
│ │ ├── ansi-styles@2.2.1
#! /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";