This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HandBrakeCLI \ | |
-i K_ON-1-01.mp4 -o K_ON-1-01_2.mp4 \ | |
-a 3 -E faac -B 128 -6 dpl2 -R Auto \ | |
-e x264 -r 24 -X 1280 --denoise="weak" -5 -O -m \ | |
-x level=30:cabac=0:ref=5:vbv-maxrate=1500:vbv-bufsize=2000:\ | |
analyse=all:me=umh:no-fast-pskip=1:mixed-refs=1:deblock=-2,-2:\ | |
no-dct-decimate=1:cqm=flat:aq-strength=0:psy-rd=0,0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ ! -e $HOME/.nvm ]; then | |
: | |
else | |
. ~/.nvm/nvm.sh | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# コマンドをevalしてクリップボードに送るだけ | |
# Ex.) clip cat ~/.ssh/id_rsa.pub | |
function clip() { | |
local str | |
if [ $# != 0 ]; then | |
for i in $*; do | |
str="$str $i" | |
done | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
preexec () { | |
if [ ${WINDOW} ]; then | |
echo -ne "\ek${1%% *}\e\\" | |
fi | |
} | |
if [ ! ${WINDOW} ]; then | |
cd $HOME/Library/Rcfiles/; git pull &; cd | |
case "${HOST}" in | |
GtxAir* ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Ex. tellme make install | |
# | |
function tellme() { | |
if [ `which growlnotify` ]; then | |
local str | |
if [ $# != 0 ]; then | |
for i in $*; do | |
str="$str $i" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd hoge | |
wget "http://mod-auth-token.googlecode.com/files/mod_auth_token-1.0.5.tar.gz" | |
tar zxvf mod_auth_token-1.0.5.tar.gz | |
cd mod_auth_token-1.0.5 | |
rm missing config.guess config.sub COPYING install-sh | |
ln -s /usr/share/automake-1.11/missing | |
ln -s /usr/share/automake-1.11/config.guess | |
ln -s /usr/share/automake-1.11/config.sub | |
ln -s /usr/share/automake-1.11/COPYING | |
ln -s /usr/share/automake-1.11/install-sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$key = 'token'; // Secret | |
$dirpath = '/token/'; //Prefix | |
$filepath = '/sample/file.mp3'; // relative path from ScriptAlias | |
$tokenize_url = auth_token($key, $dirpath, $filepath); | |
function auth_token($key,$dirpath,$filepath){ | |
$hex = dechex(time()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /usr/local/src | |
git clone https://github.com/albertz/shairport | |
cd shairport | |
export ARCHFLAGS="-arch x86_64" | |
brew install pkg-config libao | |
make | |
perl -MCPAN -e 'install Crypt::OpenSSL::RSA' | |
perl -MCPAN -e 'install IO::Socket::INET6' | |
vi shairport.pl | |
# 65 -- my $hairtunes_cli = $FindBin::Bin . '/hairtunes'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bulletPrefab : GameObject; | |
var initialVelocity : float; | |
function Update () { | |
if (Input.GetButton("Fire1")) { | |
var screenPoint = Input.mousePosition; | |
screenPoint.z = 10.0; | |
Instantiate(bulletPrefab, transform.position, transform.rotation).rigidbody.velocity | |
= ((camera.ScreenToWorldPoint(screenPoint)) - transform.position).normalized * initialVelocity; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var interval : float; | |
var redBoxPrefav : GameObject; | |
var blueBoxPrefav : GameObject; | |
private var isRed : boolean; | |
private var nextTime : float; | |
function Start () { | |
isRed = true; | |
nextTime = 0.0; |
OlderNewer