Skip to content

Instantly share code, notes, and snippets.

mangreen

Block or report user

Report or block mangreen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:294bda9f4d9ca98b3d1f99cffe19c78b
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 Nov 16, 2017 — forked from kevin-smets/1_kubernetes_on_macOS.md
Local Kubernetes setup on macOS with minikube on VirtualBox and local Docker registry
View 1_kubernetes_on_macOS.md

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 Oct 12, 2017 — forked from hakobe/client.go
golang unix domain socket
View client.go
package main
import (
"io"
"log"
"net"
"time"
)
func reader(r io.Reader) {
@mangreen
mangreen / LICENCE SUBLIME TEXT
Created Sep 24, 2017 — forked from RoseySoft/LICENCE SUBLIME TEXT
Sublime Text 3 Serial key build is 3103
View LICENCE SUBLIME TEXT
—– 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 Sep 24, 2017 — forked from abdulhannanali/Sublime Text License Key.md
Sublime Text 2 License Key, Sublime Text 3 License Key, Sublime Text Full Version.
View Sublime Text License Key.md
@mangreen
mangreen / tensorflow_cuda_osx.md
Created Apr 22, 2017 — 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)
View tensorflow_cuda_osx.md

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
View Build tensorflow on OSX with NVIDIA CUDA support.md

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 Aug 22, 2016 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.
View install-comodo-ssl-cert-for-nginx.rst

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

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

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.
You can’t perform that action at this time.