Skip to content

Instantly share code, notes, and snippets.

Avatar

Masahiro TAMURA tamoot

  • とやまし
  • Toyama, Japan
View GitHub Profile
@tamoot
tamoot / format_and_mount.sh
Last active Apr 13, 2020
format_and_mount.sh
View format_and_mount.sh
#!/bin/bash -eux
_STDOUT_LOG=`hostname`_format_and_mount_${1}_`date +%s`_$$.log
exec > >(tee -a ${_STDOUT_LOG})
exec 2>&1
: ================================-
date
hostnamectl
@tamoot
tamoot / README.md
Last active Jan 10, 2019
utility_20190110
View README.md
  • temporary upload
@tamoot
tamoot / plantuml.rb
Last active Aug 21, 2017
#tDiary 向け PlantUML プラグイン
View plantuml.rb
# -*- coding: utf-8 -*-
# create image by PlantUML http://plantuml.com/
#
# Copyright (c) tamoot <tamoot+tdiary@gmail.com>
# Distributed under the GPL
#
require 'uri'
require 'zlib'
require 'digest/md5'
@tamoot
tamoot / diff_gfm.rb.diff
Created Aug 17, 2017
tDiary GFMスタイルのプラグイン記法において、ヒアドキュメントをサポート
View diff_gfm.rb.diff
diff --git a/lib/tdiary/style/gfm.rb b/lib/tdiary/style/gfm.rb
index 1782294..466c18d 100644
--- a/lib/tdiary/style/gfm.rb
+++ b/lib/tdiary/style/gfm.rb
@@ -3,6 +3,7 @@
require 'github/markdown'
require 'rouge'
require 'twitter-text'
+require 'pp'
@tamoot
tamoot / Dockerfile
Created Aug 1, 2017
Dockerfile.plantuml(うまくいっていない
View Dockerfile
FROM maven:3-jdk-8
ARG http_proxy
ARG https_proxy
ENV http_proxy ${http_proxy}
ENV https_proxy ${https_proxy}
RUN apt-get update && apt-get install -y --no-install-recommends graphviz fonts-wqy-zenhei fonts-vlgothic && rm -rf /var/lib/apt/lists/*
COPY pom.xml /app/
@tamoot
tamoot / vote.coffee
Last active Jun 14, 2017 — forked from moomindani/vote.coffee
Hubot script: Utility commands for voting someone.
View vote.coffee
# Description:
# Utility commands for voting someone.
#
# Commands:
# <name>++, <name>--, !vote-list, !vote-clear
module.exports = (robot) ->
KEY_SCORE = 'key_score'
getScores = () ->
@tamoot
tamoot / install_docker.sh
Created Mar 31, 2017
install_docker.sh for Ubuntu 16.04 Xenial
View install_docker.sh
#!/bin/bash
# 2017/03/31 see follwing URL
# - https://docs.openstack.org/admin-guide/support-compute.html
ls /etc/.docker-ce
if [ $? -eq 0 ]; then
exit 0
fi
@tamoot
tamoot / hoge.rb
Created Jan 25, 2017
あほみたい
View hoge.rb
{
ph1: {
review: { unit: 0.5, unit_label: 'hour/page', label: 'レビュー' },
bug: { unit: 0.5, unit_label: 'bug/page' , label: 'NG' }
},
ph2: {
review: { unit: 0.4, unit_label: 'hour/page', label: 'レビュー' },
bug: { unit: 0.5, unit_label: 'bug/page' , label: 'NG' }
},
ph3: {
View memo_for_ConEmu.md

ConEmu Settingsについての個人的メモ

Main

  • Main console font: 好み
  • Alternative font : 好み

Startup

  • Specified named task : git-bashにする
@tamoot
tamoot / Gemfile
Last active Oct 8, 2016
schtasksコマンド用serverspec
View Gemfile
# frozen_string_literal: true
source "https://rubygems.org"
gem "serverspec", "2.36.1"