Skip to content

Instantly share code, notes, and snippets.

@ebith
ebith / friedchicken.md
Created May 29, 2012 01:01
フライドチキンのレシピ

フライドチキン

材料

  • 鶏もも肉
  • 調味液
    • 牛乳 100ml
    • 塩 7g
    • ニンニク
    • ショウガ
  • オールスパイス
@ebith
ebith / direct_bookmark.js.diff
Created August 10, 2012 14:07
Twitterにポストするかどうか選べるようにするパッチ(はてなブックマーク拡張も必要)
diff --git a/direct_bookmark.js b/direct_bookmark.js
index 46d5a79..13768c6 100644
--- a/direct_bookmark.js
+++ b/direct_bookmark.js
@@ -337,26 +337,21 @@ for Migemo search: require XUL/Migemo Extension
account:['https://www.hatena.ne.jp', 'https://www.hatena.ne.jp', null],
loginPrompt:{ user:'', password:'', description:'Enter username and password.' },
entryPage:'http://b.hatena.ne.jp/entry/%URL::HATENA%',
- poster:function(user,password,url,title,comment,tags){
+ poster:function(user,password,url,title,comment,tags,postTwitter){
@ebith
ebith / oauth.rb
Created September 6, 2012 16:07
Gyazoのアップロード先をTumblrにするやつAPI v2版
#!/usr/bin/env ruby
require 'oauth'
consumer = OAuth::Consumer.new(
'consumer_key',
'consumer_secret',
{
site: 'http://api.tumblr.com',
request_token_url: "http://www.tumblr.com/oauth/request_token",
authorize_url: "http://www.tumblr.com/oauth/authorize",
@ebith
ebith / Muesli-Cookies.md
Created September 12, 2012 11:37
ミューズリーのクッキー

ミューズリーのクッキー

材料

  • A
    • ミューズリー 140g
    • 薄力粉 60g
    • きび砂糖 20g
  • B
    • メープルシロップ 大さじ2
  • サラダ油 大さじ4
@ebith
ebith / backup.sh
Created September 17, 2012 01:49
tarで固めてlzoで圧縮してDropboxに送るバックアップスクリプト
#!/bin/bash
# バックアップ対象ディレクトリ
target="/etc /home/ebith"
# 除外パターン
exclude=(sites/www/rep2 .cpanm .rbenv)
# 一時ファイル
tempfile="/tmp/backup.tar.lzo"
@ebith
ebith / #7z.b2e
Created September 17, 2012 14:29
7zG.exe用B2Eスクリプト
load:
(name 7zG.exe)
(type 7z LZMA *LZMA2)
encode:
(if (method 1) (cmd a -t7z -m0=LZMA (arc.7z) (list\*)))
(if (method 2) (cmd a -t7z -m0=LZMA2 (arc.7z) (list\*)))
@ebith
ebith / keepass.pl
Last active October 10, 2015 23:28
KeePass2のデータベースをターミナルから検索してクリップボードにコピーする
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use File::KeePass;
use IO::Prompter;
use Encode;
my $file = shift @ARGV;
include "104.nodoka"
keymap Global
# for HHK Pro 2 HHK mode
def key RightDiamond = 0x79
def key LeftDiamond = 0x7b
# モディファイヤキーの押しっぱなし検出
def option CheckModifier = enable 5
@ebith
ebith / .vimperatorrc
Created December 12, 2012 01:19
vimperatorrcのtwittperator部分
let g:twittperator_use_ssl_connection_for_api_ep = 1
let g:twittperator_use_chirp = 1
let g:twittperator_all_replies = 1
let g:twittperator_screen_name = "ebith"
let g:twittperator_history_limit = 5000
let g:twittperator_lang = "ja"
let g:twittperator_count = 50
let g:twittperator_track_words = "vimp,vimperator,gNTPdate,Twittperator,ついっぺ,ツイッペ,twsidebar"
let g:twittperator_plugin_pong = 1
@ebith
ebith / hubot-irc-notice.patch
Created January 10, 2013 20:39
hubot-ircでmsg.noticeが使えるように戻すパッチ。v0.1.4用
diff --git a/src/irc.coffee b/src/irc.coffee
index 1cd6be3..dbfb495 100644
--- a/src/irc.coffee
+++ b/src/irc.coffee
@@ -5,6 +5,12 @@
Irc = require 'irc'
class IrcBot extends Adapter
+ constructor: (@robot) ->
+ super @robot