Skip to content

Instantly share code, notes, and snippets.

View chattama's full-sized avatar

chattama chattama

View GitHub Profile
@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
@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: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 / 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: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
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:3697029
Created September 11, 2012 08:56
archlinuxarm java install
yaourt -S extra/openjdk6
sudo ln -s /usr/lib/libffi.so.6.0.0 /usr/lib/libffi.so.5
@chattama
chattama / gist:3633126
Created September 5, 2012 08:13
u-boot
mkimage -A arm -C none -O linux -T kernel -d ../kernel/linux/arch/arm/boot/zImage -a 0x00010000 -e 0x00010000 zImage.uimg
mkimage -A arm -C none -O linux -T ramdisk -d initramfs.gz -a 0x00800000 -e 0x00800000 rootfs.uimg
dd if=/dev/zero of=flash.bin bs=1 count=6M
dd if=../boot/u-boot-2012.07/u-boot.bin of=flash.bin conv=notrunc bs=1
dd if=zImage.uimg of=flash.bin conv=notrunc bs=1 seek=2M
dd if=rootfs.uimg of=flash.bin conv=notrunc bs=1 seek=4M
@chattama
chattama / gist:3606942
Created September 3, 2012 05:27
WN-G150UMK(rtl8192cu)
ftp://WebUser:AxPL9s3k@95.130.192.218/cn/wlan/RTL819xC_USB_linux_v3.4.4_4749.20120806.zip
/etc/modprobe.d/8192cu.conf
options 8192cu rtw_power_mgnt=0 rtw_enusbss=0
@chattama
chattama / gist:3522806
Created August 30, 2012 05:31
archlinuxarm raspi-config
yaourt -S core/popt
yaourt -S extra/slang
yaourt -S extra/tcl
yaourt -S extra/python2
yaourt -S aur/newt
edit PKGBUILD
=============================================================================
# Maintainer: TDY <tdy@gmx.com>