I hereby claim:
- I am f440 on github.
- I am f440 (https://keybase.io/f440) on keybase.
- I have a public key whose fingerprint is 4092 7D7D F720 F29F 312D 7FEA 951C 83FA 73A9 9D00
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
require 'rexml/document' | |
require 'elasticsearch' | |
doc = REXML::Document.new(open(ARGV[0]).read) | |
es = Elasticsearch::Client.new log: true | |
doc.elements.each('/posts/post') do |element| | |
# attributes: [href, time, description, extended, tag, hash, shared] |
require 'formula' | |
class Zaw < Formula | |
homepage 'https://github.com/zsh-users/zaw' | |
head 'https://github.com/zsh-users/zaw.git' | |
def install | |
(share/'zaw').install Dir['*'] | |
end |
#!/usr/bin/env ruby | |
require 'nokogiri' | |
require 'date' | |
require 'faraday' | |
html = Nokogiri::HTML(open("delicious.html")) | |
posts = [] | |
html.xpath("//dd | //dt").each do |element| |
require 'formula' | |
class ZshAutosuggestions < Formula | |
homepage 'https://github.com/tarruda/zsh-autosuggestions' | |
head 'https://github.com/tarruda/zsh-autosuggestions.git' | |
def install | |
(share/'zsh-autosuggestions').install Dir['*'] | |
end |
* Adding handle: conn: 0x7fdc20804000 | |
* Adding handle: send: 0 | |
* Adding handle: recv: 0 | |
* Curl_addHandleToPipeline: length: 1 | |
* - Conn 0 (0x7fdc20804000) send_pipe: 1, recv_pipe: 0 | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* About to connect() to pbs.twimg.com port 443 (#0) | |
* Trying 117.18.237.139... |
require 'redis' | |
require 'hiredis' | |
# usage: | |
# 端末(1) : 更新し続ける | |
# watch -n 0.1 "echo incr r | redis-cli" | |
# 端末(2) : watch しつつ更新する | |
# ruby redis_watch.rb 1000000 | |
r = Redis.new(driver: :hiredis, timeout: 60) # デフォルトだと、5秒でタイムアウト |
terraform.tfstate* |
I hereby claim:
To claim this, I am signing this object:
# | |
# This work is in the public domain. | |
# | |
if yes? "Do you use haml? [yes/no]" | |
gem 'haml-rails' | |
end | |
if yes? "Do you use compass? [yes/no]" | |
gem 'compass' |
#!/usr/bin/env ruby | |
#-*- coding: utf-8 -*- | |
# | |
# unify dupulicated gem files. | |
# | |
# This work is in the public domain. | |
# | |
require 'digest/md5' |