Skip to content

Instantly share code, notes, and snippets.

KenichiroMATOHARA matoken

Block or report user

Report or block matoken

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@matoken
matoken / 交通事故鑑定人_環倫一郎_一括ダウンロード.sh
Created Jan 25, 2011 — forked from ino46/ラブひな一括ダウンロード.sh
j-comi 交通事故鑑定人 環倫一郎 高画質版 一括ダウンロード
View 交通事故鑑定人_環倫一郎_一括ダウンロード.sh
#!bin/zsh
# http://www.j-comi.jp/book/comic/22
seq 201 218 | sed -re 's/^1//g' | xargs -i wget -w 5 -t 1 -c -nc -O 'LH{}_hq.pdf' 'http://dl.j-comi.jp/download/book/2{}/hq'
@matoken
matoken / ArchiveUploadHighLevel.java
Created Oct 12, 2012
Amazon Glacier Upload. 引数にUp先のendpoint, Vault とUp したいファイル名を指定する.ファイル名と,archiveID を返す.
View ArchiveUploadHighLevel.java
import java.io.File;
import java.io.IOException;
import java.util.Date;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.PropertiesCredentials;
import com.amazonaws.services.glacier.AmazonGlacierClient;
import com.amazonaws.services.glacier.transfer.ArchiveTransferManager;
import com.amazonaws.services.glacier.transfer.UploadResult;
View gsay
#!/bin/sh
TMP=/tmp/gsay.mp3
curl --silent --user-agent "Safari/1.0" "http://translate.google.com/translate_tts?q=$1&tl=ja" > $TMP && afplay $TMP && rm -f $TMP
@matoken
matoken / rc.lua
Created Dec 10, 2013
Kobo on Debian ( http://hpv.cc/~maty/pukiwiki1/index.php?kobo%2Fdebian ) でUSB Network を起動/終了するscript usbnet-start, usbnet-stop は~/scripts 以下に, rc.lua は~/.config/awesome/ 以下に置く. 詳細はこちらで http://hpv.cc/~maty/pukiwiki1/index.php?kobo%2Fdebian#kb3924ae
View rc.lua
-- Standard awesome library
require("awful")
require("awful.autofocus")
require("awful.rules")
-- Theme handling library
require("beautiful")
-- Notification library
require("naughty")
vicious = require("vicious")
@matoken
matoken / rcS
Last active Dec 30, 2015
Kobo on Debian でシャットダウン時の画面を表示した状態でシャットダウンする http://hpv.cc/~maty/pukiwiki1/index.php?kobo%2Fdebian#t5ea9d40
View rcS
#!/bin/sh
PRODUCT=`/bin/kobo_config.sh`;
[ $PRODUCT != trilogy ] && PREFIX=$PRODUCT-
mount -o remount,noatime,nodiratime /dev/mmcblk0p1 /
PLATFORM=freescale
if [ `dd if=/dev/mmcblk0 bs=512 skip=1024 count=1 | grep -c "HW CONFIG"` == 1 ]; then
PLATFORM=ntx508
View runp2vj.sh
#!/bin/sh
java -Xms64m -Xmx1024m -jar p2vj.jar
View gist:9626831
#!/bin/sh
sudo apt-get install g++ python libibus-1.0-dev libssl-dev libdbus-1-dev libglib2.0-dev subversion libqt4-dev libzinnia-dev tegaki-zinnia-japanese libgtk2.0-dev libxcb-xfixes0-dev ibus
mkdir -p ~/src
cd ~/src
svn co http://src.chromium.org/svn/trunk/tools/depot_tools
export PATH="$PATH":`pwd`/depot_tools
mkdir -p ~/src/mozc
View lshw
vaip-p
description: Notebook
product: VGN-P90NS (N/A)
vendor: Sony Corporation
version: J003MGJZ
serial: 28210351-1102399
width: 32 bits
capabilities: smbios-2.4 dmi-2.4
configuration: boot=normal chassis=notebook family=N/A sku=N/A uuid=723DFBA0-B840-11DC-8CDF-001DBABA252B
*-core
View lspci
00:00.0 Host bridge: Intel Corporation System Controller Hub (SCH Poulsbo) (rev 06)
00:02.0 VGA compatible controller: Intel Corporation System Controller Hub (SCH Poulsbo) Graphics Controller (rev 06)
00:1b.0 Audio device: Intel Corporation System Controller Hub (SCH Poulsbo) HD Audio Controller (rev 06)
00:1c.0 PCI bridge: Intel Corporation System Controller Hub (SCH Poulsbo) PCI Express Port 1 (rev 06)
00:1c.1 PCI bridge: Intel Corporation System Controller Hub (SCH Poulsbo) PCI Express Port 2 (rev 06)
00:1d.0 USB controller: Intel Corporation System Controller Hub (SCH Poulsbo) USB UHCI #1 (rev 06)
00:1d.1 USB controller: Intel Corporation System Controller Hub (SCH Poulsbo) USB UHCI #2 (rev 06)
00:1d.2 USB controller: Intel Corporation System Controller Hub (SCH Poulsbo) USB UHCI #3 (rev 06)
00:1d.7 USB controller: Intel Corporation System Controller Hub (SCH Poulsbo) USB EHCI #1 (rev 06)
00:1f.0 ISA bridge: Intel Corporation System Controller Hub (SCH Poulsbo) LPC Bridge (rev 06)
You can’t perform that action at this time.