- Ascii table generator https://ozh.github.io/ascii-tables/
- Generate JWT Secret Keys for your applications https://jwtsecrets.com/
- Fider for voting feature https://fider.io/
- Go concurrency with visualisation https://www.concurrency.rocks/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ├── bin => Contains binary of your project | |
| ├── docs => Contains documentation and future aspects about your project | |
| │ └── ToDo => ToDo List of your project | |
| ├── etc => Add configuration files under this directory | |
| │ └── imdb-xplorer.cfg => Configuration file | |
| ├── LICENSE => Add license for your project | |
| ├── logs => This directory contains logs about behaviour of your script | |
| │ └── imdb-xplorer.log => log file | |
| ├── README.md => Contains how to install, and use your project | |
| ├── setup.sh => install the project on your machine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // For generating vault secret store path | |
| // It is a part of medium blog | |
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "regexp" | |
| "strings" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # ============================================================================== | |
| # Script Name: process_checker.sh | |
| # Description: Checks if a specific process is currently running. | |
| # This script uses 'pgrep' for a reliable check and returns a | |
| # clear exit code. | |
| # Usage: ./process_checker.sh <process_name> | |
| # | |
| # Exit Codes: |
A little copying is better than little dependency.
#SoftwareEngineering #BestPractices #programming #golang
Laws of Software Architecture:
- Everything in software architecture is a trade-off.
- Why is more important than how.
- How to map the git bash home folder in windows?
Open git bash and cd to root folder and type explorer . and it will open the folder in windows.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Check if jq is installed | |
| if ! command -v jq &> /dev/null; then | |
| echo "jq is required but it's not installed. Please install jq first." | |
| exit 1 | |
| fi | |
| # Check if curl is installed | |
| if ! command -v curl &> /dev/null; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Create a bin directory in your home directory, if not exists | |
| mkdir -p ~/bin | |
| ## find the url for latest version of the hadolint | |
| latest_hadolint=$(curl -sL https://api.github.com/repos/hadolint/hadolint/releases/latest | jq -r '.assets[].browser_download_url' | grep -i windows | grep -iv 256) | |
| ## Download the hadolint binary to the bin directory | |
| curl -sL $latest_hadolint -o ~/bin/hadolint.exe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GOCMD=go | |
| GOTEST=$(GOCMD) test | |
| GOVET=$(GOCMD) vet | |
| BINARY_NAME=example | |
| VERSION?=0.0.0 | |
| SERVICE_PORT?=3000 | |
| DOCKER_REGISTRY?= #if set it should finished by / | |
| EXPORT_RESULT?=false # for CI please set EXPORT_RESULT to true | |
| GREEN := $(shell tput -Txterm setaf 2) |
NewerOlder