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
| #import <Foundation/Foundation.h> | |
| @interface Communicator : NSObject <NSStreamDelegate> { | |
| @public | |
| NSString *host; | |
| int port; | |
| } | |
| - (void)setup; |
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
| /* example usage */ | |
| JFFollowRedirect* follower = [[JFFollowRedirect alloc] init]; | |
| [follower addObserver:self forKeyPath:@"redirectStr" options:NSKeyValueObservingOptionNew | |
| context:follower]; | |
| // follow redirect | |
| [follower getRedirectURLStr:urlToFollow]; | |
| / * header */ | |
| #import <Foundation/Foundation.h> |
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
| # Macos Proxy Helper (networksetup wraper) | |
| # add this line to $HOME/.zshrc | |
| # | |
| # source "$HOME/.proxy_helper" | |
| # | |
| # usage : | |
| # proxy < | up | down > [-all || -http|-https|-socks|-ftp|-stream ] | |
| # proxy set <destination> <port> [-http|-https|-socks|-ftp|-stream || -all]' |
OlderNewer