This file contains hidden or 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
on run argv | |
set space_number to item 1 of argv | |
tell application "System Events" | |
keystroke space_number using {control down} | |
end tell | |
end run |
This file contains hidden or 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
$ sudo easy_install --upgrade twisted | |
Password: | |
install_dir /Library/Python/2.6/site-packages/ | |
Searching for twisted | |
Reading http://pypi.python.org/simple/twisted/ | |
Reading http://twistedmatrix.com/ | |
Reading http://tmrc.mit.edu/mirror/twisted/Twisted/10.0/ | |
Reading http://www.twistedmatrix.com | |
Reading http://twistedmatrix.com/products/download | |
Reading http://tmrc.mit.edu/mirror/twisted/Twisted/8.2/ |
This file contains hidden or 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
Here's what I do: | |
This is Rails 2 | |
pid = fork do | |
%x{RAILS_ENV=#{Rails.env} #{RAILS_ROOT + "/script/runner"} '#{script}'} | |
exit! | |
end | |
Process.detach pid |
This file contains hidden or 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
<applet archive='/java/jumploader_z.jar' code='jmaster.jumploader.app.JumpLoaderApplet.class' height='400' id='jumpLoaderApplet' mayscript name='jumpLoaderApplet' width='600'> | |
<param name='uc_uploadUrl' value='/upload_video'> | |
<param name='uc_imageEditorEnabled' value='false'> | |
<param name='ac_fireAppletInitialized' value='true'> | |
<param name='uc_requestProperties' value='Cookie=_vod_session=BAh7CSIQX2NzcmZfdG9rZW4jNcVFS2xwQU03UDFGNzNIWGpHNFBIK0kzWmFBZFhJdm5BVDZYb3ZDaTNJY3c9Ig5yZXR1cm5fdG97CToHcHNUOgtzZWFyY2gwOgthY3Rpb24iCmluZGV4OgdpZDAiD3Nlc3Npb25faWQiJTkxMTZkMmFhZGRjYzBhODRkNjJjZmY2MWZkMWQ5MmViIhl3YXJkZW4udXNlci51c2VyLmtleVsHIglVc2VyaQc=--adbc189e2dbb8ef27da5127e9dcdf88cf57ffe7b'> | |
</applet> |
This file contains hidden or 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
%applet{:id=>"jumpLoaderApplet", :name=>"jumpLoaderApplet", :code=>"jmaster.jumploader.app.JumpLoaderApplet.class", :archive=>"/java/jumploader_z.jar", :width=>"600", :height=>"400", :mayscript=>true} | |
%param{:name=>"uc_uploadUrl", :value=>upload_video_path} | |
%param{:name=>"uc_imageEditorEnabled", :value=>"false"} | |
%param{:name=>"ac_fireAppletInitialized", :value=>"true"} | |
- key = Rails.application.config.session_options[:key] | |
%param{:name=>"uc_requestProperties", :value=>"Cookie=#{key}=#{cookies[key]}"} |
This file contains hidden or 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
<script> | |
function appletInitialized(applet) { | |
setTimeout("set_applet_csrf()", 1000); | |
} | |
function set_applet_csrf() { | |
var name = "<%= request_forgery_protection_token %>"; | |
var value = "<%= form_authenticity_token %>"; | |
set_upload_param(name, value); | |
} |
This file contains hidden or 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
// block test - same as using ruby's Array#detect, but much more long winded | |
- (BOOL (^)(id obj, NSUInteger idx, BOOL *stop))inbro_test:(NSUInteger)inbro_id { | |
return [[^(id obj, NSUInteger idx, BOOL *stop) { | |
if ([obj inbro_id] == inbro_id) { | |
*stop = YES; | |
return YES; | |
} | |
return NO; | |
} copy] autorelease]; | |
} |
This file contains hidden or 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
==> Build Environment | |
CC: /usr/bin/cc | |
CXX: /usr/bin/c++ | |
LD: /usr/bin/cc | |
CFLAGS: -O3 -w -pipe | |
CXXFLAGS: -O3 -w -pipe | |
MAKEFLAGS: -j4 | |
PATH: /Users/sds/.rvm/gems/ruby-1.8.7-p248/bin:/Users/sds/.rvm/gems/ruby-1.8.7-p248@global/bin:/Users/sds/.rvm/rubies/ruby-1.8.7-p248/bin:/Users/sds/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin | |
==> Downloading ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.6.2-2.tar.bz2 | |
curl -f#LA Homebrew 0.6 (Ruby 1.8.7-174; Mac OS X 10.6.4) ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.6.2-2.tar.bz2 -o /Users/sds/Library/Caches/Homebrew/imagemagick-6.6.2-2.tar.bz2 |
This file contains hidden or 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
user system total real | |
1x 1.690000 0.000000 1.690000 ( 1.690578) | |
2x 1.770000 0.010000 1.780000 ( 1.780384) | |
4x 1.800000 0.000000 1.800000 ( 1.796044) | |
8x 1.830000 0.000000 1.830000 ( 1.835327) | |
16x 1.860000 0.010000 1.870000 ( 1.866744) | |
32x 1.950000 0.000000 1.950000 ( 1.951703) | |
64x 2.110000 0.000000 2.110000 ( 2.117919) | |
This file contains hidden or 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
sds:rubinius-0.13.0 sds$ ./configure --enable-llvm | |
Using LLVM: auto | |
Checking for existing LLVM tree: not found. | |
Fetching http://asset.rubini.us/prebuilt/llvm-i686-apple-darwin10.2.0.tar.bz2... | |
curl: (22) The requested URL returned error: 404 | |
ERROR. No llvm-i686-apple-darwin10.2.0.tar.bz2 available on server. | |
Prebuilt packages updated. | |
Checking for 'llvm-config': not found | |
Checking out LLVM from svn: http://llvm.org/svn/llvm-project/llvm/branches/release_26/ Code appears to be proper svn tree. |