Skip to content

Instantly share code, notes, and snippets.

@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
@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 / test.md
Created June 13, 2014 01:36
Scratch pad

Some "testing" of Github's parser.

@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 / 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 / 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 / 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 / Package info.txt
Created December 31, 2016 15:10
dev-python/PyQT4-4.11.4-r1 fails a build
sandra ~ # emerge --info '=dev-python/PyQt4-4.11.4-r1::gentoo'
Portage 2.3.0 (python 2.7.12-final-0, default/linux/amd64/13.0/desktop, gcc-4.9.4, glibc-2.22-r4, 4.8.15-sandra x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-4.8.15-sandra-x86_64-Intel-R-_Core-TM-_i5-4670K_CPU_@_3.40GHz-with-gentoo-2.3
KiB Mem: 32905212 total, 8341308 free
KiB Swap: 4194300 total, 4194300 free
Timestamp of repository gentoo: Sat, 31 Dec 2016 14:00:01 +0000
sh bash 4.3_p48-r1
@STrRedWolf
STrRedWolf / README.md
Last active September 4, 2017 15:55
Pi Zero cluster setup.

A bit of a Pi Zero cluster setup I'm getting together, with some setup notes in case I have to rebuild it.

Four Pi Zero's connected to a Pi 2, which is connected to the network via Ethernet or Wifi.

The below script should leave the Pi Zero's mounted to verify things.

@STrRedWolf
STrRedWolf / scantest.pl
Created October 1, 2017 12:33
Deduplication tool
#/usr/bin/perl
#use Digest::FarmHash qw(farmhash64);
use File::Find;
use DBI;
use Digest::SHA qw(sha256_hex);
#use bigint;
$|=1;