Skip to content

Instantly share code, notes, and snippets.

@STrRedWolf
STrRedWolf / PiTunesSync.md
Created January 1, 2015 14:18
Using a Raspberry Pi to sync podcasts in iTunes on a Mac.

Like many people, I would like my podcasts delivered to my iPhone before I go to work. While there are many ways of doing it, Apple seems to screw things up every time they release a new MacOS X version.

With me, that version was Yosemite. They essentially broke cron.

So? Lets throw some hardware at it. While I use a Cubietruck, a Raspberry Pi will do just as good! Just make sure it's connected to the network and has ntpd keeping it's clock up to date (Rasbian does this for you).

On the Mac:

  1. Go into your System Preferences (read: Control Panel), hit the Sharing panel, and turn on "Remote Login". This starts the Mac's SSH server and gives you the command to use to access the Mac. You need the "username@blah.home" part.
  2. Save the two Applescripts below into your ~/Library/Scripts folder using the Script Editor (located in Applications >> Utilities).
@STrRedWolf
STrRedWolf / cudaminer.log
Created December 13, 2014 16:45
Traceback for Coinking
[2014-12-13 11:43:09] 1 miner threads started, using 'scrypt' algorithm.
[2014-12-13 11:43:09] Starting Stratum on stratum+tcp://us1.coinking.io:8888
[2014-12-13 11:43:09] JSON-RPC call failed: [
-1,
"'vertcoin'",
"Traceback: <type 'exceptions.KeyError'>: 'vertcoin'\n/usr/local/lib/python2.7/dist-packages/stratum/protocol.py:192:dataReceived\n/usr/local/lib/python2.7/dist-packages/stratum/protocol.py:238:lineReceived\n/usr/local/lib/python2.7/dist-packages/stratum/services.py:13:_handle_event\n/usr/local/lib/python2.7/dist-packages/stratum/services.py:81:call\n--- <exception caught here> ---\n/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:139:maybeDeferred\n/usr/local/lib/python2.7/dist-packages/stratum/services.py:78:_run\n/root/custom-stratum-scryptn/mining/service.py:143:subscribe\n"
]
[2014-12-13 11:43:09] ...retry after 15 seconds
^C
@STrRedWolf
STrRedWolf / gist:91782e098d79b6f3128b
Created November 18, 2014 13:07
STOP SHOUTING HACKADAY!
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("hackaday.com") {
h1,h2,h3,a {
text-transform: none !important;
}
}
@STrRedWolf
STrRedWolf / furstre.amtweaks.css
Created June 29, 2014 19:29
Furstre.am Chat tweaks
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("furstre.am") {
#comunica-chat-pane .msg {
margin: 2px !important;
}
#comunica-chat-pane .msg .content .details {
font-size: 8pt !important;
margin: 2px !important;
@STrRedWolf
STrRedWolf / test.md
Created June 13, 2014 01:36
Scratch pad

Some "testing" of Github's parser.

@STrRedWolf
STrRedWolf / Picarto Tweaks.css
Last active August 29, 2015 14:01
Stylish: Canmephian customization
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("picarto.tv") {
#msgs li {
font-size: 12px !important;
padding: 1px 1px 1px 1px !important;
line-height: 1.2em !important;
}
.msgAdminContent,.msgContent {
line-height: 1em !important;
@STrRedWolf
STrRedWolf / Stream_wolftv.sh
Created May 6, 2013 03:10
This is how to stream live video and transmux it to HTTP Live Streaming. Requires ffmpeg 1.2 or greater (no forked libav crap, it must be genuine original ffmpeg. Compile it yourself on Debian & Ubuntu!)
#!/bin/bash
rtmpdump -r 'rtmp://wolf.tv.macrophile.com/oflaDemo/wolftv' -v -q | \
ffmpeg -i pipe: -bsf h264_mp4toannexb -codec copy -map 0 -f ssegment \
-segment_list test.m3u8 -segment_time 4 -segment_wrap 24 \
-segment_format mpegts -segment_list_type hls stream%05d.ts