Sunday, July 16, 2017

How to use HISTTIMEFORMAT in Linux

Sunday, July 16, 2017 0 Comments
For my test I am using a CentOS VM

If you want a time-stamp to go along with your commands you will need to use the HISTTIMEFORMAT utility in user's bash_profile

For comparison purposes I have shown a HUGE difference it can make when you use a space and no space with HISTTIMEFORMAT

As usual, we make a backup copy of the user's bash_profile before we go clobbering it

Then, add the export HISTTIMEFORMAT="%F %T " line in the user's bash_profile

If you use export HISTTIMEFORMAT="%F %T" this is what you get

So, a teeny tiny space can make a huge difference in Linux!

How to use HISTIGNORE in Linux

Sunday, July 16, 2017 0 Comments
Generally, to ignore repetitive commands used by user, for example exit or ls we utilize the HISTIGNORE utility which is added into the user's bash_profile

Here is an example on how to remove the word exit from user's history logging

First we cd into user tim's home directory as root

Then we make a backup copy of his bash_profile

We add the to-ignore word, save and quit with vi editor

To test the success of the change, su into tim and run exit command. Login again as tim and run the history command

You will now see that exit command is no longer recorded into user's command history logging

I am using CentOS for this test

Wednesday, July 12, 2017

KL Review: Reka Playhouse @The Gateway Mall

Wednesday, July 12, 2017 0 Comments
The playhouse is new, because the mall itself is new. The Gateway Mall opened on May 15th. And because the playhouse is new, they are having promotion. For children between ages 2-12 the one-time entrance fee is RM 20

I had joined as a member where I get a rebate of RM 30 (in vouchers that I can use for 2 free entries-one during registration and the other RM 20 as a one-time entry, and the remaining RM 10 off for yet another day) They also give me a card with 10 rings, and all entries; free or not are stamped on this card and once you have 9 stamps the 10th entry is free and you get a new card. I have so far collected 4 stamps

The benefits of being a member is of course the reduced entrance fee, and also some discount for using their party room

On their premises, Reka has

  • a microwave to heat up food for your children
  • hot-water thermos to make milk, etc
  • cold drinks, sold
  • sausages, sold
  • lockers
  • shoe racks
  • toilet, but they don't allow you to take a dump in there
  • CCTV monitors all over the place
  • bean bags for tired parents to sit down
  • free balloons for kids
  • the place is for children from ages 2 till 12

You need to wear socks to go in the playhouse and they sell socks-but they're not cheap. Just walk to DIY at the other end and get a pair for under RM 2

I have been there many times and the place is usually deserted on weekdays and even on weekends there are only a handful of kids playing. They allow 2 adults per child but I have gone with 3 adults and they are fine (probably because I was the only one over there)

The place can get chilly because of their air conditioning so wear long sleeves clothing (that goes for your children too) and most important of all don't forget your socks!

This is not a paid review, just based on my personal experience

Food Review: Vegan and Dairy Free Tofu Tikka Masala

Wednesday, July 12, 2017 0 Comments
The most overrated recipe in the Indian culinary is the paneer tikka masala. There are so many takes, variations and "authentications" I just decided to pick one recipe off the net and tweak it to meet my needs

I don't care if it is authentic or not. It tasted good. I hate a long rant to go with recipes

Here are my unfiltered pictures

And here's the recipe, yup...that's how it's going to be from now on

Food Review: Blue Ice Cream

Wednesday, July 12, 2017 0 Comments
My mom had a lot of home made heavy cream sitting in the house fridge so I had my brother bring some over to make ice cream

I whisked the heavy cream with a bit of corn starch and food color until stiff peaks formed. Then I mixed in rainbow sprinkles and icing sugar and put it in the freezer. After 4 hours, you get this!