This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
echo ' | |
PATH=$HOME/go/bin:$PATH | |
export GOPATH=$HOME | |
export CDPATH=.:$HOME/src/golang.org/x:$HOME/go/src:$HOME/src/github.com:$HOME/src/github.com/nf:$HOME/src/github.com/adg | |
export EDITOR=vim | |
' >> ~/.profile | |
sudo apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"always_show_minimap_viewport": true, | |
"binary_file_patterns": | |
[ | |
"*.d.ts" | |
], | |
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow.tmTheme", | |
"detect_indentation": false, | |
"draw_minimap_border": true, | |
"folder_exclude_patterns": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"keys" : ["cmd+>"], | |
"command" : "nextBuildError" | |
}, | |
{ | |
"keys" : ["cmd+<"], | |
"command" : "prevBuildError" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"translate_spaces_to_tabs": true, | |
"translate_tabs_to_spaces": false, | |
"use_tab_stops": true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <AddressBook/AddressBook.h> | |
static NSString* defaultEmail() | |
{ | |
NSString* result = @""; | |
@try { | |
ABPerson *me = [[ABAddressBook sharedAddressBook] me]; | |
if (me == nil) return result; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
while [ 1 ] | |
do | |
curl -s 'http://store.apple.com/ca/browse/home/shop_ipad/family/ipad/select?mco=MjE2MjYyNzA' | grep -i "Currently unavailable" > /dev/null | |
if [ $? == 0 ]; then | |
echo "`date` — not available" | |
else | |
echo "`date` — available" | |
say "iPad 2 Is Available! iPad 2 Is Available! iPad 2 Is Available! iPad 2 Is Available! iPad 2 Is Available! iPad 2 Is Available! iPad 2 Is Available! iPad 2 Is Available! iPad 2 Is Available! iPad 2 Is Available! iPad 2 Is Available! iPad 2 Is Available!" | |
break |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Colors from http://wiki.archlinux.org/index.php/Color_Bash_Prompt | |
# misc | |
NO_COLOR='\e[0m' #disable any colors | |
# regular colors | |
BLACK='\e[0;30m' | |
RED='\e[0;31m' | |
GREEN='\e[0;32m' | |
YELLOW='\e[0;33m' | |
BLUE='\e[0;34m' | |
MAGENTA='\e[0;35m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.m | |
// JSONTrouble | |
// | |
// Created by Roustem Karimov on 11-08-31. | |
// Copyright (c) 2011 AgileBits. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
BETA_URL = "http://i.agilebits.com/dist/1P/mas/1PasswordBeta.app.zip" | |
local_timestamp_filename = File.expand_path("~/.onepassword_beta_timestamp") | |
last_modified_local = "" | |
if File.exists?("/Applications/1PasswordBeta.app") | |
File.open(local_timestamp_filename, "r") { |f| last_modified_local = f.read() } rescue nil | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# add to crontab | |
# */5 * * * * /Users/YOURNAME/bin/wwdc >/dev/null | |
# | |
# URL="http://www.cnn.com" | |
URL="http://developer.apple.com/wwdc/" |
OlderNewer