Last tested using Mac OS X 10.8 Mountain Lion
Copy Dropbox folder from previous drive to user folder
# Using Terminal set MplayerX SeekStep to 8s. | |
cd ~/Library/Preferences/ | |
defaults write org.niltsh.MPlayerX SeekStepTimeR 8 | |
defaults write org.niltsh.MPlayerX SeekStepTimeL 8 | |
# Then restart MplayerX.app if it is running. |
There have been several HOWTOs posted regarding streaming the 2012 Olympics using HTTP / SOCKS proxies via SSH and other similar methods. None of these actually work using the latest Flash on Mountain Lion (with Firefox, Chrome or Safari). Additionally, the third-party streaming sites don't provide BBC's amazing interface, which lets you quickly skip to individual competitors and events. However, setting up an OpenVPN server does work, with some tweaks. You'll get the exact same UX that people in England receive.
Get a Linode VM in the UK. The 512MB server for $20 works just fine. (If you want to use my referral link, go for it: http://bit.ly/OuzdVe)
Follow the standard OpenVPN installation documentation. (Basically, 'apt-get install openvpn' or 'yum install openvpn' and then follow these docs: http://openvpn.net/index.php/open-source/documentation/howto.html). For an OS X client, I prefer Viscosity: http://www.thesparklabs
// Add a getElementsByClassName function if the browser doesn't have one | |
// Limitation: only works with one class name | |
// Copyright: Eike Send http://eike.se/nd | |
// License: MIT License | |
if (!document.getElementsByClassName) { | |
document.getElementsByClassName = function(search) { | |
var d = document, elements, pattern, i, results = []; | |
if (d.querySelectorAll) { // IE8 | |
return d.querySelectorAll("." + search); |
// @name Remove your favorite tweets with links | |
// @description 因为我本人使用了pinboard服务自动保存带link的fav的tweets功能,所以这样的话保存的东西就重复了。twitter一份pinboard一份,所以我需要移除twitter上的带有链接的tweets。于是有了这个蛋疼的脚本。建议一直下拉到底部等加载完全部的favorite tweets之后再使用。This script can remove all your favorite tweets with links. Enjoy :D | |
// @author leeiio | |
//console版本 | |
$(".js-stream-item").each(function(i){ | |
var $this = $(this); | |
if($this.find('.js-tweet-text .twitter-timeline-link').length) | |
$this.find('.unfavorite').trigger('click'); |
// ==UserScript== | |
// @name Use Markdown, sometimes, in your HTML. | |
// @author Paul Irish <http://paulirish.com/> | |
// @link http://git.io/data-markdown | |
// @match * | |
// ==/UserScript== | |
// If you're not using this as a userscript just delete from this line up. It's cool, homey. |
/* | |
Read more here: | |
https://developer.mozilla.org/en/CSS/@-moz-document | |
For more browser-specific hacks: | |
http://paulirish.com/2009/browser-specific-css-hacks | |
*/ | |
@-moz-document url-prefix() { | |
/* Put your Firefox specific code here. */ |
In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.
For less, I'm using the ruby version because this is what they suggest on the website. The javascript version may be different.
$.noConflict(); | |
jQuery(document).ready(function($){ | |
$('.audio').each(function(){ | |
var match = $(this).find('script').html().match(/audio_file=(.*)\\x26/); | |
$(this).find('span').html('<audio src="'+match[1]+'?plead=please-dont-download-this-or-our-lawyers-wont-let-us-host-audio" controls="controls">Your browser does not support the audio element.</audio>').remove(); | |
$(this).find('script').remove(); | |
}); | |
}); |