Skip to content

Instantly share code, notes, and snippets.

View chattama's full-sized avatar

chattama chattama

View GitHub Profile
git checkout rpi-3.2.27
git pull upstream rpi-3.2.27
git checkout rpi-3.2.27-qemu
git rebase
@chattama
chattama / gist:3805050
Created September 29, 2012 19:59
systemd setup
cat /etc/vconsole.conf
----------------------------------------------------------------
KEYMAP=jp106
FONT=lat9w-16
FONT_MAP=8859-1_to_uni
----------------------------------------------------------------
pacman -S netcfg
pacman -S wireless_tools
@chattama
chattama / gist:3832267
Created October 4, 2012 08:33
systemd qemu memo
-M versatilepb -cpu arm1136-r2 -m 256 -localtime -k ja
root=/dev/sda2 console=ttyAMA0
mount -o rw,remount /dev/root
/etc/fstab
/dev/sda1 /boot vfat defaults 0 0
/dev/sda2 / ext4 defaults 0 0
@chattama
chattama / gist:3844323
Created October 6, 2012 07:28
libv4l2: error allocating conversion buffer
ffmpeg -debug 9 -f v4l2 -s 320x240 -pix_fmt yuyv422 -i /dev/video0 output.avi
@chattama
chattama / chrome-remote-desktop.service
Last active August 29, 2015 14:02
vps fedora20 chromium build
[Service]
ExecStart=/usr/bin/bash --login -c "/opt/google/chrome-remote-desktop/chrome-remote-desktop -f -s 1600x1200 --start"
Restart=always
WorkingDirectory=/home/chattama/
User=chattama
Group=chrome-remote-desktop
[Install]
WantedBy=multi-user.target
@chattama
chattama / gist:58c0d798369741fbea09
Created August 11, 2014 06:33
初期化位置でちょっとハマり
A = class
h1: {}
h2: null
constructor: ()-> @h2={}
a1 = new A()
a2 = new A()
console.log a1.h1 == a2.h1
console.log a1.h2 == a2.h2