Skip to content

Instantly share code, notes, and snippets.

Verifying that "pofmagicfingers.id" is my Blockstack ID. https://onename.com/pofmagicfingers
@PofMagicfingers
PofMagicfingers / vlc_remaining.rb
Created August 9, 2017 08:58
Show remaining time in vlc, and current listener count in a icecast webradio
#!/usr/bin/env ruby
require 'rubygems'
require 'nokogiri'
require 'open-uri'
VLC_URL = "http://vlc:8080/requests/status.xml"
ICECAST_STATUS = "http://webradio:8000/status2.xsl"
l_count = 0
ccount = 0
@PofMagicfingers
PofMagicfingers / apkdebug.sh
Created July 21, 2017 14:58
Enable debugging flag on an APK using apktool. Can be useful to debug cordova, etc on already compiled apps
#!/bin/sh
command -v apktool >/dev/null 2>&1 || { echo >&2 "I require apktool but it's not installed. Aborting."; exit 1; }
command -v keytool >/dev/null 2>&1 || { echo >&2 "I require keytool but it's not installed. Aborting."; exit 1; }
command -v jarsigner >/dev/null 2>&1 || { echo >&2 "I require jarsigner but it's not installed. Aborting."; exit 1; }
TMPDIR=`mktemp -d 2>/dev/null || mktemp -d -t 'apkdebug'`
APK=$1
DEBUG_APK="${APK%.*}.debug.apk"
if [ -f $APK ]; then
body { background-color: rgba(0, 0, 0, 0); margin: 0px auto; overflow: hidden; } .yt-live-chat-header-renderer-0, #action-panel { display: none; } .yt-live-chat-renderer-0 { background: none !important; } yt-live-chat-text-message-renderer { background: #424242;
border-radius: 5px;
font-size: 20px !important;
padding: 2px;
margin: 10px;
}
.yt-icon-0 {
width: 24px !important; height: 24px !important;
}