Creating a patch file in Git

I don’t usually use patch files for their intended purpose (patching). I just don’t have the need for them in my development process. But, I do think the files themselves have another valuable purpose. They make a great way to do a quick code review of changes that were made. So, whether you are actually Read More…

Open in terminal menu for Ubuntu

Back when I used Windows, on e of my first modification would be to install Windows power toys and get the “Open command prompt here” right click menu working. Occasionally, I find this could be useful in Ubuntu when using Nautilus (the default file manager). By default, a right click option for this does not Read More…

Toggling table rows with JQuery

Sometimes webpages and forms grow too large to be viewed comfortably. This can confuse the user. It is kind of like a kid dumping out his toy boxes on the floor all over the house. Now he can’t find anything and the landscape becomes daunting to navigate. A quick solution in the web world is Read More…

Dealing with config files in Git

So while developing for my job, I’ve come across an interesting challenge. How does one automatically change config file values based on the branch they are currently using in Git? Background So for one of my projects, we have a website that is used on several domains. Due to certain constraints and history of our Read More…

Reverse SSH to access Linux computer behind firewall.

Ever find yourself needed to access a computer that is behind a NAT firewall, but cannot without a bunch of goofy port forwarding rules at your router? I know, it is annoying. Here is how to SSH into your computer without adding port forwarding rules to your router’s firewall. For ease of explaining, I will Read More…

Outside world access for Linux Containers

If you have ever used a virtual machine, you know how useful they can be. Linux has a special lightweight virtual machine-like interface that reuses the kernel, but installs the remaining portion of the operating system in a separate container. It uses less memory and integrates nicely with an existing system. There are many advantages Read More…

Making Wine the default handler for EXE in Ubuntu

Did you know you can run many Windows programs right through Ubuntu Linux. Use a program called “Wine”. To install Wine: Go to the Ubuntu Sofware Center and find “Wine”. Install Wine – Wine is now installed. Getting Wine to open exe files by default Tip/Warning: If you do not do the second section of Read More…

Getting rid of Windows end of line characters in Linux

Ever run into the error: “bad interpreter: No such file or directory”? The problem is you have CRLF end of line characters… The solution, run this command on the file in Linux… sed -i ‘s/r//’ filename