Skip to content

Instantly share code, notes, and snippets.

View digideskio's full-sized avatar

airbender digideskio

View GitHub Profile
@digideskio
digideskio / enki.yml
Created December 14, 2016 08:28 — forked from dekom/enki.yml
Enki Setup
# Configuration options for your blog - customise to taste
# This file contains no secret information, so can be stored in source control (unlike database.yml)
title: <Blog Title>
url: <Blog URL>
author:
name: <Your Name> # For copyright notice and ATOM feeds
email: <Your Email> # Exception emails will go here, and it is used in ATOM feeds
open_id: # These are used to login to the admin area
- <Your open_id url> # Mine is http://dekom.myopenid.com
@digideskio
digideskio / closeio.rb
Created December 13, 2016 07:29 — forked from philfreo/close-api.rb
Close.io Ruby RestClient Example
require 'rest_client'
require 'json'
API_KEY = 'your api key here'
api_base = 'https://' + API_KEY + ':@app.close.io/api/v1/'
# get info about yourself
RestClient.get api_base+'me/'
# post a lead
@digideskio
digideskio / install.sh
Created December 11, 2016 02:24
Install CS Docker Engine 1.12
#!/bin/bash
curl -s 'https://sks-keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d56f59a178ac6c6238f52e' | apt-key add --import
apt-get update && apt-get upgrade -y && apt-get install -y apt-transport-https
apt-get install -y linux-image-extra-virtual
echo "deb https://packages.docker.com/1.12/apt/repo ubuntu-trusty main" | tee /etc/apt/sources.list.d/docker.list
apt-get update && sudo apt-get install -y docker-engine
@digideskio
digideskio / install-docker-cs-engine1-10.sh
Created December 11, 2016 02:20 — forked from alanwill/install-docker-cs-engine1-10.sh
Install latest Docker CS Engine 1.10 on ubuntu. This assumes that `linux-image-extra-virtual` is already installed.
#!/bin/bash
curl -s 'https://sks-keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d56f59a178ac6c6238f52e' | apt-key add --import
apt-get update -y && apt-get install apt-transport-https -y
echo "deb https://packages.docker.com/1.10/apt/repo ubuntu-trusty main" | tee /etc/apt/sources.list.d/docker.list
apt-get update -y && sudo apt-get install docker-engine -y
service docker start
usermod -a -G docker ubuntu
{
"indent" : {
"value": " ",
"ArrayExpression": 1,
"AssignmentExpression": 1,
"BinaryExpression": 1,
"ConditionalExpression": 1,
"CallExpression": 1,
"CatchClause": 1,
"ConditionalExpression": 1,
@digideskio
digideskio / kimono-example.js
Created December 11, 2016 01:24 — forked from tcrosen/kimono-example.js
Kimono Example
var moment = require('moment-range');
var request = require('request');
var _ = require('lodash');
var url = require('url');
var start = new Date(2014, 9, 8);
var end = new Date();
var range = moment().range(start, end);
// Gets boxscore links from scores page
@digideskio
digideskio / install_xenserver_usb.md
Created December 10, 2016 18:56 — forked from thuandt/install_xenserver_usb.md
Create XenServer USB Install

Installing XenServer 6.2.0 from a USB Stick

  • Download the XenServer 6.2.0 ISO image

  • Format a USB stick using FAT32.

  • Use unetbootin to install the ISO to the USB stick. Use the “DiskImage” option instead of the “Distribution” one, and point it right to the ISO file.

  • Now we need to fix up some boot stuff (All paths are relative to the root of the USB drive)

Cosmos 9.3 (22,172)
Super Mario World 9.3 (1,919)
Whitlock 9.1 (8)
Pride and Prejudice 9.0 (53,965)
For the Life of the World 8.9 (9)
Niko and the Sword of Light 8.9 (42)
Undercover 8.9 (24,235)
Twin Peaks 8.9 (112,001)
Top Gear 8.8 (81,037)
Descending
@digideskio
digideskio / countries.json
Created December 4, 2016 03:34 — forked from keeguon/countries.json
A list of countries in JSON
[
{name: 'Afghanistan', code: 'AF'},
{name: 'Åland Islands', code: 'AX'},
{name: 'Albania', code: 'AL'},
{name: 'Algeria', code: 'DZ'},
{name: 'American Samoa', code: 'AS'},
{name: 'AndorrA', code: 'AD'},
{name: 'Angola', code: 'AO'},
{name: 'Anguilla', code: 'AI'},
{name: 'Antarctica', code: 'AQ'},
@digideskio
digideskio / spell.py
Created December 3, 2016 02:12 — forked from gschizas/spell.py
Spell almost any email in NATO phonetic alphabet
#!/usr/bin/python
# -*- coding: utf-8 -*-
# inspired by a comment in http://redd.it/mmr8m
import sys
letters = {' ': 'space',
'a': 'alfa', 'b': 'bravo', 'c': 'charlie', 'd': 'delta',