history command with timestamp linux

I always find it easier when my history has a time stamp, you can coorolate a lot of things, like last, start/stops of services, who done it, etc. export HISTTIMEFORMAT=”%F %T ” This will work for the session, but if you want it saved for every log in add to respective bash_profile: ~/.bash_profile or /root/.bash_profile

Firewall Status: Enabled but Stopped in CSF with cPanel

I kept getting: Firewall Status: Enabled but Stopped in my CSF in cPanel. I am currently running WHM 11.40.1 (build 11) and csf v7.03. I tried just clicking start, no luck it would just flip back a few minutes later. So I ended up dropping to shell and running service csf stop iptables –flush service ...

error when copying or overwriting the same directory name linux

my directory structure in linux – centos: /home/html/prod/wordpress/update/ /home/html/prod/wordpress/ /wordpress/ is my wordpress install, and /update/ is my unziped download files and directories. The errors I kept getting when trying to move or copy the entire directory while sitting in /home/html/prod/wordpress/update/ was: mv: cannot move `wp-admin’ to a subdirectory of itself, `../wp-admin’ mv: cannot move ...

how to disable RHN in linux – red hat or centos

What I did to disable it was go to: /etc/sysconfig/rhn and delete all of the files in it. If you want to re-enabled it after, you can just copy the files back, so you may want to copy them to a location you want to keep them at.

How to get external ip via linux command line

wget -O – -q icanhazip.com you will get a very easy looking readout example: root@madhost419 [~]# wget -O – -q icanhazip.com 74.122.196.130 root@madhost419 [~]#

change CSGO crosshair to pink

PINK CROSS HAIR COMMANDS: cl_crosshaircolor 5 (This tells the game you want to create a custom colour using the RGB values) cl_crosshaircolor_r 255 cl_crosshaircolor_g 0 cl_crosshaircolor_b 255 cl_crosshairthickness 1 (This sets the thickness of the cross hair lines, default is 0.5) cl_crosshairgap 0 (This sets the distance of the gap between the cross hair, default ...

removing the limit of 100 rows in squirrel

Using the squirrel app: http://www.squirrelsql.org/ I had issues with only seeing 100 rows in a table. I fixed this by going to File -> New Sessions Properties -> Object Tree -> Contents -> limit rows. The default is 100, but you can uncheck it and you should be good. If not, you can also do ...

alt f4 on surface pro with type keyboard 2

I couldn’t get alt f4 working on any of my apps on my new microsoft surface pro with type keyboard 2. It ended up being that my function lock was set! I had to unlock that via: function + caps lock (Thanks rsutoratosu on Anandtech). And now ALT F4 works, time to go kill some ...

bitfeniex prodigy with 7 hard drives

I bought this bitfenix prodigy case for about $30 off craiglist, someone didn’t like that it was white, and for $30, couldn’t be beat for this case. As it was retailing for about $80 at newegg/microcenter. I was going to build my girlfriend a new PC and thought ITX was the way to go, after ...

Windows 7 – Windows cannot be installed to this disk

I was trying to install windows on my new ASRock H81M-ITX motherboard and for some reason loading windows 7 pro 64bit to my OCZ agility 2 I got this error message: Windows cannot be installed to this disk. This computer’s hardware may not support booting to this disk. Ensure that the disk’s controller is enabled ...