Skip to content

Instantly share code, notes, and snippets.

View sorah's full-sized avatar

Sorah Fukumori sorah

View GitHub Profile
@mattn
mattn / err.go
Last active August 29, 2015 13:59
package main
import (
"log"
"os"
"syscall"
)
func main() {
f, err := os.Open("not-found-file.txt")
@kanreisa
kanreisa / bda2mp4
Last active August 29, 2015 14:16
mp4 encode utils
#!/bin/bash
ATAG="fdkaac-he96ab"
# BDAV MPEG-2 TS something audio -> HE-AAC v1 audio in MPEG-4
avconv -y -i $1 \
-c:a libfdk_aac -profile:a aac_he -b:a 96k -afterburner 1 \
-f mp4 $1.$ATAG.mp4
###
# This is a demonstration of using SQLite3's Virtual File System API in Ruby.
#
# == Synopsis
#
# This program will store its SQLite database after the __END__ line.
#
# === In Detail
#
# SQLite3 uses the DATABase class as a proxy for our IO object. Upon
#!/usr/env ruby
# vim:fileencoding=utf-8
require "rubygems"
require "mechanize"
id = "example@example.com"
pwd = "password"
agent = Mechanize.new
SPモードメールプロトコル
------------------------
< サーバーのレスポンス
> クライアントのリクエスト
---
< 220 ESMTP Server Ready
> EHLO mail.spmode.ne.jp
@mame
mame / gist:2510170
Created April 27, 2012 15:29
A Ranking of the "Procrastinating" committers of Ruby (2012/04/27)
A Ranking of the "Procrastinating" committers of Ruby (2012/04/27)
(or, how many tickets does each committer have?)
1: matz (126 tickets)
2: nobu (62 tickets)
3: ko1 (53 tickets)
4: akr (29 tickets)
5: mrkn (25 tickets)
6: nahi (18 tickets)
7: MartinBosslet (16 tickets)
@qnighy
qnighy / webmanga.md
Created May 28, 2012 14:15
オススメWeb漫画 感想

オススメWeb漫画 感想

ニート様がみてる

http://www.geocities.jp/obokusama/

VIPPERがスレ立てて1000行ったので、約束通り女装して女子高に潜入

module Amida
class App
START_CHAR = 65
def header(column)
chars = (START_CHAR...(START_CHAR + column)).map(&:chr)
chars.join(' ') + "\n" +
bar_row_string(column)
end
@qnighy
qnighy / tg.md
Created September 14, 2012 14:19
@sorah
sorah / a.sh
Created October 17, 2012 11:49
#!/bin/bash
cat <<EOF
net-setup has been done?
"yes" to continue
EOF
read confirmation
[ "$confirmation" == "yes" ] || exit