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:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
class Parser | |
# python's config format: https://docs.python.org/2/library/configparser.html | |
def self.parse(contents) | |
sections = {} | |
contents.each_line do |line| | |
case line | |
when /\s*[#;]/, /^\s*$/ | |
# skip |
terraform.tfstate* |
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秒でタイムアウト |
#!/bin/sh | |
# | |
# nginx-openresty - this script starts and stops the nginx daemon | |
# | |
# chkconfig: - 85 15 | |
# description: Nginx is an HTTP(S) server, HTTP(S) reverse ¥ | |
# proxy and IMAP/POP3 proxy server | |
# processname: nginx | |
# config: /usr/local/openresty/nginx/conf/nginx.conf | |
# config: /etc/sysconfig/nginx |
* 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 '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 |
#!/usr/bin/env ruby | |
#-*- encoding: utf-8 -*- | |
# http://blog.evernote.com/tech/2013/08/08/evernote-export-format-enex/ | |
require 'nokogiri' | |
require 'date' | |
require 'ostruct' | |
class Note < OpenStruct; end |
# -*- sh -*- | |
# [Pass](http://www.zx2c4.com/projects/password-store/) | |
# the standard unix password manager | |
# [zaw](https://github.com/zsh-users/zaw) | |
# zsh anything.el-like widget | |
function zaw-src-pass() { | |
candidates=("${(ps:\n:)$(builtin cd ~/.password-store >/dev/null ; find . -type f ! -name .gpg-id | sed -e 's/\.\/\(.*\).gpg$/\1/')}") | |
actions=("zaw-callback-pass-append-to-buffer") |
#!/usr/bin/env ruby | |
require 'nokogiri' | |
require 'date' | |
require 'faraday' | |
html = Nokogiri::HTML(open("delicious.html")) | |
posts = [] | |
html.xpath("//dd | //dt").each do |element| |