https://github.com/teppeis/closure-ts
異論は認めない。
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 |
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 |