Skip to content

Instantly share code, notes, and snippets.

View hailiang-wang's full-sized avatar
🌴
On vacation

Hai Liang W. hailiang-wang

🌴
On vacation
View GitHub Profile
@hailiang-wang
hailiang-wang / _service.md
Last active February 22, 2017 15:21 — forked from naholyr/_service.md
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
@hailiang-wang
hailiang-wang / video_play.html
Created February 20, 2017 05:37
HTML video element
<section class='show'>
<div class='h1'>
<div class='floater'></div>
</div>
<div class='content'>
<a href="javascript:void(0);" target='_blank' ng-click="wechat()"><i class='fa fa-weixin fa-2x'></i></a>
<a href="mailto:[email protected]"><i class='fa fa-envelope fa-2x'></i></a>
<a href="https://rockq.org/" target='_blank'><i class='fa fa-users fa-2x'></i></a>
<a href="https://github.com/rockq-org" target="_blank"><i class='fa fa-git fa-2x'></i></a>
<a href="http://git.oschina.net/ubiware/node-party" target='_blank'><i class='fa fa-dot-circle-o fa-2x'></i></a>
@hailiang-wang
hailiang-wang / cudnn5_Dockerfile
Created January 7, 2017 03:44
Nvidia CUDA Installations Ubuntu
FROM cuda:8.0-runtime
LABEL maintainer "NVIDIA CORPORATION <[email protected]>"
# https://github.com/NVIDIA/nvidia-docker/blob/master/ubuntu-14.04/cuda/8.0/runtime/cudnn5/Dockerfile
RUN apt-get update && apt-get install -y \
curl && \
rm -rf /var/lib/apt/lists/*
ENV CUDNN_VERSION 5
LABEL com.nvidia.cudnn.version="5"
=============== Powered by Wechaty ===============
-------- https://github.com/zixia/wechaty --------
I'm a bot, my super power is talk in Wechat.
If you send me a 'ding', I will reply you a 'dong'!
__________________________________________________
Hope you like it, and you are very welcome to
upgrade me for more super powers!
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcudnn.so.5 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcufft.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcurand.so.8.0 locally
INFO:tensorflow:Using config: {'cluster_spec': None, 'master': '', '_job_name': None, 'tf_random_seed': None, 'task': 0, 'keep_checkpoint_max': 5, '_is_chief': True, 'tf_config': gpu_options {
per_process_gpu_memory_fraction: 1
}
, 'save_checkpoints_secs': 600, 'evaluation_master': '', 'num_ps_replicas': 0, 'keep_checkpoint_every_n_hours': 10000, 'save_summary_steps': 100}
WARNING:tensorflow:parser_num_threads is deprecated, it will be removed onSept 3 2016
@hailiang-wang
hailiang-wang / Gulp_Typescript_React_JSX_Browserify_Livereload_Nodemon
Created October 9, 2016 06:10
Fullstack solution with GULP 4 - Gulp+Typescript+React+Browserify+Nodemon
// LAST EDIT: 30/11/2015
//GULP 4
var gulp = require('gulp');
var merge = require('merge2');
var source = require('vinyl-source-stream');
var browserify = require('browserify');
var uglify = require("gulp-uglify");
var buffer = require('vinyl-buffer');
var notify = require('gulp-notify');
var nodemon = require('gulp-nodemon');
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10
var restify = require('restify');
var builder = require('botbuilder');
var config = require('./config');
//=========================================================
// Bot Setup
//=========================================================
// Setup Restify Server
var server = restify.createServer();
@hailiang-wang
hailiang-wang / mesos-ubuntu-install.sh
Created January 16, 2016 11:10 — forked from crosbymichael/mesos-ubuntu-install.sh
Install mesos on ubuntu 14.04
#!/bin/bash
set -e
apt-get install -y curl python-setuptools python-pip python-dev python-protobuf
# zookeeper
apt-get install -y zookeeperd
echo 1 | dd of=/var/lib/zookeeper/myid
@hailiang-wang
hailiang-wang / gist:2d9e5afc772590908f86
Created November 11, 2015 06:54 — forked from breim/gist:1ec4981dc7a854011629
Nginx 1.4.6 Default configuration
# You may add here your
# server {
# ...
# }
# statements for each of your virtual hosts to this file
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls