How to do it? It’s actually very simple.
You can achieve this with unset HISTFILE. Of course, in that case we only disable history
for the current session.
What if we want to selectively keep some commands out of the bash history?
Sometimes there is a need to add a timestamp to bash history.
At my work I found it quite useful, especially when some other developers
have access to the same box or when you simply want to have an idea when a command from the history was executed.
This is how we can achieve this:
(or .bash_profile if you use a RHEL based distro) and after that just re-login or reload your profile file.
Time formatting is exactly the same as for strftime - please check man 3 strftime.
Hint: reloading the profile can be done like this:
. .profile or source .profile
After setting up my new “linode” on linode.com I started configuring the firewall (iptables).
After writing down all my rules I tried to restart iptables, but got output like this:
$ service iptables restart
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: security raw nat[FAILED]filter
iptables: Unloading modules: [ OK ]
iptables: Applying firewall rules: [ OK ]
I recently noticed I actually spend a lot of money on hosting and server resources I’m 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 in the end I sat down and calculated how many resources I need and how many resources I actually pay for.
At the beginning I thought that maybe the best solution would be to move everything to a dedicated machine at OVH or
maybe Hetzner, but in both cases the cost is ~50-70€ per month minimum. Quite a lot I think, especially when my
sites do not have significant traffic.
I recently found this blog entry on the internet. Let’s see how it will go :).
In general I think this is quite a good idea, mainly because you adapt to a “routine” of writing code (if you are not already addicted like me :D). This is definitely 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 contribute a little bit to the Jenkins CI project, but I would like to create something new.