Skip to content

Instantly share code, notes, and snippets.

View sankitch's full-sized avatar
🏠

Kiyoshi Sakata sankitch

🏠
  • Tokyo, Japan
  • 12:45 (UTC +09:00)
  • X @sankitch
View GitHub Profile
@sankitch
sankitch / select-w3m-bookmarks-percol
Created October 30, 2012 18:10
percolでw3mのbookmarkの絞り込み
#!/bin/sh
perl -nle'm|^<li><a href="([^"]+)">(.+)</a>| and print $2, ": ", $1' < ~/.w3m/bookmark.html |\
percol --match-method migemo |\
perl -nle 'm|https?://.+|g and print $&' |\
xargs w3m
#!/bin/sh
perl -nle'm|^<li><a href="([^"]+)">(.+)</a>| and print $2, ": ", $1' < ~/.w3m/bookmark.html |\
canything |\
perl -nle 'm|https?://.+|g and print $&' |\
xargs w3m
@sankitch
sankitch / canything-install-on-cygwin.diff
Created October 30, 2012 14:22
cygwinにcanythingインストールしようとしたらエラー
diff --git a/Makefile b/Makefile
index 11529b8..3a29118 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
canything: canything.c
- @gcc -Wall -O3 -o $@ $< -lncursesw && echo make canything
+ @gcc -Wall -O3 -o $@ $< -lncursesw -L/usr/include/ncursesw -I/usr/include/ncursesw && echo make canything
clean:
@rm -f canything && echo clean canything
@sankitch
sankitch / userChrome.css
Created October 30, 2012 12:05
Firefox userChrome.css
@charset "utf-8";
/*
* このファイルを編集して userChrome.css という名前で
* [プロファイルディレクトリ]/chrome/
* ディレクトリにコピーしてください。
*/
/*
* このファイルを使って Mozilla のユーザインターフェイスの見た目をカスタマイズ
* できます。デフォルト設定を上書きする場合は !important 宣言を使ってください。
@sankitch
sankitch / urlencode.sh
Created October 29, 2012 13:42
URLエンコード
#!/bin/sh
ruby -r cgi -e 'puts CGI.escape("'$1'")'
@sankitch
sankitch / sssh
Created October 29, 2012 05:49
sshのログインと同時にscreenを起動
#!/bin/sh
screen -t $1 ssh $1
@sankitch
sankitch / chkgip
Created October 29, 2012 05:48
グローバルIPを取得
#!/bin/sh
curl ipcheck.ieserver.net
@sankitch
sankitch / zsh-function-cd-source-dir.zsh
Created October 27, 2012 17:06
ソースをまとめてるディレクトリへ移動
function d {
cd ~/Develop/$1
}
function _d {
_files -W ~/Develop/ && return 0;
return 1;
}
compdef _d d
@sankitch
sankitch / shibuya-el-position-paper.md
Created August 18, 2012 15:40 — forked from ainame/shibuya-el-position-paper.md
shibuya.elのポジションペーパーです。githubアカウントをお持ちの方はforkしてお使いください。

Shibuya.el#1 ポジションペーパー

Personal

  • 名前(任意)
    • Kiyoshi SAKATA
  • Twitter or Facebookのアカウント or HN等
  • Facebook kiyoshi.sakata
@sankitch
sankitch / facebook_ogp.html
Created May 9, 2012 03:57
Octopress Facebook OGP
<meta property="og:title" content="{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}" />
<meta property="og:description" content="{{ description | strip_html | condense_spaces | truncate:150 }}" />
<meta property="og:url" content="{{ canonical }}" />
<meta property="og:image" content="{% if page.ogp_image %}{{ page.ogp_image }}{% else %}{{ site.default_ogp_image }}{% endif %}" />
<meta property="og:author" content="{{ site.author }}" />
<meta property="og:site_name" content="{{ site.title }}" />
<meta property="og:locale" content="{{ site.facebook_locale }}" />
<meta property="og:type" content="{% if page.index %}blog{% else %}article{% endif %}" />
<meta property="fb:app_id" content="{{ site.facebook_app_id }}" />