Skip to content

Instantly share code, notes, and snippets.

@matchy256
matchy256 / rec_radiko.sh
Last active January 11, 2025 15:23 — forked from saiten/rec_radiko.sh
簡易Radiko録音スクリプト
#!/bin/bash
LANG=ja_JP.utf8
pid=$$
date=`date '+%Y-%m-%d-%H_%M'`
outdir="."
if [ $# -le 1 ]; then
@hayajo
hayajo / changelog_en.md
Last active April 1, 2025 14:37
ChangeLog を支える英語

ChangeLog を支える英語

ChangeLog を書く際によく使われる英語をまとめました。

ほとんど引用です。

基本形

@theconektd
theconektd / github.css
Created April 30, 2012 02:11
Github Markdown CSS - for Markdown Editor Preview
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
@oroce
oroce / simple-with-close-event.js
Created November 23, 2011 14:55
open jQuery Mobile Dialog from javascript with close event
//unfortunately the jQuery mobile team removed option, to attaching custom event handler,
//so i'm just overriding close event, and using jQuery Widget Library _trigger method
$.mobile.dialog.prototype._close = $.mobile.dialog.prototype.close;
$.mobile.dialog.prototype.close = function(){
var args = Array.prototype.slice.call( arguments, 0 );
this._trigger( "close" );
this._close.apply( this, args );
};
@mxcl
mxcl / uninstall_homebrew.sh
Created August 26, 2011 11:25
Uninstall Homebrew
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e
@ches
ches / install-pygtk.sh
Created July 20, 2011 11:34
Install PyGTK via Homebrew and virtualenv
# This LOOKS pretty straightforward, but it took awhile to sort out issues with
# py2cairo and pygobject, so I hope I've saved you some time :-)
#
# This assumes you already subscribe to a nice clean virtualenvwrapper workflow
# -- see https://gist.github.com/771394 if you need advice on getting there.
# There are some optional dependencies omitted, so if you're going to be doing
# heavy development with these libs, you may want to look into them.
#
# We go to some configure option pains to avoid polluting the system-level
# Python, and `brew link`ing Cairo which is keg-only by default.
@demonbane
demonbane / makeapp.sh
Created July 5, 2011 20:05
Create a Fluid-style app launcher for single-window Chrome instances on OSX
#!/bin/sh
echo "What should the Application be called (no spaces allowed e.g. GCal)?"
read inputline
name="$inputline"
echo "What is the url (e.g. https://www.google.com/calendar/render)?"
read inputline
url="$inputline"
@akihiro4chawon
akihiro4chawon / example_windows.txt
Created March 26, 2011 01:32
オライリー祭りで買い込んだ pdf ファイルのファイル名を書名に変更する
# 使用例
> genbat.pl > rename_pdf.bat
> type rename_pdf.bat
ren "oreilly-4873113075.pdf" "エンジニアのための時間管理術.pdf"
ren "oreilly-9784873113630.pdf" "ビューティフルコード.pdf"
ren "oreilly-9784873114132.pdf" "詳解 OpenCV.pdf"
ren "oreilly-9784873114194.pdf" "Silverlightで開発するデータ駆動アプリケーション.pdf"
ren "oreilly-9784873114200.pdf" "Head First Statistics.pdf"
ren "oreilly-9784873114286.pdf" "アルゴリズムクイックリファレンス.pdf"
@saiten
saiten / rec_radiko.sh
Last active December 2, 2021 05:57
簡易radiko録音ツール。要swftools
#!/bin/sh
playerurl=http://radiko.jp/apps/js/flash/myplayer-release.swf
cookiefile=./cookie.txt
playerfile=./player.swf
keyfile=./authkey.png
if [ $# -eq 1 ]; then
channel=$1
output=./$1.flv