Skip to content

Instantly share code, notes, and snippets.

mangreen / Youtube Get Current Second Api Demo.
Last active Jul 14, 2020
Youtube Get Current Second Api Demo.
View Youtube Get Current Second Api Demo.
<!DOCTYPE html>
<!-- 1. The <iframe> (and video player) will replace this <div> tag. -->
<div id="player"></div>
<div>Current Time: <span id="time"></span></div>
// 2. This code loads the IFrame Player API code asynchronously.
var tag = document.createElement('script');
View gist:294bda9f4d9ca98b3d1f99cffe19c78b
使用 minikube
mangreen /
Created Nov 16, 2017 — forked from kevin-smets/
Local Kubernetes setup on macOS with minikube on VirtualBox and local Docker registry


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!


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


Make sure to update your homebrew formulas

brew update
View Build tensorflow on OSX with NVIDIA CUDA

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.


OS X 10.10 (Yosemite) or newer

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 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();
params.put("event", event);
params.put("partic", partic);
catch (Exception e)
You can’t perform that action at this time.