Skip to content

Instantly share code, notes, and snippets.

View adamstac's full-sized avatar

Adam Stacoviak adamstac

View GitHub Profile
@adamstac
adamstac / audio-setup.md
Created March 27, 2012 07:13
The Industry instructions for guest audio setup

The Industry: Guest Audio Setup

We take our audio seriously, and we really need you to take it seriously as well. Below are our instructions to help you get setup and sound your best on the show. Please take 5 minutes and read and follow these instructions.

Need help? Email or Tweet to Adam.

What you will need

  • Reliable internet connection. We prefer wired, but if you know for sure that your wireless connection is solid we'll trust you.
  • Skype account and you'll also need to add Adam. Just search for 'adamstac'.
$(document).ready(function() {
// Open external links in a new window
hostname = window.location.hostname
$("a[href^=http]")
.not("a[href*='" + hostname + "']")
.addClass('link external')
.attr('target', '_blank');
});
@adamstac
adamstac / disable-time-machine-mobilebackup.mdown
Created November 9, 2011 01:53
Disable Time Machine's MobileBackup

sudo tmutil disablelocal - Turn off local Time Machine snapshots and trigger automatic cleanup of accumulated local snapshot data. Requires root privileges.

sudo tmutil enablelocal - Turn on local Time Machine snapshots. Requires root privileges.

// WebKit: font-smoothing
// Values: none, antialiased (default), subpixel-antialiased
//
// References:
//
// 1. http://maxvoltar.com/sandbox/fontsmoothing/
// 2. http://maxvoltar.com/archive/-webkit-font-smoothing
@mixin font-smoothing($value: antialiased)
-webkit-font-smoothing: $value
# Custom aliases
# alias git=hub
alias drop='rm -Rf'
alias stash='git commit -a -m "WIP"'
alias pop='git reset --soft HEAD\^'
#main {
width: 100%;
}
aside {
width: 160px;
}
#sidebar {
width: 240px;
// `Clearfix
//--------------------------------------------------
// Can be added to other style rules via:
//
// #foobar
// @extend .clearfix
.clearfix
zoom: 1

Disable:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

Enable:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

@adamstac
adamstac / _sass-retina.sass
Created September 17, 2011 14:07 — forked from jamesfinley/Hi-res Graphic Mixin
A simple way to include both low-res and hi-res graphics for iOS/Desktop/etc.
@mixin hires-graphic($file, $type, $width, $height)
$file-name: $file + "." + $type
$retina-name: $file + "-retina." + $type
@media (-webkit-min-device-pixel-ratio: 2)
&
background-image: image-url($retina-name)
-webkit-background-size: $width $height
@adamstac
adamstac / ios-media-queries.sass
Created September 17, 2011 13:58
iOS Media Queries for iPhone/iPod, iPad & Retina and Non-Retina Devices
.ipad-only,
.iphone-only,
.retina-only,
.non-retina-only,
.retina-iphone-only,
.non-retina-iphone-only
display: none
// iPad Only
@media only screen and (device-width: 768px)