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
First up, why do we even need a gem caching server? Once you install a gem it does get cached in your system by default. Method mentioned in this post can be useful if you are using vagrant or docker to do bundle installs a lot of times. For example in my case every time I tried to build my docker image the
bundle install command used to take a lot of time because in every build it used to download all the gems again. Continue reading
If you use docker and docker-compose then you might have come across cases where you want services running across different networks to interact. Typically this need arises when we use a single database container like postgres and we want other containers created using different docker-compose files to use the database container. It can become really confusing and difficult to setup. I got stuck recently with a similar issue and resolved it. Hope it might be useful for you as well. Continue reading
I use docker-compose quite a lot. It makes using docker much more simple. I made a cheat sheet of all the syntax that I use often and compiled it into a gist. Hope it might be useful for others as well. Continue reading
While there are many DNS level adblockers available out there, Pi-hole clearly stands out for multiple reasons:
- It gives you stats and graphs of all the DNS data which is amazing
- It gives you a web interface using which you can selectively black list or whitelist websites and that makes things really easy.