Skip to content

Instantly share code, notes, and snippets.

View Mahito's full-sized avatar

Mahito Mahito

View GitHub Profile
@Mahito
Mahito / invite_all_members.rb
Created December 21, 2018 02:19
`invite all members to [channel name] for [topic]` でチャンネルを作ってトピックを設定して全メンバをチャンネルに入れるBOTのコード
require 'slack-ruby-client'
Slack::Web::Client.configure do |config|
config.token = ENV['SLACK_API_USER_TOKEN']
raise 'Missing ENV[SLACK_API_USER_TOKEN]!' unless config.token
STDOUT.sync = true
config.logger = Logger.new(STDOUT)
config.logger.level = Logger::INFO
@Mahito
Mahito / pumba-ab-manifest.yml
Created April 10, 2019 02:36
Apache Benchのデプロイ用マニフェスト
apiVersion: apps/v1
kind: Deployment
metadata:
name: pumba-ab-delay
namespace: pumba
labels:
app: pumba-ab-delay
spec:
replicas: 1
selector:
@Mahito
Mahito / pumba-ab-manifest.yml
Created April 10, 2019 02:36
Apache Benchのデプロイ用マニフェスト
apiVersion: apps/v1
kind: Deployment
metadata:
name: pumba-ab-delay
namespace: pumba
labels:
app: pumba-ab-delay
spec:
replicas: 1
selector: