Skip to content

Instantly share code, notes, and snippets.

View luckydonald's full-sized avatar
👀
294 people are currently looking at this profile

Luckydonald luckydonald

👀
294 people are currently looking at this profile
  • Some basement in Equestria.
View GitHub Profile
@luckydonald
luckydonald / cubietruck_shairport_relais.md
Created September 3, 2015 16:41
Still in progress.............

This documents how I did setup my Stereo to automatically turn on when I play music over airplay, and turns off afterwards.

FEX:

gpio_pin_5 = port:PB15<0><0><default><0>
using SteamKit2;
using System.Collections.Generic;
using SteamTrade;
using System;
using System.Timers;
namespace SteamBot
{
public class KeyUserHandler : UserHandler
{
using SteamKit2;
using SteamTrade;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Timers;
namespace SteamBot
{
public class ScrapUserHandler : UserHandler

Prerequirements

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install apt-rdepends

Get the stuff needed for compiling

sudo apt-get install `apt-rdepends python3 | grep ^lib`
@luckydonald
luckydonald / Api urls.md
Last active April 20, 2016 10:35 — forked from anonymous/Api urls
json api of several pages I encountered.
@luckydonald
luckydonald / utf8_javascript_decode
Created May 12, 2016 23:40
utf8 javascript decode
https://jsfiddle.net/wfr4tLku/0/ # http://stackoverflow.com/a/36949791/3423324
http://jsfiddle.net/Z9pQE/44/ # http://stackoverflow.com/a/17192845/3423324
http://jsfiddle.net/3VuLx/244/ # http://stackoverflow.com/a/22373135/3423324
@luckydonald
luckydonald / cubietruck_shairport-sync.md
Last active December 1, 2016 16:33
How to install an Airplay server (shairport-sync) on a Cubietruck

Install Shairport-Sync on a Cubieboard

I did the steps in this Cubietruck GPIO tutorial before, so I might miss dependencies already installed there. If that is the case, bug me in a comment.

Licensed under a Luna-Will-Cry-If-You-Modify-Or-Redistribute-This 1.0 licence.

Install dependencies

source

sudo apt-get install -y autoconf libtool libdaemon-dev libasound2-dev libpopt-dev avahi-daemon libavahi-client-dev libssl-dev git
sudo apt-get install -y libsoxr-dev
Hier die Schritte zum Installieren/Compilieren:
0- Download
http://www.cygwin.com/
Download > Richtige Version (meist 64 Bit)
https://cygwin.com/setup-x86.exe
Dann kann schon mal mit SChritt (1) gestartet werden.
http://web.stanford.edu/group/radar/softwareandlinks/sw/snaphu/
@luckydonald
luckydonald / diff.patch
Created March 4, 2018 11:46 — forked from strazzere/diff.patch
rsakeyfinder
[35%]tstrazzere@bebop:[rsakeyfind] $ diff rsakeyfind.cpp-fixed rsakeyfind/rsakeyfind.cpp-original
colordiff 1.0.10 (http://colordiff.sourceforge.net/)
(C)2002-2012 Dave Ewart, davee@sungate.co.uk
4,5d3
<
< #include <unistd.h>
8a7
> #include <fcntl.h>
<html>
<head>
<title>Test</title>
<meta charset="utf-8" />
<meta name="apple-mobile-web-app-title" content="something" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, height=device-height">
<style>