Category: General Development
Workaround for Homebrew: “terraform@0.12 has been disabled because it is not supported upstream!”
I needed to install an older version of Terraform on my work Mac, but got this error: Error: terraform@0.12 has been disabled because it is not supported upstream! I tried to edit terraform@0.12 and tried to install without success. This is what worked: HOMEBREW_NO_INSTALL_FROM_API=1 brew install terraform@0.12 ? Source brew install terraform@0.12 Error: terraform@0.12 has been…
Remote Development with Visual Studio Code
I recently came across Windows Subsystem for Linux, as I’ve been a Mac and JetBrains Rider user since 2012. I discovered the Remote development extensions for VS Code and discovered how much of a gem it is. Here are the pages I went over to learn more about it (note this is a work-in-progress): Using…
The Seven Wastes of Software Development
Based on Toyota’s lean manufacturing, the same concepts apply to agile software development. They are: Partially Done Work: Work in Progress, e.g. Code not checked in, code not tested, test cases not executed, requirements analyzed but not developed, etc. Extra Features: features fully developed, tested and delivered to the end user, but was never used Relearning: Spending effort in learning…
Git: Command to fix corrupted repository
I occasionally get fatal, such as: error: cannot lock ref 'refs/remotes/origin/AB-123': is at dffbe642f088781a5e485227927e141ddb73443a but expected e377921a6d00f4d4c0463774990e03343683177e Rebasing doesn’t work, but if you do the following it will resolve it: git gc –prune=now This guarantees to remove all git garbage. NOTE: Make sure all your code has been committed before doing this.
Git How-To: Squash commits in one line
Adding this here in case I need to refer to it in the future. git reset –soft HEAD~3 && git commit Where ~3 means squashing last 3 commits into one.
Clean Code Book Summary
This is a summary of Robert C. Martin’s Clean Code book. Once that contains a lot of gems that will make a coder efficient and with more sleep. Disclaimer: The below is not something I wrote; it was copied from here. I’m just adding it on my blog for personal reference. Thanks goes out to wojteklu…