I hereby claim:
- I am ebisawa on github.
- I am ebisawa (https://keybase.io/ebisawa) on keybase.
- I have a public key whose fingerprint is 862C C05E 34F9 7507 F76C AC73 9281 8346 118A 8474
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| ;; php-mode | |
| ;(setq php-mode-force-pear t) | |
| (add-hook 'php-mode-hook | |
| '(lambda() | |
| (c-set-style "stroustrup") | |
| (setq tab-width 4) | |
| (setq c-basic-offset 4) | |
| (setq indent-tabs-mode nil) | |
| (defun ywb-php-lineup-arglist-intro (langelem) | |
| (save-excursion |
| #!/bin/bash | |
| modconf() { | |
| conf=$1; before=$2; after=$3 | |
| mode=`stat -c "%a" $conf` | |
| tmpfile=`mktemp /tmp/__modconf.XXXXXX` | |
| cat $conf | sudo sed -r "s/$before/$after/" >$tmpfile | |
| mv $tmpfile $conf | |
| chmod $mode $conf |
| #!/usr/bin/env ruby | |
| # -*- coding: utf-8 -*- | |
| require 'optparse' | |
| require 'pp' | |
| require 'yaml' | |
| $options = {} | |
| opt = OptionParser.new | |
| opt.on('--list-ssl-cert') {|v| $options[:list_ssl_cert] = v } |
| #!/usr/bin/env ruby | |
| require 'optparse' | |
| require 'pathname' | |
| require 'tmpdir' | |
| $options = {} | |
| opt = OptionParser.new | |
| opt.on('--iso ISOFILE', 'base iso image name') {|v| $options[:iso] = v } | |
| opt.on('--out OUTFILE', 'output file name') {|v| $options[:out] = v } |
| #!/usr/bin/env ruby | |
| require 'date' | |
| require 'time' | |
| LEASES = '/var/lib/dhcpd/dhcpd.leases' | |
| def parse_lease_state(lease_state, lines) | |
| state = {} | |
| while (l = lines.shift) != nil |
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'optparse' | |
| require 'ipaddr' | |
| require 'socket' | |
| require 'msgpack' | |
| require 'yaml' | |
| SA_ADDR = '224.0.0.123' | |
| SA_PORT = '12121' |
| class Locker | |
| def initialize(lockname) | |
| @lockname = lockname | |
| @lockpath = "/tmp/#{lockname}" | |
| @mylock = "#{@lockpath}.#{Process.pid}" | |
| @havelock = false | |
| end | |
| def lock | |
| do_lock |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <stdint.h> | |
| typedef struct { | |
| void *gcp_ptr; | |
| int gcp_mark; | |
| int gcp_size; | |
| int gcp_need_scan; |
| class PhpTokenizer | |
| attr_accessor :putline | |
| def initialize(io) | |
| @io = io | |
| reinit | |
| end | |
| def reinit | |
| @io.rewind |