Sunday, March 3, 2019

Reclaim space in gmail - delete archive'd messages


Running out of space in Gmail?

You could check the archived messages in Gmail and delete them to get some space back.


-

gmail is by default provided with 15GB storage space (which is shared with google drive and google photos as well).

-


I have written some Gmail filters to move not so important messages to archive. Even this archive is counted towards storage space. By means of freeing up the archive, we could reclaim space.


How to get archived messages?

Search in gmail with following:
has:nouserlabels -in:Sent -in:Chat -in:Draft -in:Inbox   

This will show all archived messages.


Now, you can add more filters and delete them something like
has:nouserlabels -in:Sent -in:Chat -in:Draft -in:Inbox    from:Amazon 



Select the messages (use select all option which pops up) delete them and delete the files from "Trash" as well.


has:nouserlabels -in:Sent -in:Chat -in:Draft -in:Inbox   -in:important 


Select the messages (use select all option which pops up) delete them and delete the files from "Trash" as well.


You should be able to see the reclaimed space :)

Tuesday, February 19, 2019

xargs command usage



Example on find all executables (ELF) and delete them in current directory:


find $PWD -type f | xargs file | grep "ELF.*executable" | awk -F: '{print $1}' | xargs  "rm"

Here, xargs is used which converts input into arguments to a command.

for example:

  • xargs file ->  file  <filename>
  • xargs rm ->  rm  <filename> 


--
find . -type f
- type f  ->  "find" only of file type.
--

Friday, February 8, 2019

Setting timer using google


Set timer using google:



So, you have a web meeting in 13 minutes and wants to get remainder about it.



Just google this:

"set timer for 13 minutes"





You can go and work on any window but gets an alarm post 13 minutes.

Tuesday, February 5, 2019

Ilayaraja song :)


Ilayaraja song :)



Composer: Ilaiyaraja Singers: SPB - S Janaki


ஆ: பூ பூ பூ பூ பூத்த சோலை
பூ பூ பூ பூ மாதுளை
பூ பூ பூ பூ பூத்த சோலை
பூ பூ பூ பூ மாதுளை

பெ: பூ பூ பூ புல்லாங்குழல்
பூ பூ பூ பூவின் மடல்

ஆ: பூ பூ பூ பூவை மனம்
பூ பூ பூ பூங்காவனம்

பெ: பூ பூ பூ பூஜை தினம்

ஆ: பூ பூ பூ புதிய சுகம் பொழிந்திடும்

பெ: பூ பூ பூ பூ பூத்த சோலை
பூ பூ பூ பூ மாதுளை
பூ பூ பூ பூ பூத்த சோலை
பூ பூ பூ பூ மாதுளை


[ இசை ]

பெ: காற்றினில் கான மழை
கலகலத்து வீசுது காதல் அலை..
பாட்டினில் பாச வலை
பலவிதத்தில் பாடுது பாவை நிலை...

ஆ: மூச்சினில் ஓடிய நாதமென
முழுவதும் கீதமென..

பெ: முடி முதல் அடி வரை மோகமென
தொடர்கிற தாகமென

ஆ: பார்த்தொரு பார்வையில் பாடல் எழ
பாவையின் மேனியில் கூடல் விழ

பெ: பாராத விழி ஏங்கிட ஏங்கிட
பாடலை பாடி வர பல சுகம் பெற
பூ பூ பூ பூ பூத்த சோலை
பூ பூ பூ பூ மாதுளை
பூ பூ பூ பூ பூத்த சோலை
பூ பூ பூ பூ மாதுளை

ஆ: பூ பூ பூ புல்லாங்குழல்
பூ பூ பூ பூவின் மடல்

பெ: பூ பூ பூ பூவை மனம்
பூ பூ பூ பூங்காவனம்

ஆ: பூ பூ பூ பூஜை தினம்

பெ: பூ பூ பூ புதிய சுகம் பொழிந்திடும்

ஆ: பூ பூ பூ பூ பூத்த சோலை
பூ பூ பூ பூ மாதுளை
பூ பூ பூ பூ பூத்த சோலை
பூ பூ பூ பூ மாதுளை

[ இசை ]


ஆ: நேற்றொரு கோலமடி
நேசமிது போட்டது பாலமடி
ஏத்துது பாரமடி
இரு விழிகள் எழுதிய கோலமடி

பெ: இரவுகள் முழுவதும் தலைவன் மடி
இனிமைகள் இணைந்தபடி

ஆ: உறவுகள் உணர்வுகள் உயர்ந்தபடி
உடலது நனைந்தபடி

பெ: வார்த்தையை கூடிய வாசனையே
வந்தணை உன் துணை எந்தனையே

ஆ: வாடாத ஒரு வாலிபம் வாலிபம்
வாசலில் வந்தபடி... வரம் கொடுத்தது...
பூ பூ பூ பூ பூத்த சோலை
பூ பூ பூ பூ மாதுளை
பூ பூ பூ பூ பூத்த சோலை
பூ பூ பூ பூ மாதுளை

பெ: பூ பூ பூ புல்லாங்குழல்
பூ பூ பூ பூவின் மடல்

ஆ: பூ பூ பூ பூவை மனம்
பூ பூ பூ பூங்காவனம்

பெ: பூ பூ பூ பூஜை தினம்

ஆ: பூ பூ பூ புதிய சுகம் பொழிந்திடும்

பெ: பூ பூ பூ பூ பூத்த சோலை
பூ பூ பூ பூ மாதுளை
பூ பூ பூ பூ பூத்த சோலை
பூ பூ பூ பூ மாதுளை

Sunday, February 3, 2019

3 levels of switching off systemd service


3 levels of switching off systemd service

1.
 only stop the service, on the next boot it *may* be autostarted
# systemctl stop <service>

2.
Disable autostart on next reboot

# systemctl disable <service>


3.
Disable on steroids :)
  - this is permanent change.
  - user won't be able to start the service either manually or even as a dependency of other units.
# systemdctl mask <service>


Ref:   http://0pointer.de/blog/projects/three-levels-of-off