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
| sjcl.js | |
| passed all 4156 tests. (26 ms) | |
| Running AES official known-answer tests... | |
| passed all 2000 tests. (149 ms) | |
| Running CCM mode tests... | |
| unimplemented | |
| Running CBC mode tests... | |
| passed all 22 tests. (16 ms) | |
| Running OCB 2.0 mode tests... | |
| passed all 36 tests. (22 ms) |
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
| Rails.application.assets.logger = Logger.new('/dev/null') | |
| Rails::Rack::Logger.class_eval do | |
| def call_with_quiet_assets(env) | |
| previous_level = Rails.logger.level | |
| Rails.logger.level = Logger::ERROR if env['PATH_INFO'].index("/assets/") == 0 | |
| call_without_quiet_assets(env).tap do | |
| Rails.logger.level = previous_level | |
| end | |
| end | |
| alias_method_chain :call, :quiet_assets |
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
| RKObjectMapping* merchantSignupMapping = [RKObjectMapping mappingForClass:[WLMerchantSignup class]]; | |
| [merchantSignupMapping mapKeyPathsToAttributes: | |
| nil]; | |
| [paymentProcessorObjectManager.mappingProvider addObjectMapping:merchantSignupMapping]; | |
| //[paymentProcessorObjectManager.mappingProvider setMapping:merchantSignupMapping forKeyPath:@""]; | |
| [paymentProcessorObjectManager.mappingProvider setSerializationMapping:[merchantSignupMapping inverseMapping] forClass:[WLMerchantSignup class]]; | |
| [paymentProcessorObjectManager.router routeClass:[WLMerchantSignup class] toResourcePath:SERVER_WLMERCHANTSIGNUP]; | |
| //[paymentProcessorObjectManager.mappingProvider registerObjectMapping:merchantSignupMapping withRootKeyPath:@"merchant"]; | |
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
| # Generate private key | |
| openssl genrsa -des3 -out private.key 2048 | |
| # Remove passphrase | |
| openssl rsa -in private.key -out private.nopass.key | |
| # Generate CSR | |
| openssl req -new -key private.nopass.key -out csr.pem |
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
| railroady -M | neato -Tpng > models.png |
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
| while true; do find ~/Library/Application\ Support/iPhone\ Simulator/5.1/Applications/ -name WingLite.sqlite -exec cp -f {} ~/Desktop/ \; ; sleep 1; done |
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
| curl -F image="@/Users/kj/Desktop/Icon.png" "http://0.0.0.0:8080/uploadimage/" |
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
| #import <MediaPlayer/MediaPlayer.h> | |
| // Add MediaPlayer framework | |
| UIView *v = [[UIView alloc] initWithFrame:CGRectMake(20, 60, 200, 200)]; | |
| NSURL *movieUrl = [NSURL URLWithString:@"http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8"]; | |
| MPMoviePlayerViewController *player = [[MPMoviePlayerViewController alloc] initWithContentURL:movieUrl]; | |
| //player.view.frame = CGRectMake(50, 50, 200, 200); | |
| player.wantsFullScreenLayout = NO; | |
| player.moviePlayer.controlStyle = MPMovieControlStyleEmbedded; |
NewerOlder