Skip to content

Instantly share code, notes, and snippets.

@yocontra
yocontra / rick-roll.js
Created August 13, 2013 07:34
Demo for nodecast
var nodecast = require('nodecast');
var stream = nodecast.find();
stream.on('device', function(device) {
console.log('Found device', device.name);
var youtube = device.app('YouTube');
// you can change this video to anything you want
youtube.start('v=oHg5SJYRHA0', function(err) {
@przemoc
przemoc / gitio
Last active February 2, 2022 11:59
Turn a github.com URL into a git.io URL.
#!/bin/sh
# SPDX-License-Identifier: MIT
## Copyright (C) 2011 Przemyslaw Pawelczyk <przemoc@gmail.com>
##
## This script is licensed under the terms of the MIT license.
## https://opensource.org/licenses/MIT
#
# Usage: gitio URL [CODE]
#