Skip to content

Instantly share code, notes, and snippets.

View stefanschmidt's full-sized avatar

Stefan stefanschmidt

  • Hamburg, Germany
View GitHub Profile
@stefanschmidt
stefanschmidt / daily-show-downloader.sh
Last active February 21, 2017 19:46 — forked from anonymous/gist:276271
The Daily Show Downloader
#!/bin/bash
#
# This script depends on curl and rtmpdump.
# For playback I recommend mplayer.
# Suggestions are welcome.
#
RTMPDUMP="rtmpdump" # the name of the binary
set -eu
@stefanschmidt
stefanschmidt / mountain-lion.sh
Last active October 7, 2015 13:58 — forked from AriX/mountainlion.sh
Script to check for Mac OS X 10.8 Mountain Lion
#!/bin/bash
USER_AGENT="iMacAppStore/1.0.1 (Macintosh; U; Intel Mac OS X 10.6.7; en) AppleWebKit/533.20.25"
STORE_URL="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewMultiRoom?fcId=489264329&mt=12&s=143461"
SEARCH_STRING="mountain lion"
clear; echo -n "Waiting for Mountain Lion"
while true; do
if curl -sA "$USER_AGENT" "$STORE_URL" | grep -i "$SEARCH_STRING" > /dev/null; then
@stefanschmidt
stefanschmidt / rubycocoa.rb
Last active December 24, 2015 07:39
Homebrew formula for RubyCocoa
require 'formula'
class Rubycocoa <Formula
url 'http://downloads.sourceforge.net/project/rubycocoa/RubyCocoa/1.0.5/RubyCocoa-1.0.5.tar.gz'
homepage 'http://rubycocoa.sourceforge.net/'
sha1 '7e176eebb4ee59e2b45f03de0b9ae38028876236'
depends_on 'libxml2'
def keg_only?
@stefanschmidt
stefanschmidt / gnur_gui.rb
Last active December 24, 2015 18:19 — forked from woahdae/r_app.rb
Homebrew formula for GNU R GUI
require 'formula'
class RApp < Formula
ARCHS = "x86_64"
SYSTEM = "SnowLeopard64"
url 'http://cran.r-project.org/bin/macosx/Mac-GUI-1.62.tar.gz'
homepage 'http://cran.r-project.org/bin/macosx/'
sha1 '3f7ef605076cf537b304a05d979ae44d3cb054ab'
keg_only "This is a gui app (and a brew antipattern as such, but whatev)"