Skip to content

Instantly share code, notes, and snippets.

Avatar

Hiro Fukami d-sea

View GitHub Profile
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 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 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
@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 ###########
@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 ##########
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 / docker-compose.yml
Created Oct 17, 2017
Ruby on Rails 開発環境を Docker Compose で作った際の docker-compose.yml
View docker-compose.yml
version: '2'
services:
web:
depends_on:
- db
image: ruby:2.3.0
ports:
- "3000:3000"
links:
- db
View notify_subscription_items.rb
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
Firebase Firestore getDocuments GeoPoint data
View ViewController.swift
//
// 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
Firebase FIrestore addDocuments GeoPoint data in Fureka
View FormViewController.swift
//
// FormViewController.swift
// Futsal-Kakekomi
//
// Created by Hiro Fukami on 2019/05/01.
// Copyright © 2019 Hiro Fukami. All rights reserved.
//
import UIKit
import Eureka