Skip to content

Instantly share code, notes, and snippets.

View tomohiro's full-sized avatar
😎

Tomohiro Taira tomohiro

😎
View GitHub Profile
# frozen_string_literal: true
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'actionmailer', '6.0.3.4'
gem 'rspec', '3.10.0'
end
@tomohiro
tomohiro / Dockerfile.large
Last active January 10, 2019 08:19
(Experimental) Ruby Container size reducing
FROM ruby:2.6.0-slim-stretch
RUN set -ex \
&& apt-get update -qq && apt-get install -y --no-install-recommends \
build-essential=12.3 \
libxml2-dev=2.9.4+dfsg1-2.2+deb9u2 \
libxslt1-dev=1.1.29-2.1 \
libsqlite3-dev=3.16.2-5+deb9u1 \
&& apt-get clean \
&& apt-get autoclean \
@tomohiro
tomohiro / keybase.md
Created July 12, 2016 13:45
Keybase - Public key crypto for everyone, publicly auditable proofs of identity.

Keybase proof

I hereby claim:

  • I am tomohiro on github.
  • I am tomohiro (https://keybase.io/tomohiro) on keybase.
  • I have a public key ASBJuA0vCPIYQqGMQ7SL0vq8vOXmiQyqiP3TFyRI1MMongo

To claim this, I am signing this object:

@tomohiro
tomohiro / notifier.rb
Created May 24, 2016 13:15
Redmine notifier to Slack
require 'dotenv'
Dotenv.load
require 'slack-notifier'
require 'json'
require 'redmine-ruby'
module Redmine
class Issue < Base
collection_path 'issues.xml'
@tomohiro
tomohiro / characters.yml
Last active February 19, 2016 07:28
Marvel Characters
---
- Iron Man
- Spider-Man
- Hulk
- Thor
- Captain Marvel
- Black Widow
- Captain America
- Black Panther
@tomohiro
tomohiro / README.md
Last active July 26, 2020 19:26
Creating persistent storage with CoreOS + xhyve

Creating persistent storage with CoreOS + xhyve

Environment

@tomohiro
tomohiro / screen.rb
Last active October 27, 2016 08:49
Homebrew recipe for GNU Screen 4.2.0 (Support NFD)
# Usage:
# $ brew install https://gist.githubusercontent.com/Tomohiro/70feedac347a67b61821/raw/screen.rb
class Screen < Formula
homepage "https://www.gnu.org/software/screen"
stable do
url "http://ftpmirror.gnu.org/screen/screen-4.2.0.tar.gz"
mirror "https://ftp.gnu.org/gnu/screen/screen-4.2.0.tar.gz"
sha1 "85a206e1e474fd608f17e88bfe5f90a55f21c51a"
@tomohiro
tomohiro / mavericks_to_yosemite.md
Last active August 29, 2015 14:07
Mavericks to Yosemite

Mavericks

Homebrew update & upgrade:

$ brew update
$ brew upgrade
$ brew cleanup
@tomohiro
tomohiro / mime.go
Last active August 29, 2015 14:06
Check mimetype of images
// Usage:
// $ go run mime.go
// foo.png -> image/png
// bar.jpg -> image/jpeg
// baz.gif -> image/gif
// foo.bmp -> image/bmp
//
// Description:
// Check mimetype of images
//
@tomohiro
tomohiro / zoi.yml
Last active August 9, 2016 03:48
zoi
- image: 'https://pbs.twimg.com/media/BspTawrCEAAwQnP.jpg'
image: 'https://pbs.twimg.com/media/BspTkipCIAE4a0n.jpg'
image: 'https://pbs.twimg.com/media/BspWSkvCAAAMi43.jpg'
image: 'https://pbs.twimg.com/media/BspWVoqCEAADtZ4.jpg'
image: 'https://pbs.twimg.com/media/BspWaPYCAAAI6Ui.jpg'
image: 'https://pbs.twimg.com/media/BswuTdaCQAAQCkg.jpg'
image: 'https://pbs.twimg.com/media/Bts7OpFCcAEkaO4.jpg'
image: 'https://pbs.twimg.com/media/BswuJviCYAMCdGc.png'
image: 'https://pbs.twimg.com/media/Bsw1StjCQAA9NQ1.jpg'
image: 'https://pbs.twimg.com/media/BuR1jSWCcAEwakw.jpg'