Posts

Auto Backup using Dropbox in Linux/Mac

…  all the folders which needs to be backed up from the text file “dropboxFolders.txt” and copy them to dropbox folder. The rest is done by …  <$foldersInfo [/shell] The file dropboxFolders.txt should be in the format :. Here is an example of the file: [shell] /home/<user>/WorkingCode:WorkingCode [/shell] And …

Cron a Django Program

…  of settings which we would use of the same. So here is a file which you could include for any file you would like to run as cron and this file would do the rest. [python] import os, sys, re top_level_rx = …

Service Engineer/System Administrator Interview Questions

…  upper and vice versa. tr “[a-z] [A-Z]” “[A-Z] [a-z]” < file print those lines with PRINT in it.On printing remove all small a. grep ‘PRINT’ < file | sed ‘s/a//g’ Print only those lines starting with a number and end …

Ontology Linked Data

…  the increasing need to be able to find and organize files and information. Projects such as Gopher, WAIS, and the FTP Archive list …

Important MySQL DBA Interview Questions

…  point at which ORACLE ends writing to one online redo log file and begins writing to another is called a log switch. What is On-line …  The On-line Redo Log is a set of tow or more on-line redo files that record all committed changes made to the database. Whenever a …

Installing Django on Dreamhost

…  so that you can use the bin folder and insert or edit any files needed. Installing Python: Download the latest release of Python and …  Next move to that sub domain or domain folder. Create a file dispatch.fcgi in the base folder of that sub domain and insert the …

Automatic Command Archive

…  500 commands. It stores the commands in home folder in the file “.bash_history” . The problem is 500 commands is too short of a …  the command size to a large value by changing the $HISTFILESIZE variable using the following command [bash]export HISTFILESIZE=1000[/bash] But this will last only till that terminal is …

How to Save file in vi not opened with sudo

…  has happened to me a lot of times that i edit a file in vi. I insert and edit a lot and finally when I try to save it I find …  mode in vi and that’s it and it will ask for reloading the file and then reload it and exit it using :q! because we have already …