Skip to content

Instantly share code, notes, and snippets.

twinbird twinbird

  • Japan - Toyama
Block or report user

Report or block twinbird

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
twinbird /
Created Mar 18, 2018
go development environment
# system
sudo apt update
sudo apt install build-essential tree
# go
curl -OL
sudo tar -C /usr/local -xzf go1.10.linux-amd64.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin' >> .profile
# vim
curl --silent --location | sudo bash -
sudo yum -y install vim git tmux tree gcc openssl-devel readline-devel sqlite-devel nodejs
sudo yum -y update
git config --global 'twinbird'
git config --global ''
git config --global core.editor 'vim'
curl -OL
curl -OL
alias vi=vim >> ~/.bash_profile
twinbird /
Created Nov 2, 2017
vagrant initial script
#!/usr/bin/env bash
# vagrant provisioning shell script for my development environemt
# for ubuntu/trusty64
test -f /etc/bootstrapped && exit
# install development utility
sudo apt-get -y install gcc
sudo apt-get -y install make
twinbird / gvimrc
Created Oct 31, 2017
View gvimrc
" Windows用gvimrc
scriptencoding utf-8
" カラー設定:
colorscheme desert
twinbird / pearson.go
Created Feb 17, 2017
Pearson hashing sample by golang
View pearson.go
package main
import (
func main() {
sc := bufio.NewScanner(os.Stdin)
View .tmux.conf
# prefixはt
set -g prefix C-t
# 再描画間隔は1秒
set-option -g status-interval 1
# 右下は日付
set-option -g status-right "#[fg=black][%Y/%m/%d]"
# ペインのサイズ変更を若干vim風に
bind -r < resize-pane -L 5
bind -r - resize-pane -D 5
bind -r + resize-pane -U 5
if [ $# != 1 ]; then
echo "Usage: $0 [binary name]"
exit 0
GOOS=linux GOARCH=amd64 go build -o ./bin/linux64/$1
GOOS=linux GOARCH=386 go build -o ./bin/linux386/$1
View .vimrc
set nocompatible "vi互換モードoff
" Plugin設定
" vundle.vimを使う
set rtp+=~/.vim/bundle/Vundle.vim/
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
View lex_sample.l
* Cプログラムの行数を数え,
* コメントを印字するプログラム
/* ここから定義部 */
/* Cと同じ記法でここはコメントになります */
/* yaccと連携するためのmain関数を出力しないオプション */
You can’t perform that action at this time.