This file contains 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
node-google-translate/lib/main.js | |
// Closure that returns a function for making a | |
// GET request to Google with an apiKey | |
-var getRequestWithApi = function(apiKey) { | |
+var getRequestWithApi = function(apiKey, httpProxy) { | |
return function(path, data, done) { | |
var url = apiBase + path + '?' + querystring.stringify(_.extend({ 'key': apiKey }, data)); | |
+ | |
+ if (httpProxy != '') { |
This file contains 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
~ » brew list zhaolei@zhaoleis-MacBook-Pro | |
autoconf go nginx tldr | |
automake gradle node tomcat | |
ctags icu4c openssl tree | |
docker jpeg pcre unrar | |
docker-compose libev perl vim | |
docker-machine libidn2 pkg-config wget | |
docker-machine-driver-xhyve libtiff python xhyve | |
fortune libunistring python@2 xz | |
fzf libyaml readline zsh |
This file contains 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
;;; init-local.el --- Settings and helpers for package.el -*- lexical-binding: t -*- | |
;;; Commentary: | |
;;; Code: | |
(setq url-proxy-services | |
'(("no_proxy" . "^\\(localhost\\|10.*\\)") | |
("http" . "localhost:55776") | |
("https" . "localhost:55776"))) | |
(desktop-save-mode nil) | |
(set-frame-position (selected-frame) 80 0) |
This file contains 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
# Summary | |
A few notes I took to see if I could use MacOS as Hypevirsor in a similar fashion to Linux | |
I wanted to see how few addons were needed instead of using Parallels, Virtual Box, VM Fsion etc. | |
The idea is to use QEMU, Hypervisor Framework (https://developer.apple.com/documentation/hypervisor) and some custom host networking. | |
# Installations | |
brew install qemu (For controlling Hypervisor Framework) | |
brew install cdrtools (For making cloud init iso's) | |
http://tuntaposx.sourceforge.net/download.xhtml (For customer tap based networking) |
This file contains 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
SPC | |
SPC: find file | |
, switch buffer | |
. browse files | |
: MX | |
; EX | |
< switch buffer | |
` eval | |
u universal arg | |
x pop up scratch |