Skip to content

Instantly share code, notes, and snippets.

View fk2000's full-sized avatar
🏢
working

fk_2000 fk2000

🏢
working
View GitHub Profile
FROM golang:1.9-alpine as base
WORKDIR /usr/src
COPY . .
RUN apk add git
RUN CGO_ENABLED=0 go get -d -ldflags "-s -w" .
RUN CGO_ENABLED=0 go build -ldflags "-s -w" -o main
FROM scratch
COPY --from=base /usr/src/main /go-http-microservice
CMD ["/go-http-microservice"]
@pataiji
pataiji / 1.HOWTO.md
Last active February 29, 2020 22:46
S3 + CloudFront で特定のパスへのアクセスをリダイレクトさせる
  1. S3の'Static Website Hosting'を有効にする
  2. 'Edit Redirection Rules'を編集する
  3. 'bucket policy'を編集する
  4. CLoudFrontのOriginにS3の'Static Website Hosting'のEndpointを指定する
@tomotaka
tomotaka / seitekidouteki.md
Last active June 4, 2018 08:02
静的型言語 vs 動的型言語

静的型 vs 動的型

※個人の見解です!!

静的片付け言語のいいところ

  • コード自体の情報量が多い
    • ドキュメントの自動生成が楽(少ないドキュメンテーション作業で質の高いドキュメントが作れる)
    • エディタ/IDEの自動補完をより強力にすることができる
  • 実行するまでもなく様々なことがコンパイル時に検査される
  • 実行速度が速い(言語が多い)
@Gab-km
Gab-km / github-flow.ja.md
Last active April 25, 2024 04:01 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)
@tatsuro-ueda
tatsuro-ueda / GitHubとHerokuに両対応させるには.md
Created September 2, 2012 08:23
GitHubとHerokuに両対応させるには

##GitHubとHerokuに両対応させるには

  1. herokuでapp:create

     $ heroku apps:create p120902-jishiha-search
     Creating p120905-rss-process-test... done, stack is cedar
     http://p120905-rss-process-test.herokuapp.com/ | git@heroku.com:p120905-rss-process-test.git
    
  2. $ git clone https://github.com/weed/p120902-jishiha-search.git

  3. 作業