F.J Kong's Blog


How to add a screen session to rc.local

I use rtorrent as my PT client. so I want to run rtorrent when I startup os. cd /mnt/pt/down && /usr/bin/screen -s /bin/bash -dmS rtorrent ~/run.sh

How to fix GNOME Terminal cursor in awesome?

copy from http://unix.stackexchange.com/questions/63949/how-to-fix-gnome-terminal-cursor-in-awesome I’m using awesome 3.4.11 on Ubuntu 13.04, and my default terminal is GNOME Terminal 3.6.1. After starting several terminals, it seems the cursor behavior gets disconnected from window focus in some of them: Doesn’t blink when the window has focus Blinks even when the window doesn’t have focus   bug report at here […]

VIRTUALBOX HIGH CPU USAGE PROBLEM SOLVED [Copy from others] virtualbox 虚拟机 xp cpu 占用 100%

终于解决了。。。。。事实告诉我们学好英语很重要哦 http://tech.shantanugoel.com/2009/07/07/virtualbox-high-cpu-usage-problem-solved.html A few days ago, I had to install Windows XP as a guest OS on my Ubuntu Hardy machine as I needed to carry out some Visual Studio work. What I noticed was that my CPU usage went through the roof (constantly at 100%) even if the guest was completely idle. Result: My […]

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> […]

How to reset your wordpress password

After a long time, I found I totally forget password of my wordpress, then I resolved it with this: save it to your wordpress directory and open it  in browser. after reset your password REMEMBER to delete it. <?php //password resetter include(“wp-config.php”); include(“wp-blog-header.php”); if (empty($_POST[’emergency_pass’])) { ?> <form method=”post”> set admin password: <input name=”emergency_pass” type=”password” […]

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.

Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!

Next posts