Skip to content

Instantly share code, notes, and snippets.

View kanreisa's full-sized avatar
☑️
Busy

Yuki K. kanreisa

☑️
Busy
View GitHub Profile
@kanreisa
kanreisa / gist:4970160
Created February 17, 2013 04:31
WARNING: at /build/buildd-linux-2.6_2.6.32-45-amd64-FcX7RM/linux-2.6-2.6.32/debian/build/source_amd64_none/net/sched /sch_generic.c:261 dev_watchdog+0xe2/0x194()
Feb 17 10:36:01 yui kernel: [1275074.404755] ------------[ cut here ]------------
Feb 17 10:36:01 yui kernel: [1275074.404766] WARNING: at /build/buildd-linux-2.6_2.6.32-45-amd64-FcX7RM/linux-2.6-2.6.32/debian/build/source_amd64_none/net/sched
/sch_generic.c:261 dev_watchdog+0xe2/0x194()
Feb 17 10:36:01 yui kernel: [1275074.404770] Hardware name: System Product Name
Feb 17 10:36:01 yui kernel: [1275074.404772] NETDEV WATCHDOG: eth0 (r8169): transmit queue 0 timed out
Feb 17 10:36:01 yui kernel: [1275074.404774] Modules linked in: usbhid hid ip6table_filter ip6_tables ebtable_nat ebtables cpufreq_userspace cpufreq_conservative
cpufreq_stats cpufreq_powersave kvm_intel kvm fuse nfsd exportfs nfs lockd fscache nfs_acl auth_rpcgss sunrpc tun bridge stp ipt_MASQUERADE iptable_filter ext4
jbd2 crc16 acpi_cpufreq iptable_nat ip_tables nf_nat x_tables nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 ib_ipoib ib_cm ib_sa inet_lro ib_uverbs ib_umad loop
tbsfe ir_lirc_codec lirc_dev ir_mce_kbd_decoder rc_tbs_nec ir_sony_d
// 一番最初に実行する
window.sessionStorage.setItem('total', 0);
// ♪ここから
// load
var total = parseInt(window.sessionStorage.getItem('total'), 10);
// totaling
total += (function () {
#!/bin/bash
ENCODER="HandBrakeCLI"
EXT="mp4"
VERSION="r11f18"
OUTPUT="$1_$VERSION.$EXT"
OPTS='-t 1 -c 1 -f mp4 --denoise="2:1.5:3:2.25" \
-w 1280 -l 720 --crop 0:8:0:0 --modulus 2 -e x264 -q 18 \
var http = require("http");
var util = require("util");
var fs = require('fs');
var StreamChunker = require('streamchunker');
var server = http.createServer(function(req, res) {
var name = req.url.replace('/', 'recv.');
var file = fs.createWriteStream(name);
var streamChunker = new StreamChunker({
#!/bin/bash
EXT="gif"
PTAG="rgif"
ONAME=$1_$PTAG.$EXT
ffmpeg -i "$1" -an -r 15 -bt 1024k -f mpeg1video -vcodec pam -s 320x176 - | convert -delay 1x15 -loop 0 -limit memory 64 -limit map 128 mpg: - gif: "$ONAME"
#!/bin/bash
dir="/home/path"
fproc="dtvts_to_m4v"
fext="m2ts"
lext="ts"
eext="m4v"
# check process
proc=`ps cax | grep -c ${fproc}`
#!/bin/bash
ENCODER="HandBrakeCLI"
# version=6, f(-q)=18
OPTS='-t 1 -c 1 -f mp4 --denoise="weak" -w 1280 -l 720 --crop 0:0:0:0 --modulus 2 -e x264 -q 18 -a 1 -E faac -6 stereo -R Auto -B 128 -D 0 -x b-adapt=2:me=umh:merange=64:subq=10:trellis=2:ref=8:bframes=6 --verbose=1'
EXT="m4v"
$ENCODER $OPTS -i "$1" -o "$1.$EXT"
@kanreisa
kanreisa / dummy.js
Created June 15, 2011 08:38
"Arrow" Comment
// _|_
// \ /
// v
@kanreisa
kanreisa / dummy.pde
Created June 13, 2011 07:52
LCD example
#include <LiquidCrystal.h>
LiquidCrystal lcd(50, 49, 48, 43, 42, 41, 40);
void setup()
{
lcd.begin(16, 2);
lcd.print("Initializing...");
lcd.noAutoscroll();
/*
@kanreisa
kanreisa / dummy.js
Created June 13, 2011 02:27
Countdown - Call Function When Finished Countdown
/**
* Countdown - Call Function When Finished Countdown
**/
var Countdown = Class.create({
initialize: function(pInitialValue, pFunction){
this.i = pInitialValue;
this.f = pFunction;
},
turn: function(){
--this.i;