Skip to content

Instantly share code, notes, and snippets.

View kazuhei's full-sized avatar

Kazuhei Arai kazuhei

  • M&ACloud
  • Tokyo, Japan
View GitHub Profile
@miliya612
miliya612 / note.md
Created April 7, 2019 06:41
containerと外部とのアクセスでだいぶつらかったのでまとめた

motivation

  • appを突っ込んだcontainerからhostのpostgresqlへのアクセスをしたい

絡んできたdocker関連の用語たち

  • docker link
    • すること: 環境変数の共有と/etc/hosts内に値を注入する
    • よきこと: いちいちcontainerのlocal IPを指定しなくても通信できるようにする
  • 決してcomponent間のアクセスを可能にするものではない
@okohs
okohs / whitelist.md
Last active September 7, 2019 22:57
20180122_定時前に帰宅できた企業

はじめに

書き方

該当する各社の対応欄に企業名を書いてください。備考があれば適宜カッコ書きしてください。

目的

  • 定時前に帰宅させてくれるホワイトな会社のりすとを気軽に作りたい
  • 定時前に帰宅させてくれるホワイトな会社がホワイトアピールできる場があれば良いな

@utgwkk
utgwkk / mysql-accumlate.md
Last active May 30, 2023 09:34
詳説 MySQLで累積和を求める方法

MySQL で累積和を求める方法

SELECT
    t1.accum_date
 , t1.count
# supervisor
#
# Author: Günter Grodotzki <gunter@grodotzki.co.za>
# Version: 2015-04-25
#
# - set param "SUPERVISE=enable" to activate
# - chmod +x supervise.sh
#
packages:
yum:
@staltz
staltz / introrx.md
Last active July 22, 2024 09:31
The introduction to Reactive Programming you've been missing
@nghuuphuoc
nghuuphuoc / gist:8282411
Last active February 11, 2022 18:45
Install wkhtmltopdf on Centos 6 x64
$ wget http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-amd64.tar.bz2
$ tar xvjf wkhtmltopdf-0.9.9-static-amd64.tar.bz2
$ mv wkhtmltopdf-amd64 /usr/bin/wkhtmltopdf
// In case you got the issue
// wkhtmltopdf: error while loading shared libraries:
// libfontconfig.so.1: cannot open shared object file: No such file or directory
//
// run the command below:
$ yum install urw-fonts libXext libXrender fontconfig libfontconfig.so.1
@mollifier
mollifier / zshrc_useful.sh
Last active July 8, 2024 09:22
少し凝った zshrc
# 少し凝った zshrc
# License : MIT
# http://mollifier.mit-license.org/
########################################
# 環境変数
export LANG=ja_JP.UTF-8
# 色を使用出来るようにする