Skip to content

Instantly share code, notes, and snippets.

View furu's full-sized avatar

furu furu

View GitHub Profile
for window in `tmux list-windows -F '#I'`; do
tmux select-window -t $window
tmux send-keys "source ~/.zshrc" C-m
done
@furu
furu / star.rb
Created December 25, 2013 10:37
require 'octokit'
require 'pry'
require 'awesome_print'
Octokit.configure do |conf|
conf.login = ''
conf.password = ''
end
rate_limit = Octokit.client.rate_limit
furu@furu-no-MacBook-Air ~ $ find .gentoo_prefix/var/db/pkg/ -name CBUILD | xargs ls -ltr | sed -e 's,/\| , ,g' | cut -d' ' -f6,7,8,13,14 | column -t
1 19 03:39 app-crypt mhash-0.9.9.9-r1
1 19 03:47 dev-lang python-exec-2.0.1
1 19 03:47 dev-python python-mhash-1.4-r1
1 19 03:47 dev-lang python-exec-0.3.1
1 19 03:48 dev-python python-exec-10000.2
1 19 03:48 dev-python python-exec-10000.1
1 19 04:02 sys-libs ncurses-5.9-r02.1
1 19 04:02 app-arch bzip2-1.0.6-r3
1 19 04:02 sys-devel gnuconfig-20131128
Makefile:457: recipe for target 'libgpg-error.la' failed
make[3]: *** [libgpg-error.la] Illegal instruction: 4
make[3]: Leaving directory '/Users/furu/.gentoo_prefix/var/tmp/portage/dev-libs/libgpg-error-1.12/work/libgpg-error-1.12/src'
Makefile:386: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/Users/furu/.gentoo_prefix/var/tmp/portage/dev-libs/libgpg-error-1.12/work/libgpg-error-1.12/src'
Makefile:386: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/Users/furu/.gentoo_prefix/var/tmp/portage/dev-libs/libgpg-error-1.12/work/libgpg-error-1.12'
Makefile:317: recipe for target 'all' failed
@furu
furu / uhyo
Created January 28, 2014 03:39
? opam install --debug ocamltter
00:00.003 010346 10346 locking /home/furu/.opam/lock
00:00.006 010346 FILE(config) Read ~/.opam/config in 0.003s
00:00.007 010346 SYSTEM unlocking /home/furu/.opam/lock (10346)
00:00.008 010346 SYSTEM rm /home/furu/.opam/lock
00:00.010 010346 STATE LOAD-STATE(switch-lock)
00:00.011 010346 FILE(config) Read ~/.opam/config in 0.000s
00:00.037 010346 STATE Loaded /home/furu/.opam/state.cache in 0.023s
00:00.039 010346 FILE(aliases) Read ~/.opam/aliases in 0.000s
00:00.044 010346 FILE(repo-config) Read ~/.opam/repo/default/config in 0.003s
#!/Users/furu/Gentoo/bin/bash
# Copyright 2006-2014 Gentoo Foundation; Distributed under the GPL v2
# $Id: startprefix.in 61219 2012-09-04 19:05:55Z grobian $
# Fabian Groffen <[email protected]> -- 2007-03-10
# Enters the prefix environment by starting a login shell from the
# prefix. The SHELL environment variable is elevated in order to make
# applications that start login shells to work, such as `screen`.
# if you come from a substantially polluted environment (another
<?php
if (file_exists($_SERVER['DOCUMENT_ROOT'] . $_SERVER['REQUEST_URI'])) {
return false;
}
include $_SERVER['DOCUMENT_ROOT'] . '/index.php';
@furu
furu / ltdd-4-editorconfig.md
Created June 12, 2014 15:06
https://speakerdeck.com/pecosantoyobe/editorconfig-falseshao-jie-wosurudake ใ‚’ไฝœใ‚‹ๅ‰ใซๆ›ธใ„ใŸใƒกใƒข

EditorConfig ใฎ็ดนไป‹ใ‚’ใ™ใ‚‹ใ ใ‘ - LT้ง†ๅ‹•้–‹็™บ 04

EditorConfig

  • ใ‚ญใƒฃใƒฉใ‚ฏใ‚ฟใƒผใŒ็œผ้ก้ผ 
  • ็Ÿฅๆ€งใ‚’ๆ„Ÿใ˜ใ‚‹
  • ๅๅ‰ไฝ•ใชใ‚“ใ ใ‚ใ†
  • ็•ฐใชใ‚‹ใ‚จใƒ‡ใ‚ฃใ‚ฟใƒผใ‚„ IED ้–“ใงใฎไธ€่ฒซๆ€งใฎใ‚ใ‚‹ใ‚ณใƒผใƒ‡ใ‚ฃใƒณใ‚ฐใ‚นใ‚ฟใ‚คใƒซใ‚’ๅฎš็พฉใ—ใƒกใƒณใƒ†ใƒŠใƒณใ‚น
#!/bin/bash
# ๆ–‡ๅญ—ใ‚ณใƒผใƒ‰ใ‚’UTF-8๏ผŒๆ”น่กŒใ‚ณใƒผใƒ‰ใ‚’LFใซๅค‰ๆ›ใ™ใ‚‹
# nkfใ‚ณใƒžใƒณใƒ‰ใŒๅฟ…่ฆ
if [ $# = 0 ]; then
echo "usage: win2unix filename"
exit 1
fi
@furu
furu / Rakefile
Created July 23, 2014 17:32
apache_log_analysis ใ‚‰ใ—ใ„ใ€‚ไฝ•ใ‹ใ‚ใฃใŸใ€‚
# coding: utf-8
require './access_log'
entries = []
task :load do
logfile = ENV["LOGFILE"] || "access_log"
puts "loading #{logfile}."
File.open(logfile) do |log|
AccessLog.each_entry(log) do |entry|
entries << entry