Skip to content

Instantly share code, notes, and snippets.

View hoshinotsuyoshi's full-sized avatar
🍫
alive

hoshino tsuyoshi hoshinotsuyoshi

🍫
alive
View GitHub Profile
@-moz-document domain("twitter.com") {
/*
* Hide right sidebar items
*/
/* Hide trends */
[aria-label="Timeline: Trending now"] {
display: none;
}
}
# frozen_string_literal: true
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '2.5.6'
gem 'spree', '~> 4.0.0.beta'
gem 'spree_auth_devise', '~> 4.0.0.rc1'
gem 'spree_gateway', '~> 3.6'
@hoshinotsuyoshi
hoshinotsuyoshi / memo.md
Last active June 7, 2019 10:24
Mojaveでmysql5.7でThe server quit without updating PID file起きたのでbrew installしなおし

アンインストール

brew uninstall --force mysql

sudo rm -rf /usr/local/mysql
sudo rm -rf /Library/StartupItems/MYSQL
sudo rm -rf /Library/PreferencePanes/MySQL.prefPane
sudo rm -rf /Library/Receipts/mysql-.pkg
sudo rm -rf /usr/local/Cellar/mysql*
@hoshinotsuyoshi
hoshinotsuyoshi / 貼りたい
Created May 19, 2016 06:03
hoshinotsuyoshi/codedeploy_slack_notify にimageを貼りたい
貼りたい

docker swarm触ってみた

hoshinotsuyoshi 2015/10/14


rails エンジニア的な

#cloud-config
coreos:
etcd2:
# https://discovery.etcd.io/new?size=3
discovery: https://discovery.etcd.io/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
advertise-client-urls: http://$private_ipv4:2379
initial-advertise-peer-urls: http://$private_ipv4:2380
listen-client-urls: http://0.0.0.0:2379
listen-peer-urls: http://$private_ipv4:2380
@hoshinotsuyoshi
hoshinotsuyoshi / log.md
Created July 6, 2015 03:40
railsで、例えばDate#yesterdayが利用できる理由

質問を受けて、どこからrequireされてるか知らないので調べてみた。調べた記録。

メソッドの定義箇所はMethod#source_locationで調べられる

Date.today.method(:yesterday).source_location
@hoshinotsuyoshi
hoshinotsuyoshi / file0.txt
Last active August 29, 2015 14:10
dockerでWEBページのスクリーンショットを撮る ref: http://qiita.com/hoshino/items/bb0b72f9a8e180572895
$ docker run --rm -v $PWD:/srv ubermuda/screenshot http://www.yahoo.co.jp yahoo.png 1920px
@hoshinotsuyoshi
hoshinotsuyoshi / setup.rb
Created July 15, 2014 15:28
VultrVPSへCoreOSを入れる。ipxe/cloud-configでBootstrap/Configurationする用のサンプルスクリプト(embedded)
@time = Time.now
@reporter = []
require 'pry'
require 'vultrlife'
require 'net/ssh'
account = Vultrlife::Account.new do |account|
account.api_key = 'xxxxxxxxxxxxxxxxxxx'
end