Skip to content

Instantly share code, notes, and snippets.

View xiaotian-tan's full-sized avatar

Xiaotian Tan xiaotian-tan

View GitHub Profile
@xiaotian-tan
xiaotian-tan / gist:86c46fa18b084e73a2a1d0e71fce31ee
Created February 8, 2019 10:11
kill go services in dev enviornment
# Find service running on port 8080
lsof -i :8080
# kill services by PID
kill -9 PID
# Check process runned related to go
ps -ef|grep "go"
@xiaotian-tan
xiaotian-tan / index.html
Last active February 28, 2017 15:41
Google Maps embed toggle in AngularJs
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.min.js"></script>
<script src="main.js"></script>
</head>