enable bangla unijoy on Ubuntu

The process:

1. Open terminal _Ctrl+Alt+T_
2. Type and enter:
sudo apt-get install ibus-m17n m17n-db m17n-contrib ibus-gtk

It will install a couple of packages/softwares to write Bangla. If you haven’t run sudo apt-get update before, then //a/ go to dash //b/ type software and select “Software & updates”. //c// check all the checkboxes in the Download from option you may select Bangladesh — Dhakacom mirror… its fast!!. //d// click close. This will automatically update the software database. Now run the above command.

3. Now that you have installed unijoy, type and enter the following:
ibus-daemon -xdr
It’ll run the ibus daemon to allow the Unijoy layout to appear in Keyboard settings.

4. Now click the power/cog icon at the right top part of your screen then click System Settings. Now click Text Entry. Click the plus button, select Bengali (unijoy (m17n))

5. Now open writer or gedit or where you want to type Bangla. Press Super/Win key+space and write in Bangla. If you want to type in English again press the same keyboard shortcut again.

Enjoy!!!

gnome terminal rename

https://unix.stackexchange.com/questions/177572/how-to-rename-terminal-tab-title-in-gnome-terminal

 

Create a function in ~/.bashrc:

function set-title() {
  if [[ -z "$ORIG" ]]; then
    ORIG=$PS1
  fi
  TITLE="\[\e]2;$*\a\]"
  PS1=${ORIG}${TITLE}
}

Then use your new command to set the terminal title. It works with spaces in the name too

set-title my new tab title

It is possible to subsequently use set-title again (original PS1 is preserved as ORIG).

Show mysqldump progress using pv

mysqldump <parameters> | pv --progress --size 100m > dumpfile.sql

 

The console output will look like:

[===> ] 20%

Look at the man page man pv for more options. You can display the transfer rate, or how much time has elapsed, or how many bytes have transferred, and more.

If you do not know the size of your dump file, there is a way to obtain a size of the MySQL database from the table_schema – it will not be the size of your dump file, but it may be close enough for your needs:

SELECT table_schema AS "Database", ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS "Size (MB)" FROM information_schema.TABLES GROUP BY table_schema;

https://stackoverflow.com/questions/4852933/is-there-a-way-to-have-mysqldump-progress-bar-which-shows-the-users-the-status-o