Thursday, May 14, 2015

how to convert flv into mp4 with ffmpeg

ffmpeg -i filename.flv -c:v libx264 -crf 19 filename.mp4

Monday, May 4, 2015

The value 'stable' is invalid for APT::Default-Release as such a release is not available in the sources

When apt-get upgrade-ing and you get the below error message,

# apt-get upgrade
Reading package lists... Done
E: The value 'stable' is invalid for APT::Default-Release as such a
release is not available in the sources

Please try commenting the line below in /etc/apt/apt.conf.d/70debconf .

APT::Default-Release "stable";

Monday, March 30, 2015

how to generate ssl certificate request file

% openssl req -new -newkey rsa:2048 -nodes -keyout example.com.key -out
example.com.csr

Friday, January 23, 2015

Wednesday, January 21, 2015

How to swap ctrl and caps lock key in Windows

http://www.kodiva.com/post/swapping-caps-lock-and-control-keys

Monday, December 8, 2014

thunderbird (icedove on debian) and /tmp/ issue

Thunderbird has a flaw. When you open attachment directly from it, it
saves the file under /tmp/ with read permission to the world. Any other
users on the same machine can read it freely.

To fix this, you must set the tmp directory for thunderbird manually
like the line below.

$ TMP=~/tmp/.icedove icedove -P default -no-remote > /dev/null 1>&2 &

Sunday, December 7, 2014

Monday, November 24, 2014

How To Backup BootSector/MBR for Windows Boot

Backup the BootSector/MBR

Some guides show only taking the first 512 bytes (MBR), others show the
first 63 blocks (MBR + Bootloader).

# dd if=/dev/sda of=/mnt/storage/sda.mbr bs=512 count=1
# dd if=/dev/sda of=/mnt/storage/sda.vbr bs=512 count=63

Friday, November 21, 2014

how to delete samba session on windows

control keymgr.dll

พอลบ user แล้วก็ใช้คำสั่ง net use ดูว่าเราค้างอยู่ในแชร์ไหนของ samba ก็ delete ออก
อย่างเมื่องเช้าค้างอยู่ใน folder share ก็ใช้ net use \\samba\share /delete