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
env|sort | |
Apple_PubSub_Socket_Render=/tmp/launch-NGKxkr/Render | |
COMMAND_MODE=unix2003 | |
HOME=/Users/mac | |
LANG=en_US.UTF-8 | |
LC_CTYPE=en_US.UTF-8 | |
LOGNAME=mac | |
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/Users/mac/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/bin | |
PWD=/Users/mac | |
SHELL=/bin/bash |
{ | |
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme", | |
"font_face": "consolas", | |
"font_size": 13, | |
"tab_size": 4, | |
"translate_tabs_to_spaces": true, | |
"use_tab_stops": true, | |
"rulers":[80], | |
"draw_indent_guides": false | |
} |
// -webkit-font-smoothing: antialiased; may needs the following lines | |
CGContextRef context = [[NSGraphicsContext currentContext] CGContext]; | |
CGContextSetAllowsAntialiasing(context, true); | |
CGContextSetShouldAntialias(context, true); | |
// -webkit-font-smoothing: antialiased; == the following line | |
// Edit #1: This tell macOS to render text in grayscale mode if set to false (-webkit-font-smoothing: antialiased;) | |
// Tell macOS to render text in subpixel anti-aliasing if set to true (-webkit-font-smoothing: subpixel-antialiased;) | |
CGContextSetShouldSmoothFonts(context, false); | |
// end of -webkit-font-smoothing: antialiased; |
把 goagent 的 ca 证书拖到 System 既可以,默认是导入到 Login。 |
韩剧《制作人》居然有黑塞小说《德米安》,一下子想起书中的句子:“每个人的真正职责只有一个: | |
找到自我。然后在心中坚守一生,全心全意,永不停息。所有其它的路都是不完整的,是人的逃避方式, | |
是对社会角色的懦弱伪装,是随波逐流,是对内心的恐惧” | |
- 阮一峰 (Twitter) |
Edward Snowden answered questioned after a showing of CITIZENFOUR at the IETF93 meeting; this is a transcript of the video recording.
For more information, see the Internet Society article.
/home/aaron/tmp/qemu/migration/rdma.c: In function ‘rdma_add_block’: | |
/home/aaron/tmp/qemu/migration/rdma.c:580:45: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] | |
g_hash_table_insert(rdma->blockmap, (void *) block_offset, block); | |
^ | |
cc1: all warnings being treated as errors | |
make: *** [migration/rdma.o] Error 1 |
@interface NSImage (NSBitmapImageRep) | |
- (NSBitmapImageRep *)bitmapImageRepresentation; | |
@end | |
@implementation NSImage (NSBitmapImageRep) | |
- (NSBitmapImageRep *)bitmapImageRepresentation | |
{ | |
int width = [self size].width; | |
int height = [self size].height; | |
In CGMaskWindow.m, change | |
- (void)setView:(NSView *)view { | |
NSRect windowBounds = [self frame]; | |
windowBounds.origin = NSMakePoint(0, 0); | |
[view setFrame:windowBounds]; | |
self.topMostView = view; |