Skip to content

Instantly share code, notes, and snippets.

https://cloud.tencent.com/developer/article/1047278
https://kubernetes.io/docs/tutorials/hello-minikube/
https://maiyang.me/post/2018-07-31-minikube-guide-in-mac/
使用 minikube
OS:macOS
GitHub:https://github.com/khs1994-docker/minikube
@mangreen
mangreen / 1_kubernetes_on_macOS.md
Created November 16, 2017 14:46 — forked from kevin-smets/1_kubernetes_on_macOS.md
Local Kubernetes setup on macOS with minikube on VirtualBox and local Docker registry

Requirements

Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:

sysctl -a | grep machdep.cpu.features | grep VMX

If there's output, you're good!

Prerequisites

@mangreen
mangreen / client.go
Created October 12, 2017 03:30 — forked from hakobe/client.go
golang unix domain socket
package main
import (
"io"
"log"
"net"
"time"
)
func reader(r io.Reader) {
@mangreen
mangreen / LICENCE SUBLIME TEXT
Created September 24, 2017 00:57 — forked from RoseySoft/LICENCE SUBLIME TEXT
Sublime Text 3 Serial key build is 3103
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
93F6323C FD7F7544 3F39C318 D95E6480
FCCC7561 8A4A1741 68FA4223 ADCEDE07
@mangreen
mangreen / Sublime Text License Key.md
Created September 24, 2017 00:57 — forked from abdulhannanali/Sublime Text License Key.md
Sublime Text 2 License Key, Sublime Text 3 License Key, Sublime Text Full Version.
@mangreen
mangreen / tensorflow_cuda_osx.md
Created April 22, 2017 08:26 — forked from Mistobaan/tensorflow_cuda_osx.md
How to enable cuda support for tensor flow on Mac OS X (Updated on April:2016 Tensorflow 0.8)

These instructions will explain how to install tensorflow on mac with cuda enabled GPU suport. I assume you know what tensorflow is and why you would want to have a deep learning framework running on your computer.

Prerequisites

Make sure to update your homebrew formulas

brew update

Build tensorflow on OSX with NVIDIA CUDA support (GPU acceleration)

These instructions are based on Mistobaan's gist but expanded and updated to work with the latest tensorflow OSX CUDA PR.

Requirements

OS X 10.10 (Yosemite) or newer

@mangreen
mangreen / install-comodo-ssl-cert-for-nginx.rst
Created August 22, 2016 04:20 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

JSONObject params = new JSONObject();
try
{
params.put("event", event);
params.put("partic", partic);
}
catch (Exception e)
{
e.printStackTrace();
}
@mangreen
mangreen / gist:d9484aaa5bf623a561ca
Created January 19, 2016 13:27 — forked from bradfrost/gist:59096a855281c433adc1
Why I'm Not A JavaScript Developer

Answering the Front-end developer JavaScript interview questions to the best of my ability.

  • Explain event delegation

Sometimes you need to delegate events to things.

  • Explain how this works in JavaScript

This references the object or "thing" defined elsewhere. It's like "hey, thing I defined elsewhere, I'm talkin' to you."

  • Explain how prototypal inheritance works.