THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| package main | |
| import ( | |
| "exec" | |
| "log" | |
| "os" | |
| "syscall" | |
| "unsafe" | |
| ) |
| sudo launchctl unload /System/Library/LaunchDaemons/com.apple.racoon.plist | |
| sudo launchctl load /System/Library/LaunchDaemons/com.apple.racoon.plist |
| // http://www.ietf.org/rfc/rfc1928.txt | |
| // Tested with: curl http://www.google.se/ --socks5 1080 --proxy-user foo:bar | |
| var States = { | |
| CONNECTED:0, | |
| VERIFYING:1, | |
| READY:2, | |
| PROXY: 3 | |
| }; |
| === modified file 'lisp/term/ns-win.el' | |
| --- old/lisp/term/ns-win.el 2011-10-01 20:32:01 +0000 | |
| +++ new/lisp/term/ns-win.el 2011-11-10 16:22:51 +0000 | |
| @@ -928,6 +928,10 @@ | |
| (add-to-list 'frame-creation-function-alist '(ns . x-create-frame-with-faces)) | |
| (add-to-list 'window-system-initialization-alist '(ns . ns-initialize-window-system)) | |
| +(declare-function ns-toggle-fullscreen-internal "nsfns.m" ()) | |
| +(defun ns-toggle-fullscreen () | |
| + (interactive) |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| #!/usr/bin/env sh | |
| # Download lists, unpack and filter, write to stdout | |
| curl -s https://www.iblocklist.com/lists.php \ | |
| | sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| | xargs wget -O - \ | |
| | gunzip \ | |
| | egrep -v '^#' |
| // Implementation of a UDP proxy | |
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net" | |
| "os" |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| "net/url" | |
| "regexp" | |
| "strings" | |
| ) |
| ### hostapd configuration file, loosely based on http://pisarenko.net/blog/2015/02/01/beginners-guide-to-802-dot-11ac-setup/ | |
| ### for Realtek RTL8812AU via driver https://github.com/abperiasamy/rtl8812AU_8821AU_linux | |
| ### and hostap 2.5 | |
| ### Operates at 135 Mbps in 802.11n/ht mode. iperf measures ~8.00 MBytes/sec 67.1 Mbits/sec | |
| ### I was not able to get 802.11ac/vht mode with additional side-channels configured with the driver. | |
| ctrl_interface=/var/run/hostapd | |
| ctrl_interface_group=0 | |
| interface=wlan2 | |
| driver=nl80211 |