Author Archives: vik-y

Puppet profile for pihole

I use pihole extensively for blocking advertisements in my home network as well as on my servers. It’s a very easy to use tool which also gives you basic analytics. Pihole is no rocket science – it’s just a bunch of great utilities packaged together. A few weeks back I was lurking around trying to see if I can quickly deploy it on my servers using puppet instead of the manual way. Finally I found that there’s a docker image available for pihole and then I quickly wrote a puppet wrapper around it. Originally pi-hole was made for using raspberry pi as a DNS blocker but since then the project has moved ahead quite a lot. You can read up more about it here https://pi-hole.net/

Continue reading

Clutch then Brake or Brake then clutch?

Well, if you have been driving for long time then I am sure you must have heard about this question many times.

I have explored this a lot, tried both strategies in after all that all my conclusions are here:

  • Brake first always when you are driving on highway or at higher speeds (above 40-50 km/h) consistently
  • In city – mix between brake first and clutch first as per your comfort.  
  • Get your leg off clutch whenever possible – even when you are in city 
  • Always always brake first when driving downhill.

Continue reading

python SimpleHTTPServer alternative

If you use python then you might have used “python -m SimpleHTTPServer 8000” at some point in time to share files with your friends on LAN. Sometimes we want to share large files from one computer to another and we need it. Sometimes it also happens that you are taking a session and you need to share a large file with everyone else. SimpleHTTPServer of python is good but it’s single threaded. It can only handle one client at a time so if you want to share file with a large number of people on LAN it is a bad option. Also SimpleHTTPServer doesn’t work properly if you are sharing large files. Continue reading

Bashhub will change your life!

What if you are in a directory in your computer and you want to know all the commands you have typed in that directory? What if you wanted to access that long command which you typed on to your computer around 4 months ago which fixed your problems? What if you want to search the commands you typed in your home pc whlie you are working on your work laptop? Continue reading

Using fitbit on Oneplus 5T

I started using Fitbit Blaze in November 2017. The moment I got the new watch I realised that it the watch is not officially compatible with my Oneplus 5T. I didn’t know this before buying the watch. After struggling a lot for a few days and browsing through online forums for solutions I finally found one and it has been working really for more than 4 months for me now.

Continue reading