Month: June 2010

Mistakes A Noob Makes In Vim

From codeulate.com A noob uses the arrow keys. The First Commandment of vim is “Thou shalt not use the arrow keys, for they be too far from thy holy home row. Use instead the blessed h, j, k and l.” A noob does not know his motions. When a noob deletes a word, he holds…


Change username or UserID/uid on Linux

From linuxers.org Usermod is a useful command to manage user settings. It modifies the system account files to reflect the changes that are specified on the command line. It is capable of doing a lot of things, but here we will see how to change username and UserID or uid on Linux using usermod. Change…


New apache tomcat server 7.0

The Apache Software Foundation (ASF) has announced Version 7.0 release of Apache Tomcat, the popular open-source Java web server. Tomcat 7.0 is the first major release of the software since 2006. Apache Tomcat 7 is the project’s first major release since 2006, fully implementing the Java Servlet 3.0, JavaServer Pages (JSP) 2.2, and Expression Language…


How linux start up scripts work

From wiki.clug.org.za Introduction If you are coming from a Windows environment, the way that GNU/Linux starts up may seem very confusing. Just like Windows, Linux has several places where start-up scripts and actions can be stored. The methods used in Linux though, are more structured and organised, and once you get the hang of it,…


Getting the most from your bash history

From serverwatch.com Type history at the Bash command prompt, and you’ll get a list of your previous commands. You can navigate through these with the up and down arrows, but there are other ways of interacting with them that I’ve been investigating this week. One straightforward option is to use the number at the start…


Automatically recover Tomcat from crashes

From vineetmanohar.com Tomcat occasionally crashes if you do frequent hot-deploys or if you are running it on a machine with low memory. Every time tomcat crashes someone has to manually restart it, so I wrote a script which automatically detects that tomcat has crashed and restarts it. Here’s the pseudo logic: every few minutes {…


Boomerang

boomerang always comes back, except when it hits something. Boomerang This piece of javascript measures a whole bunch of performance characteristics of your user’s web browsing experience. All you have to do is stick it into the bottom of your web pages and call the init() method. We’ll make it more complicated later. Documentation is…


Removing ASSP X

If you want to uninstall ASSP X, run the following in order from the command line on the server: /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_asspx.cgi /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/asspxversion.txt /bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/asspx/ /bin/rm -fv /usr/local/cpanel/3rdparty/asspx /bin/rm -fv /etc/cron.d/assp /etc/init.d/crond reload /etc/init.d/assp stop /bin/rm -fv /etc/init.d/assp /bin/rm -Rfv /usr/local/assp /bin/rm -Rfv /usr/local/asspx /bin/rm -Rfv /etc/chkserv.d/assp* For cPanel 11 unregister ASSP…


Storm On Demand Declared Best Cloud Computing Service

Storm On Demand Declared Best Cloud Computing Service by Independent Analyst Storm On Demand more powerful and less expensive than Amazon EC2! LANSING, Mich., June 23, 2010 /PRNewswire via COMTEX/ — On Monday Cloud Computing analyst, www.CloudHarmony.com, completed their fourth round of benchmark testing of Cloud Computing platforms. This round of testing was focused on…


Force inactive user logout

From linuxers.org When you work on different servers from your system, the sessions are scattered over various terminals across different workspaces. Its a common mistake people usually make by leaving one or more of those server sessions open. Such sessions can lead to bad things if they get in hands of someone else. So, instead…