Skip to content

Instantly share code, notes, and snippets.

View tamoot's full-sized avatar

Masahiro TAMURA tamoot

  • とやまし
  • Toyama, Japan
View GitHub Profile
@tamoot
tamoot / memo.md
Last active January 8, 2022 07:10
xubuntu
apt install language-pack-ja -y
apt install ibus-mozc -y
apt install gdebi-core wget -y
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
gdebi google-chrome-stable_current_amd64.deb
apt install mcomix -y
timedatectl status
timedatectl set-local-rtc true
timedatectl set-timezone Asia/Tokyo
@tamoot
tamoot / format_and_mount.sh
Last active April 13, 2020 14:03
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 January 10, 2019 07:11
utility_20190110
  • temporary upload
@tamoot
tamoot / plantuml.rb
Last active August 21, 2017 05:01
#tDiary 向け PlantUML プラグイン
# -*- 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 August 17, 2017 08:09
tDiary GFMスタイルのプラグイン記法において、ヒアドキュメントをサポート
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 August 1, 2017 07:10
Dockerfile.plantuml(うまくいっていない
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 June 14, 2017 02:28 — forked from moomindani/vote.coffee
Hubot script: Utility commands for voting someone.
# 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 March 31, 2017 05:25
install_docker.sh for Ubuntu 16.04 Xenial
#!/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 January 25, 2017 07:06
あほみたい
{
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: {
@tamoot
tamoot / memo_for_ConEmu.md
Created October 17, 2016 03:05
ConEmuのメモ

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

Main

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

Startup

  • Specified named task : git-bashにする