-
Why you should not use kill -9
I recenty found this advice given by Randal Schwartz. I think most of programmers got some idea who he is. Anyway if you have not had to touch Perl here is the link to wiki page.
Here is the advice from Randal:
-
Temporary Disabling Bash History
How to do it ? It’s actually very simple. You can achieve this by
unset HISTFILE
. Of course in such case we only disable history for current session. What if we want to selectively do not put some commands into bash history ? -
Add timestamp to Bash history
Sometimes there is a need to add timestamp to bash history. At my work I found it quite useful especially when some other developers got access to the same box or when you simple want to have an idea when command from history was executed. This is how we can achieve this:
(or
.bash_profile
if you use RHEL based distro) and after that just re-login or reload your profile file. Time formatting is exactly the same like forstrftime
please checkman 3 strftime
.Hint: reloading profile can be done like this:
. .profile
orsource .profile
–
Cheers
Robert -
IPtables returns an error : security raw nat mangle filter FAILED
After set up of the “linode” on linode.com I stared configuring the firewall (iptables). After writing down all my rules and tried to restart iptables but output like this:
-
Hosting migration
I recently noticed I actually spend a lot of money to hosting and server resources Im not using at all. Such a waste. After a small research I decided to move all my Droplets from DigitalOcean.com to its competitor > linode.com . I also hosted 2 sites on a separate hosting - elastichost.com which is also rather expensive. So at the end I sit down and calculated how much resources do I need and for how many resources I actually pay. At the begining I tought that maybe the best solution would be to move everything to dedicated machine at OVH or maybe Hetzner but in both cases this is a cost ~50-70€ per month min. Quite much I think especially when my sites do not have significant traffic.