Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
#!/usr/bin/env python | |
"""An mDNS daemon designed to appear, to the iPad app, to be a TiVo Premiere.""" | |
import Zeroconf | |
import socket | |
local_ip = socket.gethostbyname(socket.gethostname()) | |
local_ip = socket.inet_aton(local_ip) |
#!/bin/sh | |
# Just copy and paste the lines below (all at once, it won't work line by line!) | |
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY! | |
function abort { | |
echo "$1" | |
exit 1 | |
} | |
set -e |
from functools import wraps | |
from timeit import default_timer | |
import gevent | |
from gevent.queue import Queue | |
def gevent_throttle(calls_per_sec=0): | |
"""Decorates a Greenlet function for throttling.""" | |
interval = 1. / calls_per_sec if calls_per_sec else 0 | |
def decorate(func): | |
blocked = [False] # has to be a list to not get localised inside the while loop |
#!/bin/sh | |
# | |
######################################### | |
# iTunes Command Line Control v1.1 | |
# written by David Schlosnagle | |
# created 2001.11.08 | |
# edit 2010.06.01 rahul kumar | |
# edit 2012.12.08 Michael F. Weinberg | |
######################################### |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "ubuntu1204_64" |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
#!/bin/sh | |
# | |
#################################### | |
# iTunes Command Line Control v1.0 | |
# written by David Schlosnagle | |
# created 2001.11.08 | |
# @edited Mateusz Gachowski | |
#################################### | |
showHelp () { |
<?php | |
$file = 'cache.txt'; | |
$time = filemtime($file); | |
if(time() > $time+300) { | |
$cache = false; | |
$url = 'https://www.indiegogo.com/projects/the-dragonfly-futurefon--3/show_tab/comments?count=9999'; |
'use strict'; | |
// controllers/alexa-skills.controller.js | |
// Based on https://github.com/mattwelch/alexa-sonos/blob/master/sonos.controller.js | |
// Adapted to use sonos-client.js | |
// Reference implementation for Alexa Skills Kit service. | |
// https://developer.amazon.com/edw/home.html#/skills |