Linux

Debugging segmentation fault

Show information that save kernel when application crashed http://www.slideshare.net/noobyahoo/introduction-to-segmentation-fault-handling-5563036 http://mytechrants.wordpress.com/2009/05/22/debugging-a-segmentation-fault-using-gdb/ https://wiki.archlinux.org/index.php/Step_By_Step_Debugging_Guide

Continue Reading
Linux Mac OS

Customize OSX terminal prompt

How to customize default terminal prompt which looks like this? simply define PS1 variable with required format. To display only full path, use following: \d – date \t – time \h – hostname \# – command number \u – username \W – current directory (e.g.: Desktop) \w – current directory path (e.g.: /Users/Admin/Desktop) External links: http://stackoverflow.com/questions/14416274/how-to-suppress-or-customize-mac-terminal-shell-prompt

Continue Reading
Linux Programming

Why I am not using phpMyAdmin on production servers

Even though I find phpMyAdmin and similar tools useful I don’t like them on production servers. When I spent a lot of my time protecting website against SQL injection I don’t want to leave opened doors to access the database through phpMyAdmin. Many phpMyAdmin installations are not protected with HTTPS and just one login on …

Continue Reading
Linux Programming

Secure SSH with RSA/DSA key

We are using SSH a lot to deploy our projects and to do common maintenance tasks. If you are accessing your server many times a day you might find frustrating typing the password all the time. You can use private key instead. Here are some detailed articles about adding RSA key and configuring SSH daemon. …

Continue Reading
Linux

How to add new drive to ubuntu

Step one: install drive It’s easy…. 😉 Step two, check if drive is connected Create partitions External ref: http://www.mikestechblog.com/joomla/operating-systems-section/operating-systems-ubuntu/53-add-a-second-hard-drive-in-ubuntu.html

Continue Reading
Linux Qt

Qt QtDBus compilation

To add DBUS to Qt compilation, add following switch If you get following error: It’s necessary to install libsbus: and also developer package: Now everything should work correctly.

Continue Reading
Linux

Equivalent of ProcessExplorer for Linux

http://htop.sourceforge.net/ http://www.student.nada.kth.se/~f91-men/qps/ http://sourceforge.net/projects/procexp/ Linux Tools lsof, pmap – Get all opened files by any process   Other info http://superuser.com/questions/285572/equivalent-to-sysinternals-process-explorer-on-linux

Continue Reading