Raspberry Pi automate certain tasks – script example
2014/03/10
Now, if you have followed these : fetchmail ssmtp Then you already have a working system for sending and receiving mail. Now, you can set the mda in the fetmailrc to a script which can do few things …
get the contents of whole site like some wiki or wikia
2014/02/24
For wikis and wikia, generally if you are trying to get some url mirror, then websucker.py is an excellent option. This script is in the python sources so, to get this tool, yumdownloader --source …
get all the urls in html file (local or on server).
2014/02/17
To use this, you will need the lynx tool, so install that first. sudo yum install lynx Now, to get list of all the URLs in local html file or some URL, just execute this: lynx -dump -listonly Related …
nautilis fork ( File manager ) with tree view in sidebar.
2014/02/09
Was searching for this for sometime now, finally found it. sudo yum install nemo sudo yum list nemo* First just install nemo. Configure nemo not to interfere with default desktop and also make it …
bash debug – log all executed commands
2014/02/03
Whenever I am writing a script in perl or bash, I always wish that there was some way to have all the commands logged or output to screen. I know there is “set -x” option to have debugging enabled, …
inotify -watch for file to change
2014/01/28
Here is a simple command for you. It uses inotify tools. So first you need to install : sudo yum install inotify-tools and then you can try something like this: while true; do inotifywait -r -e modify …
vim mappings – easy way to do things.
2014/01/22
You can use vim mappings to make some of your editor tasks very simple. Here I am giving you just a example, but you could always let your imagination run wild. :nmap ,b Oj0c$**hP And what do we do …
vim – yank/xopy in different register to paste
2014/01/16
Very quick update, to use registers, you can select and then yank in a register to paste using the same register. This could be a convinient way to copy multiple selections and then paste which ever …
mpd – change the music directory context for selinux.
2014/01/10
For running mpd with different use, you may find necessary to change the SELinux context of your music directory. For this, you would need to run the below command: chcon -R -t mpd_user_data_t Music/ …
cgroups – use to control your cpu and memory
2014/01/06
cgroups is a kernel feature and with userspace utilities, we can use the feature to control the cpu and memory for per process. So, lets first install the required tools. sudo yum install …
more clients for mpd.
2013/12/26
Here are some more clients that you can use with mpd. sudo yum install mpd mpc qmpdclient.x86_64 gmpc.x86_64 sonata.x86_64 mpd is :: […] Music Player Daemon (MPD) is a flexible, powerful, …
Fix typescript files generated with script command
2013/12/18
Generally quite a lot of us would have used the script command. This generates the logs for the session. But the problem with the logs is that it contains a lot of un-readable characters. These …