Skip to content

Instantly share code, notes, and snippets.

View WorldWideWebDev's full-sized avatar

Ant Man WorldWideWebDev

  • Austria-lia
View GitHub Profile
@kopiro
kopiro / spotify-castv2-client-example.js
Last active November 27, 2020 11:31
Spotify CastV2 Client example
const Client = require('castv2-client').Client;
const Spotify = require('./Spotify');
const mdns = require('mdns');
const browser = mdns.createBrowser(mdns.tcp('googlecast'));
browser.on('serviceUp', function(service) {
console.log('found device "%s" at %s:%d', service.txtRecord.fn, service.addresses[0], service.port);
if (service.txtRecord.fn === process.env.SPOTFIY_DEVICE) {
ondeviceup(service.addresses[0], service.txtRecord.fn);
@sidward35
sidward35 / DigiKeyboard.h
Created July 27, 2017 03:34
Digispark USB Keyboard & Mouse
/*
* Based on Obdev's AVRUSB code and under the same license.
*
* TODO: Make a proper file header. :-)
* Modified for Digispark by Digistump
*/
#ifndef __DigiKeyboard_h__
#define __DigiKeyboard_h__
#include <Arduino.h>
@superjamie
superjamie / raspberry-pi-vpn-router.md
Last active April 13, 2024 12:22
Raspberry Pi VPN Router

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to: