Skip to content

Instantly share code, notes, and snippets.

View taichi's full-sized avatar
😸
shaving...

taichi taichi

😸
shaving...
View GitHub Profile
@taichi
taichi / tomcat.conf
Last active August 29, 2015 14:15 — forked from witscher/tomcat.conf
description "Tomcat Server"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit 10 5
# run as non privileged user
# add user with this command:
## adduser --system --ingroup www-data --home /opt/apache-tomcat apache-tomcat
@taichi
taichi / gist:41603d7029e9cf18482b91cc933a1413
Created April 11, 2016 08:21 — forked from teppeis/gist:d7f40170902a9a4144a2
TypeScript用フルスタック型付きライブラリのご提案 (https://gist.github.com/teppeis/10659631 は間違えて消しちゃったので再投稿)
@taichi
taichi / git-blame-pr.js
Last active December 28, 2017 08:06 — forked from kazuho/git-blame-pr.pl
git-blame by PR #
const { spawn, spawnSync } = require('child_process');
const readline = require('readline');
const blame = spawn('git', ['blame', '--first-parent', process.argv[2]]);
const lines = readline.createInterface({ input: blame.stdout });
const lookup = hash => {
const ret = spawnSync('git', ['show', '--oneline', hash]);
const msg = /Merge\s+(?:pull\s+request|pr)\s+\#?(\d+)\s/i;
const matcher = msg.exec(ret.stdout.toString());
#!/bin/bash
# run sudo apt update or similar and feed the password for the rest to run smooth
# this is for the old bash based on ubuntu 14.04
sudo apt update && sudo apt dist-upgrade -y
# Instlall NodeJS, Yarn and npm related dependencies
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list