July, 2012
Linux system monitoring
To install it: sudo apt-get install dstat Run dstat: dstat Run dstat and export results to CSV: dstat –output results.csv Output: usr sys idl wai hiq siq| read writ| recv send| in out | int csw 4 1 95 0 0 0| 0 0 |2553B 2185B| 0 0 |1472 2978 10 5 85 0 0 [...]
Monitor memory usage with vmstat
Use vmstat if you would like to get reports information about processes, memory, paging, block IO, traps and CPU activity on your system. Run it 10 times, every 2 seconds: vmstat 2 10 Output: procs ———–memory———- —swap– —–io—- -system– —-cpu—- r b swpd free buff cache si so bi bo in cs us sy id [...]
Monitor CPU and disk usage with iostat
If you would like to get reports statistics for CPU and I/O devices on your system then iostat can help you. To install it: sudo apt-get install sysstat Run it 5 times, every 5 seconds: iostat -x 5 5 Output: avg-cpu: %user %nice %system %iowait %steal %idle 1.30 0.00 0.70 0.40 0.00 97.60 Device: [...]
Examine linux login records
To examine login records for your linux host we are going to use dump-utmp tool. To install it: sudo apt-get install acct Save records into a file: dump-utmp /var/log/wtmp > utmp-dump-logs
WebSocket | client-server interaction protocol
WebSockets is a web technology, part of HTML-5 specification, that provides certain bi-directional (full-duplex) communication channels between a web-client and a web-server, using a single TCP connection. Lately the related WebSockets API is being standardized by W3C, while the WebSocket protocol has been standardized by the IETF on the RFC-6455. The actual new feature -considering user-experience- that [...]
How to find computer name using command prompt
Open your cmd and enter: hostname or tracert [ip_address] for ex. tracert 192.168.1.2
Fix problems with programs that can’t be installed or uninstalled
If you have any installation or uninstallation issues with programs in Windows, download Microsoft’s fixit tool to repair automatically! http://support.microsoft.com/mats/Program_Install_and_Uninstall/?ln=en-us What it fixes… Removes bad registry key on 64 bit operating systems. Windows registry keys that control the upgrade (patching) data that become corrupted. Resolves problems that prevent new programs from being installed. Resolves problems [...]
How to properly create a svn tag from trunk
Create svn tag from trunk svn + ssh svn copy svn+ssh://username@server.com/myproj/trunk \ svn+ssh://username@server.com/myproj/tags/1.0 -m "Release 1.0" svn + http svn copy http://svn.server.com/myproj/trunk \ http://svn.server.com/myproj/tags/1.0 -m "Release 1.0"
Turn on bash smart Completion
Edit file /etc/bash.bashrc sudo gedit /etc/bash.bashrc Uncomment the following lines, by removing the # in the beginning of the lines: #if [ -f /etc/bash_completion ]; then # . /etc/bash_completion #fi