Skip to content

Instantly share code, notes, and snippets.

View yukirii's full-sized avatar
✈️

Yuki Kirii yukirii

✈️
View GitHub Profile
@clchiou
clchiou / non_graceful_shutdown.py
Created March 19, 2015 04:32
Python ThreadPoolExecutor (non-)graceful shutdown
#!/usr/bin/env python3
import concurrent.futures.thread
import sys
import time
from concurrent.futures import ThreadPoolExecutor, as_completed
def remove_file(path):
print('Removing file %s' % path)
@shokai
shokai / slack-reaction.coffee
Last active April 16, 2022 15:56
notify "reaction_added" event for slack.com
# Description:
# notify "reaction_added" event for slack.com
# http://shokai.org/blog/archives/10344
#
# Author:
# @shokai <[email protected]>
debug = require('debug')('hubot:slack-reaction')
_ = require 'lodash'
@sue445
sue445 / README.md
Last active April 22, 2020 10:56
俺のitamaeの実行方法

roleとnodeを設定しておけばいい感じにrake taskを生成します

前提

下記のようなディレクトリ構成を想定しています

  • roles/
    • <role名>.rb
  • nodes/
    • <node名>.yml
  • spec/
### tcpdumpでHeaderを可視化するで。特定backendとの通信を見てみよか。
$ /usr/sbin/tcpdump -i bond0.2168 -s 3000 -A dst host <対象backendのIP> or src host <対象backendのIP>

################### passナシ
...!..3.GET /kakeru.css HTTP/1.1
User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.13.1.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2
Host: 10.10.10.10
Accept: */*
X-Forwarded-For: 10.10.10.10
@willnet
willnet / be_a_rails_contributer.md
Last active August 21, 2023 05:44
Railsコントリビュータへの道

これはなに

  • Railsにプルリクストを送るときに知っておくと便利なお作法集
  • Railsにプルリクエストを送りたいけど何から始めたらいいのかわからない人向けの指針

お作法についてはRuby on Rails に貢献する方法 | Rails ガイドを参考にしています。

前提知識

Railsのコードを読むには、最低限次の二つの知識があったほうがよいです

@k-hoshina
k-hoshina / interface.md
Created January 11, 2017 10:05
interface{}のはなし

interface{}のはなし

goのinterfaceとは

方の定義とか関数の引数(あるいは帰り値)でよく使ってる

type Car interface {
  run(int)
  stop() bool
@daijinload
daijinload / musicisgreat.md
Last active February 11, 2018 14:57
音楽試聴に関してのまとめ

音楽を聴くのも歌うのも好きです。今知っている知識をまとめます。

オーディオ沼とオカルトの蔓延


注意したほうが良いです。お金がいくらあっても足りません。。。ここに書くのはコスパが良さそうでかつ、現実的な話です。ただ、僕自身も沼に片足突っ込んでいるかもしれませんのでその辺はご配慮くださいm(_ _)m

音が出る順番(左から右へ)


  • 携帯する機器(スマホ・PSVitaなど)(Bluetooth) > D/Aコンバータ > アンプ > スピーカー
@medicalwei
medicalwei / Dockerfile
Last active January 19, 2020 18:16
Example Dockerfile with Glide
FROM golang:1.8
RUN curl https://glide.sh/get | sh
ENV PKG_NAME=github.com/medicalwei/some-project
ENV PKG_PATH=$GOPATH/src/$PKG_NAME
WORKDIR $PKG_PATH
COPY glide.yaml glide.lock $PKG_PATH/
RUN glide install
@StevenACoffman
StevenACoffman / _MicroService Proxy Gateway Solutions.md
Last active July 15, 2024 05:12
Microservice Proxy/Gateway Solutions

MicroService Proxy Gateway Solutions

Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.

Github Star Trend:

Github Star History for Kong vs traefik vs fabio vs caddy vs Zuul

This is just a picture of this link from March 2, 2019

Originally, I had included some other solution