Skip to content

Instantly share code, notes, and snippets.


Stefan stefanschmidt

View GitHub Profile
stefanschmidt /
Last active Feb 21, 2017 — forked from anonymous/gist:276271
The Daily Show Downloader
# This script depends on curl and rtmpdump.
# For playback I recommend mplayer.
# Suggestions are welcome.
RTMPDUMP="rtmpdump" # the name of the binary
set -eu
# Vimeo Downloader
# Copyright (C) 2008, 2010 Denver Gingerich
# Copyright (C) 2009 Jori Hamalainen
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
stefanschmidt /
Last active Oct 3, 2015
Enable Remote Management on OS X
# Configure Remote Management
kickstart -configure -allowAccessFor -allUsers -privs -all
# Enable Remote Management
kickstart -activate -restart -agent
# Disable Remote Management
kickstart -deactivate -stop
stefanschmidt / toggle-screen-sharing
Last active May 18, 2020
Enable/Disable Screen Sharing on OSX
View toggle-screen-sharing
# Enable Screen Sharing
sudo launchctl load -w /System/Library/LaunchDaemons/
# Disable Screen Sharing
sudo launchctl unload -w /System/Library/LaunchDaemons/
stefanschmidt /
Last active Oct 7, 2015 — forked from AriX/
Script to check for Mac OS X 10.8 Mountain Lion
USER_AGENT="iMacAppStore/1.0.1 (Macintosh; U; Intel Mac OS X 10.6.7; en) AppleWebKit/533.20.25"
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 / enable_chrome_third_party
Last active Dec 11, 2015
Permanently enable installation of Chrome extensions from arbitrary third-party sources
View enable_chrome_third_party
defaults write ExtensionInstallSources -array '"<all_urls>"'
stefanschmidt /
Last active Sep 8, 2017
Update the Flash Player on OS X via CLI
# Check here for the URL of the current release:
curl -O
# The -nobrowse prevents the mounted image from showing up in the OS X Finder
hdiutil attach -nobrowse install_flash_player_osx.dmg
# Non-interactive installation
cd /Volumes/Flash\ Player/Install\ Adobe\ Flash\
sudo installer -verbose -pkg Adobe\ Flash\ Player.pkg -target /
stefanschmidt / Solarized.terminal
Last active Dec 14, 2015
Solarized Colors for Mountain Lion's
View Solarized.terminal
<!-- -->
<!-- See -->
<!-- -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
stefanschmidt / dircolors-solarized
Created Mar 3, 2013
Solarized Colors for GNU dircolors
View dircolors-solarized
# Heavily customized version of Sebastian Tramp's dircolors-solarized
# Below, there should be one TERM entry for each termtype that is colorizable
TERM ansi
TERM color_xterm
TERM color-xterm
TERM con132x25
stefanschmidt / reset-lsdb
Last active Dec 14, 2015
Reset the OS X Launch Service database to remove duplicate menu entries
View reset-lsdb
lsregister -kill -r -v -all local,system,user