-
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.
-
Goal for the next 2-3 months
My goal for the next 2 or 3 months:
I recently found this blog entry over the internet. Lets see how it will go :). In general I think this is quite good idea. Mainly because you adapt to a “routine” of writing a code (if you are not already addicted like mew :D). This is a definietely a good training for your brain. Here is a link to my GitHub profile: https://github.com/robertwe So first I need to find a project :). I already contribure a little bit at Jenkins CI project but I would like to create something new.
Have a great day.
– Regards, Robert
-
CentOS6 "host" and "dig" commands are missing
Recently I configured new machine with CentOS6.5 on the board and it looks like the $host command was missing. Here is a quick solution for that: