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
| $ jarsigner -verbose -verify -certs TARGET.jar | |
| 22501 Thu Dec 02 20:26:46 JST 2010 META-INF/MANIFEST.MF | |
| 22534 Thu May 17 22:40:54 JST 2012 META-INF/MY_ALIAS.SF | |
| 3731 Thu May 17 22:40:54 JST 2012 META-INF/MY_ALIAS.RSA | |
| ... | |
| sm 1012 Thu Dec 02 20:26:46 JST 2010 com/example/a.class |
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
| 警告: | |
| この jar には、署名者の証明書が期限切れのエントリが含まれています。 |
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
| $ keytool -importkeystore -srckeystore OLD_KEYSTORE.jks -destkeystore OLD_KEYSTORE.p12 -srcstoretype JKS -deststoretype PKCS12 -srcalias MY_ALIAS -destalias MY_ALIAS | |
| $ openssl pkcs12 -in OLD_KEYSTORE.p12 -nocerts -nodes -out PRIVATE.key | |
| $ openssl pkcs7 -in NEW_CERT.p7s -out NEW_CERT.cer -print_certs | |
| $ openssl pkcs12 -export -in NEW_CERT.cer -inkey PRIVATE.key -out NEW_KEYSTORE.p12 |
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
| #!/bin/bash | |
| START_TIME=`date +%s` | |
| # do something you want to measure time | |
| END_TIME=`date +%s` | |
| SS=`expr ${END_TIME} - ${START_TIME}` | |
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
| echo "`date +"%Y-%m-%d %H:%M:%S"`.`perl -e 'use Time::HiRes qw(gettimeofday); my($sec,$microsec)=gettimeofday(); print $microsec . "\n";'`" |
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
| #-------- | |
| # xcode noise | |
| build/* | |
| *.xcodeproj/* | |
| !*.xcodeproj/project.pbxproj | |
| !*.xcodeproj/default.* | |
| **/*.xcodeproj/* | |
| !**/*.xcodeproj/project.pbxproj |
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
| // | |
| // AViewController.h | |
| // | |
| @protocol AViewControllerDelegate; | |
| @interface AViewController : UIViewController <AViewControllerDelegate> | |
| { | |
| id <AViewControllerDelegate> delegate; | |
| } | |
| @property (nonatomic, retain) id <AViewControllerDelegate> delegate; |
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
| + (void)showViewControllerAndNavigationControllerFromParentViewController:(UIViewController *)parentVC | |
| { | |
| AViewController *vc = [[[AViewController alloc] init] autorelease]; | |
| UINavigationController* nc = [[[UINavigationController alloc] | |
| initWithRootViewController:vc] autorelease]; | |
| nc.modalTransitionStyle = UIModalTransitionStyleCoverVertical; | |
| vc.navigationController = nc; | |
| vc.navigationBar = nc.navigationBar; |
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
| - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event | |
| { | |
| UITouch *touch = [touches anyObject]; | |
| CGPoint p = [touch locationInView:aView]; | |
| NSLog(@"Touch detected: x=%lf, y=%lf", p.x, p.y); | |
| if (0 <= p.y && p.y <= aView.frame.size.height | |
| && 0 <= p.x && p.x <= aView.frame.size.width) | |
| { | |
| //do something | |
| } |
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
| `ps alx | grep \[r\]uby | awk '{printf ("%d", $8)}'`.to_i | |
| `ps -o rss= -p #{Process.pid}`.to_i |