a.k.a. what to do when your ISP starts blocking sites :(
Set the SOCKS proxy to local SSH tunnel
networksetup -setsocksfirewallproxy "Ethernet" localhost 8080
To clear the domain and port
| typedef struct circular_buffer | |
| { | |
| void *buffer; // data buffer | |
| void *buffer_end; // end of data buffer | |
| size_t capacity; // maximum number of items in the buffer | |
| size_t count; // number of items in the buffer | |
| size_t sz; // size of each item in the buffer | |
| void *head; // pointer to head | |
| void *tail; // pointer to tail | |
| } circular_buffer; |
| " tmux will only forward escape sequences to the terminal if surrounded by a DCS sequence | |
| " http://sourceforge.net/mailarchive/forum.php?thread_name=AANLkTinkbdoZ8eNR1X2UobLTeww1jFrvfJxTMfKSq-L%2B%40mail.gmail.com&forum_name=tmux-users | |
| if exists('$TMUX') | |
| let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\" | |
| let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\" | |
| else | |
| let &t_SI = "\<Esc>]50;CursorShape=1\x7" | |
| let &t_EI = "\<Esc>]50;CursorShape=0\x7" | |
| endif |
| #import <Foundation/Foundation.h> | |
| @interface XmlParser : NSObject <NSXMLParserDelegate> | |
| @property (strong, nonatomic) NSData *xmlData; | |
| @property (strong, nonatomic) NSMutableDictionary *dictionary; | |
| @property (strong, nonatomic) NSMutableDictionary *currentNode; | |
| @property (strong, nonatomic) NSMutableDictionary *currentParentNode; | |
| - (id)initWithXMLData:(NSData *)xmlData; |
| #!/usr/bin/env python | |
| """ | |
| Example on using Kqueue/Kevent on BSD/Mac | |
| using Python. | |
| The TCP server essentially echoes back the | |
| message it receives on the client socket. | |
| """ | |
| __author__ = "Ishwor Gurung <[email protected]>" |
| void drawStripes(void *info, CGContextRef con) | |
| { | |
| // assume 4x4 cell | |
| CGContextSetFillColorWithColor(con, [[UIColor redColor] CGColor]); | |
| CGContextFillRect(con, CGRectMake(0, 2, 4, 2)); | |
| CGContextSetFillColorWithColor(con, [[UIColor blueColor] CGColor]); | |
| CGContextFillRect(con, CGRectMake(0, 0, 4, 2)); | |
| } | |
| /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HiServices.framework/Versions/A/Resources/cursors |
| @interface NSImage (GIF) | |
| - (BOOL)isGifImage; | |
| - (BOOL)saveAnimatedGIFToFile:(NSString*)filepath; | |
| @end | |
| @implementation NSImage (GIF) | |
| - (BOOL)isGifImage | |
| { |
| ; /usr/local/bin/nasm -f macho 32.asm && ld -macosx_version_min 10.7.0 -o 32 32.o && ./32 | |
| global start | |
| section .text | |
| start: | |
| push dword msg.len | |
| push dword msg | |
| push dword 1 | |
| mov eax, 4 |
By @foldleft.bsky.social, see also Unfollow everyone on bsky.app.
https://twitter.com/YOUR_USER_NAME/following// Unfollow everyone on twitter.com, by Jamie Mason (https://twitter.com/fold_left)