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 <objc/runtime.h> | |
#import <UIKit/UIKit.h> | |
@interface UIWebView (HackishAccessoryHiding) | |
@property (nonatomic, assign) BOOL hackishlyHidesInputAccessoryView; | |
@end | |
@implementation UIWebView (HackishAccessoryHiding) | |
static const char * const hackishFixClassName = "UIWebBrowserViewMinusAccessoryView"; |
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 | |
process="ssserver" | |
if [ $(ps ax | grep -v grep | grep $process | wc -l) -gt 0 ]; then | |
exit | |
else | |
cd /root/shadowsocks | |
nohup ssserver > log & | |
fi |
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
pcregrep -o1 "pod '([^'/]*)[^']*'" Podfile|while read line ; do echo "\n\n==========\n$line\n==========" ; pod spec cat $line|grep license -A3 ; done |
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 | |
#brew install mediainfo first | |
#chmod a+x check_audio_channels.sh for permission | |
#run ./check_audio_channels.sh dir_name to check | |
function check_dir() { | |
for file in `ls $1` | |
do | |
if [ -d $1"/"$file ] |