Skip to content

Instantly share code, notes, and snippets.

View d-sea's full-sized avatar

Hiro Fukami d-sea

View GitHub Profile
### 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
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
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
@d-sea
d-sea / swp_scale-org_default.rb
Last active January 2, 2016 16:09
[SmartWP](http://www.shakesoul.net/smartwp) - Chef recipe for origin site : site-cookbooks/swp_scale-org/recipes/default.rb
#
# Cookbook Name:: swp_scale-org
# Recipe:: default
#
# Copyright 2014, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
############## s3fs install ###########
@d-sea
d-sea / swp_setup_default.rb
Last active January 2, 2016 16:09
[SmartWP](http://www.shakesoul.net/smartwp) - Chef recipe for base setup : site-cookbooks/swp_setup/recipes/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 / node.json
Last active January 2, 2016 16:09
[SmartWP](http://www.shakesoul.net/smartwp) - Chef node file
{
"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 / docker-compose.yml
Created October 17, 2017 07:27
Ruby on Rails 開発環境を Docker Compose で作った際の docker-compose.yml
version: '2'
services:
web:
depends_on:
- db
image: ruby:2.3.0
ports:
- "3000:3000"
links:
- db
require 'date'
require 'mail'
require 'json'
notify_term = 5
File.open("item-list.json", "r+") do |f|
f.each_line { |line|
item = JSON.parse(line)
@d-sea
d-sea / ViewController.swift
Created May 27, 2019 00:41
Firebase Firestore getDocuments GeoPoint data
//
// ViewController.swift
// Futsal-Kakekomi
//
// Created by Hiro Fukami on 2019/04/22.
// Copyright © 2019 Hiro Fukami. All rights reserved.
//
import UIKit
import Firebase
@d-sea
d-sea / FormViewController.swift
Created May 27, 2019 00:45
Firebase FIrestore addDocuments GeoPoint data in Fureka
//
// FormViewController.swift
// Futsal-Kakekomi
//
// Created by Hiro Fukami on 2019/05/01.
// Copyright © 2019 Hiro Fukami. All rights reserved.
//
import UIKit
import Eureka