A set of principles to help keep large object-oriented codebases understandable, maintainable, extensible and testable. Created by Robert C Martin in 2000 paper Design Principles and Design Patterns. https://web.archive.org/web/20150906155800/http:/www.objectmentor.com/resources/articles/Principles_and_Patterns.pdf Single Responsibility Principle (SRP) A class should have one and only one responsibility. All its methods and data should support that responsibility. Makes classes more focused,… Continue reading SOLID Design Principles
Category: Uncategorized
Storing Git HTTPS Authentication Credentials Locally
Pretty simple but I always forget this: This will store your git password unencrypted on the hard drive. You will need to enter it once more for this to kick in. Alternatively you can store it in memory: By default this will timeout after 900 seconds but you can add the –timeout parameter to alter… Continue reading Storing Git HTTPS Authentication Credentials Locally
ping from a container without ping installed
Troubleshooting docker network issues can be a bit tricky, especially if your container is minimal (as it should be). If you don’t want to install ping then you can do the following: If you can’t connect with the hostname, remember to try with a FQDN or an IP to rule out DNS issues. Pretty fancy!
Graphics Drivers in Ubuntu 20.10
Ubuntu 20.10 has a nice new feature when it comes to managing graphics drivers. Use the following to see what drivers are available and which is recommended: Then if you are happy with the recommendation: It seems like a good idea to run this after every dist-upgrade.
Dynamic DNS with dnsexit.com
So I got this setup and added some CNAME dns entries pointing to my dnsexit supplied domain name. But I’m having issues setting up some code to update the DDNS entry. ez-ipupdate is a seemingly ancient piece of software that still compiles well but it only wants to use the IP found in ifconfig, and… Continue reading Dynamic DNS with dnsexit.com