Skip to content

Instantly share code, notes, and snippets.

@mxcl
mxcl / uninstall_homebrew.sh
Created August 26, 2011 11:25
Uninstall Homebrew
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@karolk
karolk / ie6-throttle.js
Created July 4, 2012 13:32
Detect that the user is running IE6 and sets the screen update rate at 1 refresh per 10 seconds. This makes the website look very slow. The setting will continue to work in a browser window even if the user visits a different website as IE6 sets this for
navigator.userAgent.toLowerCase().indexOf("msie 6.")!=-1&&(screen.updateInterval=10000);
@iamtyce
iamtyce / rockhammer-respond-to-mixin.scss
Last active December 18, 2015 11:49
Simple mixin to write inline responsive arguments within Rockhammer
// Respond-to mixin for Rock Hammer (https://github.com/malarkey/rock-hammer/)
// Author: @iamtyce
// Original author: @wernah, based on @benschwarz
// ******************** //
// RESPOND TO //
// ******************** //
// Use: @include respond-to(bp5) { }
@mixin respond-to($breakpoint) {
@gruber
gruber / make_bookmarklet.pl
Last active May 5, 2024 21:11
JavaScript Bookmarklet Builder
#!/usr/bin/env perl
#
# http://daringfireball.net/2007/03/javascript_bookmarklet_builder
use strict;
use warnings;
use URI::Escape qw(uri_escape_utf8);
use open IO => ":utf8", # UTF8 by default
":std"; # Apply to STDIN/STDOUT/STDERR