Android | iOS | Gen | Down max |
---|---|---|---|
NETWORK_TYPE_CDMA | 2G | ||
NETWORK_TYPE_IDEN | 2G | ||
NETWORK_TYPE_GPRS | CTRadioAccessTechnologyGPRS | 2.5G | |
NETWORK_TYPE_EDGE | CTRadioAccessTechnologyEdge | 2.75G | |
NETWORK_TYPE_1xRTT | CTRadioAccessTechnologyCDMA1x | 3G | |
NETWORK_TYPE_UMTS | CTRadioAccessTechnologyWCDMA | 3G | |
NETWORK_TYPE_EVDO_0 | CTRadioAccessTechnologyCDMAEVDORev0 | 3.5G | |
NETWORK_TYPE_EVDO_A | CTRadioAccessTechnologyCDMAEVDORevA | 3.5G |
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
<?php | |
header('HTTP/1.1 403 Forbidden'); | |
?> | |
<html> | |
<head> | |
<title>Congratulations! You have been DENIED access</title> | |
</head> | |
<body> | |
<font size="4">You have been denied access because of the following reasons:<br /><br /> | |
1.) Too many failed login attempts, so you are likely brute forcing through logins.<br /> |
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
function retry(isDone, next) { | |
var current_trial = 0, max_retry = 50, interval = 10, is_timeout = false; | |
var id = window.setInterval( | |
function() { | |
if (isDone()) { | |
window.clearInterval(id); | |
next(is_timeout); | |
} | |
if (current_trial++ > max_retry) { | |
window.clearInterval(id); |
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/sh | |
PROXY_INTERFACE="USB Ethernet" | |
PROXY_HOST=localhost | |
PROXY_PORT=1080 | |
if [[ $1 == "on" ]]; then | |
sudo networksetup -setsocksfirewallproxy "$PROXY_INTERFACE" $PROXY_HOST $PROXY_PORT | |
echo "SOCKS proxy enabled" |
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/sh | |
PROXY_INTERFACE="Wi-Fi" | |
PROXY_HOST=127.0.0.1 | |
PROXY_PORT=1080 | |
# A host where ssh can login without interaction, with a key-based | |
# authentication. | |
SOCKS_PROC_USER="username" | |
SOCKS_PROC_HOST="example.com" |
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
// The image is originally animated on to the view controller then added to the scroll view. | |
// So, there might be some animation residue in here. | |
// Class needs: <UIScrollViewDelegate> | |
func viewDidLoad() { | |
let width = UIScreen.mainScreen().bounds.size.width | |
let aspect: CGFloat = width / shotWidth | |
var frame = CGRectMake(0, 0, shotWidth * aspect, shotHeight * aspect) | |
self.scrollView = UIScrollView(frame: frame) |