Skip to content

Instantly share code, notes, and snippets.

View kevingo's full-sized avatar
🏠
Working from home

kevingo kevingo

🏠
Working from home
View GitHub Profile
@kevingo
kevingo / readme.md
Created December 15, 2016 03:30
新竹地區修車廠
  • 清臺汽車修配廠:竹東鎮中興路一段173號
@kevingo
kevingo / ses.go
Created December 9, 2016 03:31
Send mail by SES
package main
import (
"fmt"
"net/mail"
"github.com/goamz/goamz/aws"
"github.com/goamz/goamz/exp/ses"
//"github.com/kr/pretty"
)
@kevingo
kevingo / readme.md
Created November 9, 2016 06:40
AWS Certificate of SysOps

Two status check

  1. system status check: aws will fix it or you can re-start the instance
  2. instance status check: you need yo solve by yourself. maybe running out of memory. you can check your program or restart the instance.
@kevingo
kevingo / readme.md
Last active October 30, 2016 02:30
Spark Learning Notes
  • Spark 針對平行運算架構做強化,並非取代 Hadoop
  • 用 memory 存放運算資料

Spark 好處

  • one stack to rule then all
  • 下載 spark 一包就包含了幾乎所有的東西,不像 Hadoop 有相當龐大的生態系
@kevingo
kevingo / s3-bucket-size.sh
Created October 20, 2016 08:03
Get all s3 bucket size
#!/bin/sh
# Report S3 bucket sizes
get_bucket_size() {
bucket="$1"
aws s3 ls s3://"$bucket" --recursive | grep -v -E "(Bucket: |Prefix: |LastWriteTime|^$|--)" | awk 'BEGIN {total=0}{total+=$3}END{print total/1024/1024" MB"}'
}
buckets=$(s3cmd ls |awk '{sub("^s3://","",$3); print $3}')
@kevingo
kevingo / gen_le_cert.sh
Created October 16, 2016 03:17 — forked from pahud/gen_le_cert.sh
letsencrypt cert generator with docker
#!/bin/bash
#
# 1. create a EC2 instance with public IP
# 2. create a A RR in route53 pointing your.domain.com to the public IP
# 3. make sure HTTP/HTTPS ports(80 443) are public to all in security group of this EC2 instance
# 4. make sure docker daemon is running in this EC2 instance
# 5. run this script !
# 6. keys/cert will be generated under /root/letsencrypt/etc/live/
mkdir -p /root/letsencrypt/log /root/letsencrypt/lib /root/letsencrypt/etc
@kevingo
kevingo / modern-web-2016.md
Created September 15, 2016 22:21 — forked from CYBAI/modern-web-2016.md
Note for Modern Web 2016
@kevingo
kevingo / readme.md
Last active September 14, 2016 03:32
Amazon ML

Regions

  • EU
  • US East

Supervise Learning Problem

  • AWS ML
  • ML 支援 classification、、regression

Unsupervised

  • AWS Spark + 客3rd library
@kevingo
kevingo / shell.sh
Created August 3, 2016 01:43
Install Jenkins
docker pull jenkins
docker run --name jenkins -d -p 49001:8080 -v $PWD/jenkins:/var/jenkins_home -t jenkins