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 | |
case "$1" in | |
true) | |
defaults write com.apple.finder AppleShowAllFiles TRUE | |
killall Finder | |
;; | |
false) | |
defaults write com.apple.finder AppleShowAllFiles FALSE | |
killall Finder |
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/sh | |
openssl des3 -salt -in $1 -out $1.des3 |
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 <Foundation/Foundation.h> | |
@interface UIColor (Hex) | |
- (UIColor *) initWithHex:(NSString *)hexString alpha:(CGFloat)alpha; | |
@end | |
@implementation UIColor (Hex) | |
- (UIColor *) initWithHex:(NSString *)string alpha:(CGFloat)alpha { | |
UIColor *color = nil; |