Skip to content

Instantly share code, notes, and snippets.

# Default global options.
# prefixキーをC-aに変更する
set-option -g prefix C-a # C-a for perfix just like screen
# C-a*2でtmux内のプログラムにC-aを送る
bind C-a send-prefix
# C-bのキーバインドを解除する
unbind C-b
setw -g utf8 on
@akimichi
akimichi / .env
Last active March 14, 2022 23:28
mongoqlの環境設定 .env
MONGO_USER=emile
MONGO_PASSWORD=shinka
MONGO_HOST=hippocrates.local
# MONGO_HOST=galeus.local
MONGO_PORT=27117
MONGO_DATABASE=EHR-dev
ORCAQL_URL=http://orcaql.local:4000/graphql
@akimichi
akimichi / docker-compose.yml
Last active March 14, 2022 20:41
orcaqlとmongoqlを利用するための docker-compose.yml
version: '3.8'
services:
nginx:
container_name: nginx_service
build:
context: ./nginx/
dockerfile: ./Dockerfile
ports:
- "80:80"
links:
@akimichi
akimichi / crontab
Created February 28, 2020 06:34
raspberry pi で再起動時の自動起動するためのcrontab
#!/bin/sh
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/home/emile/.nvm/versions/node/v6.9.2/bin
MAILTO=root
HOME=/home/emile/app/denrei.node
@reboot (sleep 30s ; cd $HOME; nvm use; npm start)&
@akimichi
akimichi / rpi_opencv_install.sh
Created October 20, 2017 01:32
raspberry pi jessie のpython上に OpenCV3 をインストールする
#!/bin/bash
# full update
sudo apt-get update
sudo apt-get -y upgrade
sudo rpi-update
# reboot required
read -r -p "You may need to reboot your RPi. Would you like to do that? [y/N] " response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]
then
@akimichi
akimichi / Dockerfile.pandoc
Last active June 25, 2017 17:03
Dockerfile for pandoc command
FROM haskell:8.0
LABEL maintainer="Akimichi Tatsukawa <akimichi.tatsukawa@gmail.com>" \
description="pandocコマンドを実行するためのdockerイメージ"
# インストールするpandocのバージョンを設定する
ENV PANDOC_VERSION "1.19.2.1"
# latexパッケージをインストールする
RUN apt-get update -y \
@akimichi
akimichi / .gitignore
Last active May 6, 2017 04:31
.gitignore for express4
# Logs
logs
*.log
npm-debug.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
@akimichi
akimichi / app.js
Last active April 18, 2017 12:06
express4でjohnny-fiveを使う
"use strict";
const express = require('express');
const app = express();
const http = require('http').Server(app);
const io = require('socket.io')(http);
const flash = require('connect-flash');
const bodyParser = require('body-parser');
const methodOverride = require('method-override');
const errorHandler = require('errorhandler');
@akimichi
akimichi / ndtpd.conf
Created July 11, 2014 12:29
upstart script for ndtpd
File Edit Options Buffers Tools Conf Help
# ndtpd
description "ndtpd"
author "Akimichi Tatsukawa <akimichi.tatsukawa@gmail.com>"
start on runlevel [2345]
stop on runlevel [06]
env DAEMON=/usr/sbin/ndtpd
ReVIEW::Compiler.defblock :reduce,0..1
class ReVIEW::HTMLBuilder
def reduce(lines)
origin = lines.shift
puts %Q[<div class="table">]
puts %Q[<table class='table table-borderless'>]
lines.each_with_index do |line, index|
puts %Q[<tr>]
if(index == 0)
puts %Q[<td>]