Skip to content

Instantly share code, notes, and snippets.

View abe4tawa8's full-sized avatar

Yoichi Isozaki abe4tawa8

  • Galactic Empire
  • Imperial Star Destroyer
View GitHub Profile
@voluntas
voluntas / mqtt.rst
Last active March 1, 2023 06:47
MQTT とはなんだったのか

MQTT とはなんだったのか

更新

2017-05-09

作者

@voluntas

バージョン

3.14

URL

http://voluntas.github.io/

MQTT をググって調べた人向け

@juno
juno / how-to-sunset-a-feature.md
Last active August 29, 2015 14:20
機能の提供を終了する手順 / Japanese summary of "How to Sunset a Feature - Inside Intercom" https://blog.intercom.io/how-to-sunset-a-feature/

機能の提供を終了する手順

1. 終了してもよいことを確認する

以下の問いに答えられるようにする。

  • その機能を利用できるのはユーザー何%か?(ユーザーのプランによって利用可否がある場合など)、頻繁に利用されているか?
  • それらのユーザーの生み出す収益は何%か?
@juno
juno / foo_spec.rb
Last active August 29, 2015 14:19
RSpec with ActiveJob
describe Foo do
describe '.process', active_job: true do
it 'キューにジョブを2件保存する' do
expect {
described_class.process
}.to change{ActiveJob::Base.queue_adapter.enqueued_jobs.size}.by(2)
end
end
end
@vgeshel
vgeshel / function.js
Last active February 9, 2022 09:19
AWS Lambda function for forwarding SNS notifications to Slack
console.log('Loading function');
const https = require('https');
const url = require('url');
// to get the slack hook url, go into slack admin and create a new "Incoming Webhook" integration
const slack_url = 'https://hooks.slack.com/services/...';
const slack_req_opts = url.parse(slack_url);
slack_req_opts.method = 'POST';
slack_req_opts.headers = {'Content-Type': 'application/json'};

プロダクトへのフィードバックを集める際にやりがちな5つの失敗

Original: 5 mistakes we all make with product feedback

1. 「全ユーザー」に話しかけるのをやめる

  • 全ユーザーを対象にした調査では「昨日サインアップしたユーザー」と「長期間利用してくれているユーザー」を同一視してしまう
  • 新規ユーザーの利用ステップを改善したければ、最近サインアップしたユーザーだけに問いかけること
  • ある機能を改善したければ、その機能を使っているユーザーだけに問いかけること
  • ある機能がなぜ利用されないのかを知りたければ、その機能を使っていないユーザーだけに問いかけること
  • ユーザーの感心が高い部分を知りたければ、すべての機能を利用しているアクティブなユーザーだけに問いかけること
@sonots
sonots / fluentd_ruby2.1.1.md
Last active June 19, 2020 05:56
fluentd w/ ruby 2.1.1 の進捗ダメです。 #=> ロングランさせると安定しました

メモリ使用量が増え続ける

memory

最初の山: ruby 2.1.1 + fluentd v0.10.43 + cool.io v1.1.1 + msgpack v0.5.8 # ruby バージョンアップして、他の gem は安定稼働している本番と同じにした(同じ Gemfile.lock を使った)

2つ目の山: ruby 2.1.1 + fluentd v0.10.43 + cool.io v1.1.1 + msgpack v0.5.5 => 安定したかと一瞬思ったが "can't modify frozen String" 例外が出て何も処理できていなかっただけっぽい. v0.5.6 で修正された https://github.com/msgpack/msgpack-ruby/blob/master/ChangeLog

3つ目の山: ruby 2.1.1 + fluentd v0.10.43 + cool.io v1.1.1 + msgpack v0.5.6

@srayhunter
srayhunter / configure-apache-path-environment-variable-on-macosx.md
Last active April 27, 2022 12:56
Configure Apache on Mac OSX with Environment Variables

Configure Apache Path Environment Variable on Mac OSX

Problem: Apache2/PHP did not find a program to execute on its configured path

Solution: Add a new path of /usr/local/bin to Apache2's path where the program was installed

  1. Edit the Apache2 plist file with whatever editor you like (example using vim):

     $ sudo vim /System/Library/LaunchDaemons/org.apache.httpd.plist
    
@mochiz
mochiz / gist:5027808
Last active December 14, 2015 04:19
Ruby2 + Rails4環境を構築する(2013/02/25版)

更新日:2013/02/26

※WEB+DB PRESS vol.73のRails4特集を写経したくてRuby2 + Rails4環境を構築した際のメモです。
まっとうな手順ではないので、大人しく正式リリースを待ったほうがいいと思いますが

2013/02/26 追記

gemがリリースされたので、ふつうにgem installするといいですよ

@mochiz
mochiz / gist:4736183
Last active April 16, 2023 03:56
rbenvとruby-buildでRuby環境を最新に保つ

rbenvとruby-buildでRuby環境を最新に保つ

更新日:2014/11/19

rbenv, ruby-buildを更新

$ cd ~/.rbenv
$ git pull origin master
$ cd ~/.rbenv/plugins/ruby-build
$ git pull origin master
@Gab-km
Gab-km / github-flow.ja.md
Last active April 25, 2024 04:01 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)