But original post can not access anymore.
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 | |
# Get DataDir location | |
DATA_DIR="/data" | |
case "$(ubnt-device-info firmware || true)" in | |
1*) | |
DATA_DIR="/mnt/data" | |
;; | |
2*) | |
DATA_DIR="/data" |
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
/usr/share/zoneinfo | |
├── +VERSION | |
├── Africa | |
│ ├── Abidjan | |
│ ├── Accra | |
│ ├── Addis_Ababa | |
│ ├── Algiers | |
│ ├── Asmara | |
│ ├── Asmera | |
│ ├── Bamako |
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 | |
#################################################### | |
# # | |
# This is a ocserv installation for CentOS 7 # | |
# Version: 1.1.1 20140803 # | |
# Author: Travis Lee # | |
# Website: http://www.stunnel.info # | |
# # | |
#################################################### |
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
- (BOOL)isUTF8 | |
{ | |
const char *string = (const char *)self.bytes; | |
const unsigned char * bytes = (const unsigned char *)string; | |
while(*bytes) | |
{ | |
if( (// ASCII | |
// use bytes[0] <= 0x7F to allow ASCII control characters | |
bytes[0] == 0x09 || | |
bytes[0] == 0x0A || |
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
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user && killall Finder |
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
-(UIImage *)screenShot | |
{ | |
CGRect originalFrame = self.frame; | |
CGPoint originalOffset = self.scrollView.contentOffset; | |
CGSize entireSize = [self sizeThatFits:CGSizeZero]; | |
[self setFrame: CGRectMake(0, 0, entireSize.width, entireSize.height)]; | |
CGRect rect = [self positionOfElementWithId:@"post1"]; | |
//如果没有找到这个元素,就取整个页面 | |
if (rect.origin.y != 0) { |