Navigation Menu

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 / Gemfile
Last active October 8, 2016 13:39
schtasksコマンド用serverspec
# frozen_string_literal: true
source "https://rubygems.org"
gem "serverspec", "2.36.1"
@tamoot
tamoot / doc2rstcsvtable.rb
Created February 19, 2016 02:11
共有サーバ上の仕様書の状況をreStructuredTextのcsv-tableで標準出力へ
# -*- coding: utf-8 -*-
require 'kconv'
require 'digest/md5'
require 'date'
KOKYAKUSAMA = '○○様'
JOGAI = "^00|OLD|old|~|調査|mock|\.\d\d\d\d\d\d\d\d|品質監査|Thumbs.db|参考|bak|.zip$"
@tamoot
tamoot / gist:9f322752340c781bbfb9
Created January 18, 2016 07:32
RHEL6.5にdocker入れるときのコマンド
rpm -U http://vault.centos.org/6.6/updates/x86_64/Packages//device-mapper-libs-1.02.90-2.el6_6.3.x86_64.rpm http://vault.centos.org/6.6/updates/x86_64/Packages//device-mapper-event-1.02.90-2.el6_6.3.x86_64.rpm http://vault.centos.org/6.6/updates/x86_64/Packages//device-mapper-event-libs-1.02.90-2.el6_6.3.x86_64.rpm http://vault.centos.org/6.6/updates/x86_64/Packages//device-mapper-1.02.90-2.el6_6.3.x86_64.rpm
@tamoot
tamoot / instagram.rb
Created October 23, 2015 05:09
#tDiary instagram プラグイン 統合版 + 認証付きproxy版
# -*- coding: utf-8 -*-
#
# instagram.rb - embed your photo/videos in instagram to a diary
#
# Author: Tatsuya Sato
# License: GPL
require 'cgi'
require 'json'
require 'uri'
require 'net/http'
@tamoot
tamoot / instagram.rb
Created October 22, 2015 04:07
instagram.rb
# -*- coding: utf-8 -*-
#
# instagram.rb - embed your photo/videos in instagram to a diary
#
# Author: Tatsuya Sato
# License: GPL
require 'cgi'
require 'json'
require 'uri'
require 'net/http'
@tamoot
tamoot / kankore_2015_summer_event_memo.rst
Last active August 29, 2015 14:27
艦これ2015夏イベントメモ

艦これ2015夏イベントメモ

目次

資材推移

javascript:prompt('Title%20+%20URL', '[[' + document.title+'%5Cn'+location.href + ']]')();
@tamoot
tamoot / sample.java
Created May 2, 2015 15:17
素人がGenericsを使おうとしたさんぷる
package sample;
public class HogeClient {
private Adapter adapter;
private static Class<? extends Adapter> staticAdapter;
public Adapter getAdaper() {
if ( staticAdapter != null){
try {
this.adapter = staticAdapter.newInstance();
@tamoot
tamoot / tabelog.rb
Created April 22, 2015 07:04
tDiary用食べログ店舗情報埋め込みプラグイン
require 'uri'
def tabelog_badge(url, name)
id = File::basename(URI::parse(url).path)
script_url = %Q|http://tabelog.com/badge/google_badge?escape=false&rcd=#{id}|
return %Q|<div><strong><a href="#{url}" target="_blank">#{h(name)}</a></strong><br><script src="#{script_url}" type="text/javascript" charset="utf-8"></script></div>|
end
@tamoot
tamoot / part_of_dot_xyzzy
Created January 21, 2015 06:36
.xyzzyでのrest2html.bat実行用定義
(defun rst2html ()
(interactive)
(let* ((rst-file (get-buffer-file-name))
(html-file (concat (directory-namestring rst-file)
(pathname-name rst-file)
".html")))
(call-process (concat "D:\\App\\python_2_7_5\\python D:\\App\\python_2_7_5\\Scripts\\rst2html.py "
rst-file
" "
html-file