Skip to content

Instantly share code, notes, and snippets.

View int128's full-sized avatar

Hidetake Iwata int128

View GitHub Profile
@cvson
cvson / AppleScript-chrome-screenshot
Created August 27, 2014 03:47
Automatically screenshot webpage with AppleScript
-- set file name
set fileNames to "webshot-googleAnalytics"
tell application "Google Chrome"
-- open window with secret mode, if with normal mode then use {mode:"normal"}
set aWin to make new window with properties {mode:"normal"}
tell aWin
-- open new tab and set URL
set newTab to make new tab with properties {URL:"https://www.google.com/analytics/web/?et=&authuser=#report/visitors-overview/a38108925w74194420p76615924/"}
tell active tab
@Kuniwak
Kuniwak / Promises_A_plus_JP.markdown
Last active December 19, 2015 05:19
JavaScript でスマートに非同期なコードを書くための Promise パターンの仕様(改良版)の邦訳です。

JavaScript でスマートに非同期なコードを書くための Promise パターンの仕様のうち、thenメソッドに関する仕様であるPromises/A+の邦訳です。 お約束の文言ですが、この翻訳は間違ってるかもしれません。ご指摘・ご質問は大歓迎です。

原文(英語)


Promise/A+

この提言はPromises/A 仕様の提言の振る舞いを明確にし、かつ事実上の標準をカバーしつつ曖昧・問題のある部分を除いたものである。

@katzchang
katzchang / readme.md
Last active January 1, 2016 03:19
VOYAGE GROUPに転職して2年とちょっとが経ちました #vgadvent2013 @katzchang.gist

VOYAGE GROUPに転職して2年とちょっとが経ちました

2年経ったらなんとなくまとめる流れがあったので、それに習い、2年間を振り返ってみます。

adingo Fluct開発チーム

入社当時の配属先。当時は@ajiyoshiがリード、1ヶ月前に入社していた@brtriverがグリーンバンドをしていたのが印象的だった。

管理系はPHPで書かれており、まともに触るのは初。最初はWindows上でなんとかしようとしたが、すぐに諦めてUbuntu on VMWareにした。本番サーバはCentだったけど。「共通の開発環境」みたいなのを用意してくれていて、アプリケーションはそれぞれ独立していたがDBは共用していて(これもそのうち解消したはず)、隣の人のデータを壊したりしていた。まーそれでも、聞けば答えてくれる人たちが周りにいたので、とりあえず仕事をすることが出来た気がする。立ち上がりはかなりゆっくりで、初回のコミットは4週間後だった記憶がある。

First you want some software. You know what you want, so it makes sense that it’s most convenient if the the software is built by yourself.

Unfortunately (or luckily) you’re too busy doing your own stuff to write a software. You call up someone and ask him to write the software for you. You save time and he got a job. Win-Win!

But wait. He needs to understand what you want. You need to tell the developer what you want. You need communication. One of the problems of communication is you cannot tell if you successfully communicated. You ask something. The only way to see if your request is communicated right is to see the resulting product. The developer show the product as a proof of the communication.

Time is money. If it proves wrong after several months, ah-oh. It’s wasted time. You don’t want to waste time or money. You want to see the proof early, as early as possible. So the developer wants to, for the sake of a satisfied customer, create only a small chunk of software and show it to yo

@masahide
masahide / config
Created February 25, 2014 04:44
go で yaml 等を「map[interface{}]interface{}」型で読み込んだ際の動的型の参照方法 ref: http://qiita.com/yamasaki-masahide/items/d6e406c4c11d5870a1c6
mail_from: hoge@fuga.com
to: [hoge@fuga.com]
var:
c: 2
d: [3, 4]
@pascals-msft
pascals-msft / wsl-uninstall.txt
Created November 17, 2016 13:23
How to uninstall Windows Subsystem for Linux
In a privileged cmd.exe:
lxrun /uninstall /full
sc stop lxssmanager
rmdir /S %LOCALAPPDATA%\lxss
optionalfeatures.exe --> uncheck "Windows Subsystem for Linux (Beta)"
@tleen
tleen / gist:f7b3e40c8b3ad976df05
Created September 22, 2014 22:33
Create empty gh-pages branch for GitHub Pages
git checkout --orphan gh-pages
@int128
int128 / kubernetes-dashboard-proxy.yaml
Last active February 24, 2021 00:58
Access Kubernetes Dashboard via OpenID Connect Proxy
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kubernetes-dashboard-proxy
namespace: kube-system
spec:
replicas: 1
template:
metadata:
labels:
@earth2marsh
earth2marsh / uber.yaml
Last active April 5, 2021 13:39
A Swagger YAML specification for Uber's new API
swagger: 2
info:
title: The new Uber API
description: Move your app forward with the Uber API
version: "1.0.0"
host: api.uber.com
schemes:
- https
basePath: /v1
produces:
@tcnksm
tcnksm / terraform-at-mercari.md
Created November 7, 2019 10:57
Terraform at Mercari

Terraform at Mercari

2019-11-07

State of Terraform usage

All microservices-related tf codes are in one single repository

  • Mercari JP and US are separated (but thinking to merge in the future)
  • We have different repository for