Skip to content

Instantly share code, notes, and snippets.

Avatar

Hiro Fukami d-sea

View GitHub Profile
View search-retweet-bot.rb
require 'twitter'
# login
client = Twitter::REST::Client.new do |config|
config.consumer_key = ENV['CONSUMER_KEY']
config.consumer_secret = ENV['CONSUMER_SECRET']
config.access_token = ENV['ACCESS_TOKEN']
config.access_token_secret = ENV['ACCESS_TOKEN_SECRET']
end
View rt-fav-bot.rb
require 'twitter'
## login ##
client = Twitter::REST::Client.new do |config|
config.consumer_key = ENV['CONSUMER_KEY']
config.consumer_secret = ENV['CONSUMER_SECRET']
config.access_token = ENV['ACCESS_TOKEN']
config.access_token_secret = ENV['ACCESS_TOKEN_SECRET']
end
View Vichrome setting
### Hiro Fukami's Settings
# aliases
# in this example you can open extensions page by the command ':ext'
# and Chrome's option page by the command ':option'
alias ext TabOpenNew chrome://extensions/
alias option TabOpenNew chrome://settings/browser
alias downloads TabOpenNew chrome://downloads
alias history TabOpenNew chrome://history
View node.json
{
"userinfo" : {
"username" : [your username],
"accessley_id" : [your accesskey_id],
"secret-accesskey_id" : [your secret-accesskey_id]
},
"s3fs" : {
"version" : "1.74"
},
"run_list":[
@d-sea
d-sea / swp_setup_default.rb
Last active Jan 2, 2016
[SmartWP](http://www.shakesoul.net/smartwp) - Chef recipe for base setup : site-cookbooks/swp_setup/recipes/default.rb
View swp_setup_default.rb
#
# Cookbook Name:: swp_setup
# Recipe:: default
#
# Copyright 2014, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
######### create SWAP for micro instance of AWS EC2 ##########
@d-sea
d-sea / swp_scale-org_default.rb
Last active Jan 2, 2016
[SmartWP](http://www.shakesoul.net/smartwp) - Chef recipe for origin site : site-cookbooks/swp_scale-org/recipes/default.rb
View swp_scale-org_default.rb
#
# Cookbook Name:: swp_scale-org
# Recipe:: default
#
# Copyright 2014, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
############## s3fs install ###########