Skip to content

Instantly share code, notes, and snippets.

HOWTO: iPhone AT&T Tethering

In 10 steps:

  • Update iTunes to 8.2 via Software Update
  • Update your iPhone to the 3.0 release (out today - June 17th)
  • Download this dmg and mount it: tethering file
  • Enable hidden carrier testing option (in Terminal.app): defaults write com.apple.iTunes carrier-testing -bool TRUE
  • Start up iTunes
@jbrewer
jbrewer / browser_target.js
Created February 20, 2012 00:45
Rogie King's sweet little JS snippet to get data-attr that you can use to target browsers.
<script>var b = document.documentElement;b.setAttribute('data-useragent', navigator.userAgent);b.setAttribute('data-platform', navigator.platform );</script>
@jbrewer
jbrewer / last_child.js
Created April 15, 2012 05:42 — forked from nathansmith/last_child.js
Force IE7 & IE8 to respect :last-child
// Heavy-handed way to force IE7 & IE8 to respect :last-child.
// Note: Using jQuery. Adjust to suit your library, etc.
//
// Style via...
//
// element:last-child,
// element.last-child {
// /* Style here */
// }
//
@jbrewer
jbrewer / gist:2571697
Created May 1, 2012 21:45
Custom webkit scrollbar
::-webkit-scrollbar {
margin-right: 5px;
background-color: #eee;
width: 12px;
}
::-webkit-scrollbar-track {
-webit-box-shadow: 0 0 2px #ccc;
box-shadow: 0 0 2px #ccc;
}
::-webkit-scrollbar-thumb {
@jbrewer
jbrewer / gist:2758580
Created May 20, 2012 15:49 — forked from cameronmcefee/gist:2641743
Font Configuration File
# Font Squirrel Font-face Generator Configuration File
# Upload this file to the generator to recreate the settings
# you used to create these fonts.
{"mode":"expert","formats":["ttf","woff","eot","svg"],"tt_instructor":"default","options_subset":"advanced","subset_custom":"","subset_custom_range":"f000-f073,f200-f273","filename_suffix":"-webfont","emsquare":"2048","spacing_adjustment":"0","rememberme":"Y"}
@jbrewer
jbrewer / Fullpage.html
Created June 20, 2012 16:50
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CSS3 iPhone v0.1 &middot; CodePen</title>
<style>
@jbrewer
jbrewer / Fullpage.html
Created June 20, 2012 16:50
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CSS3 iPhone v0.1 &middot; CodePen</title>
<style>
@jbrewer
jbrewer / vunits.js
Created August 5, 2012 07:23 — forked from LeaVerou/vunits.js
Static polyfill for vw, vh, vm units
/**
* Polyfill for the vw, vh, vm units
* Requires StyleFix from -prefix-free http://leaverou.github.com/prefixfree/
* @author Lea Verou
*/
(function() {
if(!window.StyleFix) {
return;
@jbrewer
jbrewer / rem-calibrate.css
Created August 5, 2012 07:29 — forked from brianblakely/rem-calibrate.css
Simulate vw with rems
/* Android stock browser won't let you set font-size smaller than 8px unless you apply this. */
:root {
-webkit-text-size-adjust: none;
-moz-text-size-adjust: none;
-ms-text-size-adjust: none;
-o-text-size-adjust: none;
text-size-adjust: none;
}
@jbrewer
jbrewer / gist:3301010
Created August 9, 2012 04:33 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt