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
{ | |
"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 | |
} |
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)); | |
} | |
library nodejs; | |
import "dart:js"; | |
/** | |
* Simple Helper Class | |
*/ | |
class Console { | |
void log(String message) => context['console'].callMethod("log", [message]); |
Setting NWN2 to use just one CPU core to improve
the performance:
Wine taskmgr
-> Uncheck CPU1
, just left CPU0
.
Reference: http://www.tweakguides.com/NWN2_9.html
canvas.width = canvas.height = 400; | |
left-top is the origin in pixels | |
|---|---| | |
| | | | |
|---o---| | |
| | | | |
|---|---| | |
`o` is the origin in Webgl viewport |
discordapp.com, gateway.discord.gg
After renew pixelegg.me, it can not be opened.
Solution:
Go to godaddy.com and change the A record for @
A @ 45.32.225.253 600 seconds
extension String { | |
func md5() -> String! { | |
let str = self.cStringUsingEncoding(NSUTF8StringEncoding) | |
let strLen = CUnsignedInt(self.lengthOfBytesUsingEncoding(NSUTF8StringEncoding)) | |
let digestLen = Int(CC_MD5_DIGEST_LENGTH) | |
let result = UnsafeMutablePointer<CUnsignedChar>.alloc(digestLen) | |
CC_MD5(str!, strLen, result) | |
var hash = NSMutableString() |