Skip to content

Instantly share code, notes, and snippets.

View rhiguchi's full-sized avatar
🏠
Working from home

HIGUCHI Ryusuke rhiguchi

🏠
Working from home
  • Yokohama, Japan
View GitHub Profile
@rhiguchi
rhiguchi / gist:2228130
Created March 28, 2012 16:49
vlc streaming
-I rc mms://a33.l12993146032.c129931.g.lm.akamaistream.net/D/33/129931/v0001/reflector:46032 :sout='#transcode{acodec=mp4a}:std{access=file,mux=mp4,dst=test.mp4}
@rhiguchi
rhiguchi / file1.txt
Created April 1, 2012 08:27
NHKネットラジオをVLCで録音するスクリプト ref: http://qiita.com/items/549b42c8b361807d96a2
recording.sh 10
@rhiguchi
rhiguchi / build.xml
Created June 24, 2012 04:59
Ant で Ivy の jar をダウンロードさせて、その jar からタスクを定義する ref: http://qiita.com/items/21e5370ffa178bb19bc9
<project xmlns:ivy="antlib:org.apache.ivy.ant">
<condition property="ivy.home" value="${env.IVY_HOME}">
<isset property="env.IVY_HOME" />
</condition>
<property name="ivy.home" value="${user.home}/.ivy2" />
<property name="ivy.install.dir" value="${ivy.home}/lib" />
<property name="ivy.install.dest" value="${ivy.install.dir}/ivy.jar" />
<target name="-check-ivy-user-installed" description="check ivy jar file existence on user's ivy home">
<available file="${ivy.install.dest}" property="ivy.install.dest.exisits" />
@rhiguchi
rhiguchi / AdminAction.scala
Created July 23, 2013 04:06
Play Framework で Basic 認証を行うアクションのミックスイン ref: http://qiita.com/flo_jack/items/257fe8b0cf93151f8a3d
package controllers
import play.api._
import play.api.mvc._
/**
* 管理者のアカウントを取り扱うモジュール
*/
trait AdminSecure {
import play.api.mvc.Results._