Skip to content

Instantly share code, notes, and snippets.

View takuan-osho's full-sized avatar
🏠
Working from home

SHIMIZU Taku takuan-osho

🏠
Working from home
View GitHub Profile
@nathan-osman
nathan-osman / win32.go
Last active September 11, 2025 02:32
Simple Windows GUI application written in Go
package main
import (
"log"
"syscall"
"unsafe"
)
var (
kernel32 = syscall.NewLazyDLL("kernel32.dll")
@mattn
mattn / .README.md
Last active November 17, 2017 07:31
Visual Studio Code で msys2 の bash を使う方法

Visual Studio Code で msys2 の bash を使う方法

go で bash-login.go をビルドした後、出来上がった exe を以下の様に指定する。

ビルド方法

go build bash-login.go
@splhack
splhack / python2+3.md
Created May 18, 2016 06:01
MacVim with Python 2.x and Python 3.x
  • Install python 2.7.11

command line

$ PYTHON_CONFIGURE_OPTS="--enable-shared" \
    LDSHARED="clang -bundle" \
    LDCXXSHARED="clang++ -bundle" \
    BLDSHARED="clang -bundle -lpython2.7" \
    pyenv install 2.7.11
@dekokun
dekokun / pcurl.sh
Last active October 5, 2017 11:56
curlのproxy protocol対応
#!/bin/bash
# [nabeken/mikoi: mikoi is a HAProxy's proxy protocol enabler for command line tools.](https://github.com/nabeken/mikoi) のインストールが必要なので注意
# usage: curlの代わりにpcurlを使うだけで動くはずです
last_option=${@:$#}
# 最後のオプションを:で分割して最後のものからpathを取り除いたものがportっぽい
portlike=$(echo $last_option | awk -F":" '{print $NF }' | awk -F"/" '{print $1 }')
# 最後のオプションを:で分割して最初のものがschemeっぽい
@voluntas
voluntas / forwarding_server_auto_test.rst
Last active May 17, 2018 05:58
転送サーバおけるテストの自動化
@voluntas
voluntas / realtime_movie_stream.rst
Last active August 5, 2024 09:58
リアルタイム動画配信コトハジメ
@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'
@eyasuyuki
eyasuyuki / WASBOOK.md
Last active May 29, 2022 00:58
「体系的に学ぶ 安全なWebアプリケーションの作り方」の仮想環境をVagrantで動かす

前提条件

2015-10-28 現在

  • OS X 10.11.1
  • VirtualBox
  • Vagrant

仮想マシンイメージの入手またはダウンンロード

@hashrock
hashrock / diag.md
Last active September 18, 2025 01:43
作図系ツール・ライブラリまとめ

シーケンス図とかフローチャートをしごとで描画することになった場合、 テキストから生成できたら楽なので、それ系のツールまとめ

GraphViz

http://www.graphviz.org/

  • C製
  • Doxygen, Moinmoinなどと連携可能
  • ブロック図、クラス図、ネットワーク図など