Related Posts
[GIT] How to replace the master branch with another branch.
TL;DR; git checkout master git reset –hard fixed-master-branch git push origin master -f Sometimes someone may pollute the ‘master’ branch and you may have noticed this only after you’ve fetched, rebased and pushed your commits. So your history may end up like this (I’ll use decimal numbers on the commit IDs for illustrative purposes only): […]
Compiling JSON-RPC for Jetty
The JSON-RPC ant build.xml file comes configured by default for Tomcat 5 or JBoss. But what about those of us who like JETTY? Don’t panic, here’s the solution, just add that section for jetty, and comment out the default section for tomcat. I used /home/angel/bin/jetty, cause that’s the path of my jetty install, replace that […]
How to build your Docker image using the same Dockerfile regardless of the host architecture
Problem If you are now using docker on a Mac M1 (arm64 platform), you don’t want to use amd64 as the architecture for your Linux Images. You could have 2 lines on your Dockerfile and comment each one depending on where you’re building the image Dockerfile # Building on Apple Silicon host FROM –platform=linux/arm64 ubuntu:20.04 […]