Can be used for streaming data (webcam or screen capture) from the Windows to WSL
Run from a WSL terminal
ip route list default | awk '{print $3}'Can be used for streaming data (webcam or screen capture) from the Windows to WSL
Run from a WSL terminal
ip route list default | awk '{print $3}'| { | |
| // open json editor for settings | |
| "workbench.settings.editor": "json", | |
| // Theme | |
| "workbench.colorTheme": "Aura Dark", | |
| "workbench.iconTheme": "moxer-icons", | |
| // Change font | |
| "editor.fontFamily": "Geist Mono", |
| // An example viewDidLoad | |
| - (void)viewDidLoad | |
| { | |
| [super viewDidLoad]; | |
| [self loadWebView]; | |
| } | |
| // The example loader | |
| // | |
| // Assumes you have an IBOutlet for the UIWebView defined: @property (strong, nonatomic) UIWebView *wv; |
| const hash = require("crypto-js/sha256"); | |
| class Block { | |
| constructor(previousHash, data) { | |
| this.data = data; | |
| this.hash = this.calculateHash(); | |
| this.previousHash = previousHash; | |
| this.timeStamp = new Date(); | |
| this.proofOfWork = 0; | |
| } |
| # brew install nginx | |
| sudo ln -s /usr/local/opt/nginx/homebrew.mxcl.nginx.plist /Library/LaunchDaemons/ | |
| sudo chown root:wheel /usr/local/opt/nginx/homebrew.mxcl.nginx.plist | |
| sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.nginx.plist | |
| # Why do you need sudo? | |
| # If you want nginx to be able to bind to port 80, it will need superuser privileges |
This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).
This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"| //Cache Buster | |
| (function (){ | |
| var rep = /.*\?.*/, | |
| links = document.getElementsByTagName('link'), | |
| scripts = document.getElementsByTagName('script'), | |
| process_scripts = false; | |
| for (var i=0;i<links.length;i++){ | |
| var link = links[i], | |
| href = link.href; | |
| if(rep.test(href)){ |