Skip to content

Instantly share code, notes, and snippets.

@novi
novi / gist:1631319
Created January 18, 2012 05:50
Arch LinuxをMacBook Air 3,2のSDカードにインストールメモ

Arch LinuxをMacBook Air 3,2のSDカードにインストールメモ

Bootcampの領域を壊さずに内蔵SDカードリーダーのSDメモリへインストールしてみた。

パーティション

  • /dev/disk0s1: EFIシステム
  • /dev/disk0s2: HFS+ OS X Lion (rEFItをインストール済)
  • /dev/disk0s3: Recovery (OS X Lion)
  • /dev/disk0s4: Windows 7
@moyashi
moyashi / gist:1397733
Created November 27, 2011 16:04
ebook_msc name PRS-T1 info
C:\minimal-root-jp>ebook_msc name PRS-T1 info
Sony Reader MSC utility 1.06 (c) 2009 Igor Skochinsky, Vladimir Boroda
avail: 0
openDrive [\\.\F:]: 1
usbInitCheck: 0
USB protocol versions:0 (?): 01000000
1 (Device): 01000010
2 (Updater):00000000
3 (?): 01000000
UsbGetDevProperty: 0
tracking_id = "hitoriblog0c-22";
pf = "http://www.amazon.co.jp/exec/obidos/ASIN/";
d = document;
u = d.location.href;
re = new RegExp("^http://www.amazon.co.jp/gp/aw/d/([0-9A-Z]{10})");
res = u.match(re);
if (res) {
asin = res[1];
afurl = pf + asin + "/" + tracking_id + "/ref=nosim/";
tmp = d.evaluate('//div[@class="dpProductTitle"]', d, null, 7, null).snapshotItem(0);
@sgk
sgk / trac2down.py
Created October 14, 2011 09:35
Trac Wiki to Markdown converter
#!/usr/bin/python
# vim:set fileencoding=utf-8 sw=2 ai:
import sqlite3
import datetime
import re
SQL = '''
select
name, version, time, author, text
@Arthraim
Arthraim / bottle_example.py
Created May 27, 2011 04:27
a python web framework bottle's example
#coding: utf-8
from bottle import route, error, post, get, run, static_file, abort, redirect, response, request, template
@route('/')
@route('/index.html')
def index():
return '<a href="/hello">Go to Hello World page</a>'
@route('/hello')
def hello():