I wanted to see in real time when files are created and deleted in a directory under linux shell.

This is the easiest way:

inotifywait /path/to/directory --recursive --monitor --event CREATE --event DELETE


sudo apt-get install inotify-tools


Sorry that this post is not in English but this problem is related only to polish mobile network.

Po kilku godzinach walki, aby zadziałało w końcu LTE w plusie na moim Xiaomi Mi 5 znalazłem działające rozwiązanie.

Ustawienia sieci plus

Najpierw sprawdzamy czy mamy włączone LTE w Plusie kodem: *101#
Jeśli mamy wyłączone LTE aktywujemy je kodem: *101*11*24#

Ustawienia telefonu:

Wchodzimy w Ustawienia -> Karty Sim i sieci komórkowe -> SIM X (tam gdzie mamy kartę plusa) -> Punkty dostępu -> Plus internet

APN z „internet” na „plus
Typ APN z „default,supl” na „default, supl” !!! bardzo ważna spacja po przecinku !!!
Protokół APN z „IPv4/IPv6” na „IPv4

Wchodzimy w Ustawienia -> Karty Sim i sieci komórkowe -> SIM X (tam gdzie mamy kartę plusa) -> Preferowany tryb sieci
i wybieramy „Preferowane sieci LTE

Uruchamiamy ponownie telefon, bez tego nie wskoczymy do sieci 4G.

Źródło: https://miuipolska.pl/forum/topic/12913-mi5-nie-dzia%C5%82a-tryb-lte/

Przetestowane na MIUI 8

Each time there is time change between summer and winter I always have to look for a manual to kitchen timer Auriol IAN94702.
Now it is in this place so I don’t have to look for it.

Auriol IAN94702 kitchen timer manual PDF

Quick manual for Setting the time:

  1. In Clock mode, press and hold down the CLOCK (TIMER) key 5 for 3 seconds. The top field of the display 1 flashes.
  2. Press the SEC key 4 , the MIN key 3 or the HR key 2 to change the displayed values for seconds (SEC), minutes
    (MIN) or hours (HR) in steps. TIP: Press and hold the key to make the numbers change
    more quickly.
  3. Press the CLOCK (TIMER) key briefly, in order to confirm the set time. The time does not flash.

When I use git a diff function is really useful but by default it displays VT100 commands instead text coloring. This is solution how to enable colors in git diff.


add this line to your ~/.cshrc.user

setenv LESS -R

and source that file:

source ~/.cshrc.user

I recently I ran into a problem in Erlang project and I had to find a way to Remove multiple spaces in string and leave only one one space.

Some string with     extra        spaces.


Here is solution how to remove it with simple re:replace

re:replace("Some string with     extra        spaces.", "(\\s+\\s+)", " ", [global,{return,list}]).

and the returned output is:

Some string with extra spaces.

Useful links:


Sed is a really powerful and useful linux program when you want to replace certain string in a file.
But it gets harder when you wan replase srting in all available files in directory .
Here is the solution with sed in-place command:

find /home/user/mydir -type f -exec sed -i 's/oldstring/newstring/g' {} \;

Useful links: