Print ASCII Character Chart

just 4 fun with lovely bash ūüėČ

for i in {1..256};do p=‚ÄĚ ¬†$i‚ÄĚ;echo -e ‚Äú${p: -3} \$(($i/64*100+$i%64/8*10+$i%8))‚ÄĚ;done | cat -t | column -c120


linux-dash: Monitors ‚ÄúLinux Performance‚ÄĚ Remotely Using Web Browser

at First, go to demo¬†ūüėĬ†:¬†


  • A Linux server with Apache/Nginx installed.
  • A PHP and php-json extension installed.
  • A unzip utility installed on server.
  • Optionally, you need htpasswd installed, to password protect the statistics page on your server.

install packages:

# apt-get install apache2 apache2-utils

# apt-get install php5 curl php5-curl php5-json


# git clone 

finally : http://localhost/linux-dash


reference :

Setting Grub 2 Password

I don‚Äôt no why I can’t add it before‚Ķ ;because it’s so easy

  1. First of all, we must define user and password for it.
    • cp¬†/etc/grub.d{,.bac}
      cd /etc/grub.d
      vim 00_header

      cat << EOF


      password simon 123456

      password othuser 1234


      • add these lines to¬†end of file

  2. Protecting:
    1. All linux kernels (just linux):
      vim 10_linux

      find this:

      printf¬†“menuentry¬†‘${title}’ ‚Ķ.

      and change it to:

      printf¬†“menuentry¬†–users¬†simon¬†othuser¬†‘${title}’ ‚Ķ.

    2. All menu entries:

      sed¬†-i¬†-e ‘/^menuentry¬†/s/ {/¬†–users¬†simon¬†othuser¬†{/’ 10_linux 20_linux_xen 30_os-prober 40_custom 41_custom

  3. Finish by these commands:


    reboot # have fun ūüėČ