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
badopts() | |
{ | |
echo -e "Usage: ifchanged [command to check] [number of seconds to wait between checks] [command to execute if not changed] [command to execute if changed]" | |
exit | |
} | |
if [ $# -ne 4 ] | |
then | |
badopts | |
else | |
while 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
Tue Nov 20 16:47:25 PayPal[30597] <Error>: *** -[__NSCFCalendar components:fromDate:toDate:options:]: fromDate cannot be nil | |
I mean really, what do you think that operation is supposed to mean with a nil fromDate? | |
An exception has been avoided for now. | |
A few of these errors are going to be reported with this complaint, then further violations will simply silently do whatever random thing results from the nil. | |
Here is the backtrace where this occurred this time (some frames may be missing due to compiler optimizations): | |
( | |
0 CoreFoundation 0x3a1d948f <redacted> + 86 | |
1 PayPal 0x0019981b -[PPKBCheckInManager nearbyMerchantRefresh] + 162 | |
2 PayPal 0x0018833f -[PPMerchantListingsViewController viewWillAppear:] + 1414 | |
3 UIKit 0x333cb319 <redacted> + 136 |
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 | |
LINES=`cat $1 | wc -l` | |
LINESB=`echo $((RANDOM % LINES))` | |
WHICH=`echo $((LINESB + 1))` | |
COM=`cat $1 | head -n $WHICH | tail -n 1` | |
eval $COM | |
exit |
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
2012-12-03 21:35:26 +0000 assistant_service the local store doesn't allow tasks and we have no default calendar :( |
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
#pbcopy < ~/.ssh/id_rsa.pub | |
#or | |
cat ~/.ssh/id_rsa.pub | pbcopy |
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
# | |
# Initialize the stuff | |
# | |
# We build the status bar item menu | |
framework 'AppKit' | |
def setupMenu | |
menu = NSMenu.new | |
menu.initWithTitle 'FooApp' | |
mi = NSMenuItem.new | |
mi.title = 'Hellow from MacRuby!' |
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
(in /Users/brysonholdeman/shoes) | |
** Invoke default (first_time) | |
** Invoke build (first_time) | |
** Invoke osx:build (first_time) | |
** Invoke osx:build_tasks:pre_build (first_time) | |
** Invoke osx:build_tasks:check_ruby_arch (first_time) | |
** Execute osx:build_tasks:check_ruby_arch | |
** Execute osx:build_tasks:pre_build | |
** Invoke build_skel (first_time) | |
** Execute build_skel |
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
Camping.goes :Test | |
module Test::Controllers | |
class Home < R '/' | |
def get | |
render :home | |
end | |
end | |
class Login < R '/openid' | |
def get |
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
Camping.goes :Test | |
module Test::Controllers | |
class Login < R '/' | |
def get | |
require 'openid' | |
@state.openid_request = Hash.new | |
oid_request = OpenID::Consumer.new(@state.openid_request, nil).begin(input.identity) | |
'You made it home.' | |
end | |
end |
OlderNewer