F.J Kong's Blog

BRAVO HOTEL ONE SIERRA CHARLIE WHISKEY

linux

How to quickly post image to IRC

http://img.vim-cn.com/ elimage(1) ELIMAGE elimage(1) NAME Elimage: CLI Image Pastebin SYNOPSIS curl -F 'name=@/path/to/image' http://img.vim-cn.com/ or upload via your browser: DESCRIPTION Paste image files with command line. You can give <span style="text-decoration: underline;">-F</span> more times to paste more images. EXAMPLES $ curl -F 'name=@screenshot.png' http://img.vim-cn.com/ <a href="http://img.vim-cn.com/97/2d8490849c8fab885218b478cc715ab0f3f4a9">http://img.vim-cn.com/97/2d8490849c8fab885218b478cc715ab0f3f4a9</a> URLS <a href="http://p.vim-cn.com/">http://p.vim-cn.com/</a> A CLI code pastebin <a href="https://github.com/Vim-cn/elimage">https://github.com/Vim-cn/elimage</a> […]

Ubuntu 13.04 Btrfs FileSystem: error: sparse file not allowed

I installed ubuntu 13.04 with Btrfs filesystem support, and when start system I met this error I’m running a btrfs on / with (fake)raid1 and grub2, solved by removing line: if [ -n ${have_grubenv} ]; then save_env recordfail; fi from /etc/grub.d/00_header file, and then running update-grub. find from here http://mirkolofio.wordpress.com/2011/05/20/error-sparse-file-not-allowed/

How to set mysql password openSUSE

mysqladmin -u root -p password <new password here> mysqladmin will ask you for the root password. Leave the Enter password: empty If you haven’t changed root password before.