Skip to content

Instantly share code, notes, and snippets.

View woowee's full-sized avatar

woowee woowee

  • tokyo
View GitHub Profile
@woowee
woowee / brew.sh
Last active August 29, 2015 14:00
#!/bin/bash -u
set -e
sudo -v
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
dir_current=$(dirname $0)
cd ${dir_current}
source ${dir_current}/functions.sh
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript">
$(function(){
$('.entry-content p a').not('[name^="f"]').attr({'target':'_blank'});
$('.entry-content blockquote .via a').attr({'target':'_blank'});
});
</script>
#!/bin/sh
set -e
currentdir=$(dirname $0)
cd ${currentdir}
source ./firstofall_functions.sh
## Dotfiles
@woowee
woowee / osx.sh
Created September 2, 2013 16:24
the source : mathiasbynens/dotfiles (https://github.com/mathiasbynens/dotfiles/blob/master/.osx)
#!/usr/bin/env bash
# ~/.osx — http://mths.be/osx
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
@woowee
woowee / mid3v2.py
Last active December 11, 2015 22:38
just idea/memo. no checking...
#!/usr/bin/env python
# Pretend to be /usr/bin/id3v2 from id3lib, sort of.
# Copyright 2005 Joe Wreschnig
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
import os
import sys
@woowee
woowee / AutoHotkey.ahk
Last active December 11, 2015 06:48
windows settings ; - ime の on/of は [無変換] + [space] に. - authotley を使用. - C:\Users\{YourAccount}\Documents に配置.
#z::Run www.autohotkey.com
; ------------------------------ ime on/of : [無変換] + [space]
vk1Dsc07B & Space::Send, {vkF3sc029}
; ⇒以下は,試行錯誤の結果,使わないことに.
; vk1Dsc07B & Space::Send, {vkF4sc029}
; !Space::Send, {vkF3sc029} ; alt + space
; !Space::Send, {vkF4sc029} ; alt + space
; #Space::Send, {vkF4sc029} ; windows key + space
@woowee
woowee / CapsLock2Ctrl.reg
Created January 18, 2013 01:05
windows settings ; - [ctrl] を [caps lock] に. - CapsLock2Ctrl.reg で保存し,ダブルクリック!
REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00
@woowee
woowee / example.radiko.tbs1.baka.plist
Last active December 10, 2015 23:58
recording of the radiko. an example of the xml format plist.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>koo.radiko.tbs1.baka</string>
<key>ProgramArguments</key>
<array>
<string>/Users/koo/radiko/radiko.sh</string>
<string>TBS</string>
@woowee
woowee / temp.plist
Created January 11, 2013 18:27
recording of the radiko. an example of the ascii format plist.
{
Label = example.radiko.tbs1.baka;
ProgramArguments = (
"/Users/example/radilko/radiko.sh",
"TBS",
120,
"-t",
"深夜の馬鹿力",
"-a",
"伊集院光",
@woowee
woowee / radiko.sh
Last active December 10, 2015 20:58
recording of the radiko.
#!/bin/bash
export LANG="ja_JP.UTF-8" LC_ALL="ja_JP.UTF-8"
datetime=`date '+%Y%m%d_%H%M'`
date=`date '+%Y年%m月%d日'`
year=`date '+%Y'`
radikodir=${HOME}/radiko/ # work ディレクトリ
cachedir=${radikodir}cache/ # アレがあれなトコ
mp3dir=${radikodir}_1recorded/ # レコーディングデータの出力場所