Home

Awesome

Code & Config Templates

GitHub stars GitHub forks Lines of Code License My LinkedIn GitHub Last Commit

CI Builds Overview ShellCheck JSON YAML XML Validation Checkov Kics Grype Semgrep Semgrep Cloud Trivy Redhat Kickstart Debian Preseed Ubuntu AutoInstall Cloud-Init HashiCorp Packer

Repo on GitHub Repo on GitLab Repo on Azure DevOps Repo on BitBucket

git.io/code-templates

Code & DevOps Config templates for many popular programming languages and DevOps tools including:

Many more real world DevOps Tooling & CI/CD configs for all major CI/CD systems can be found in the DevOps Bash tools repo.

Forked from DevOps Perl tools, this is now a submodule of the following repos:

See also the HariSekhon/Template-Repo for quickly generating new GitHub repos containing all the basic CI/CD configurations, SonarCloud, README badges etc.

New

new.pl can instantiate these templates as new date-timestamped files, autopopulating the date, vim tags, GitHub URL and other headers and drops you in to your $EDITOR of choice (eg. vim or IntelliJ IDEA).

You can give an exact filename like Dockerfile, Makefile, Jenkinsfile, docker-compose.yml, pom.xml, build.gradle, or you can instantiate one of the templates based on their file extension (eg. py, sh) with any filename (eg. main.py, test.py, myapp.py).

Examples:

new Makefile
new Dockerfile
new Jenkinsfile
new docker-compose.yml
new myapp.py
new build.gradle
new .github/workflows/build.yaml

new.pl can be found in the DevOps Perl tools repo.

alias new=new.pl

(done automatically in the DevOps Bash tools repo .bash.d/)

Terraform

new terraform

Instantly creates and opens all standard files for a Terraform deployment in your $EDITOR of choice:

all heavily commented to get a new Terraform environment up and running quickly - with links to things like AWS / GCP regions, Terraform backend providers, state locking etc.

new terraform

or shorter

new tf

Packer

Creates portable Virtual Machines in OVA format using 100% automated installs of Ubuntu, Debian and RHEL/Fedora using their native installers:

See Packer-templates for more details and ready-to-run templates for each distro.

Stargazers over time

Stargazers over time

git.io/code-templates

More Core Repos

<!-- OTHER_REPOS_START -->

Knowledge

Readme Card Readme Card

<!-- Not support on GitHub Markdown: <iframe src="https://raw.githubusercontent.com/HariSekhon/HariSekhon/main/knowledge.md" width="100%" height="500px"></iframe> Does nothing: <embed src="https://raw.githubusercontent.com/HariSekhon/HariSekhon/main/knowledge.md" width="100%" height="500px" /> -->

DevOps Code

Readme Card Readme Card Readme Card Readme Card

<!-- [![Gist Card](https://github-readme-stats.vercel.app/api/gist?id=f8f551332440f1ca8897ff010e363e03)](https://gist.github.com/HariSekhon/f8f551332440f1ca8897ff010e363e03) -->

Containerization

Readme Card Readme Card

CI/CD

Readme Card Readme Card

DBA - SQL

Readme Card

DevOps Reloaded

Readme Card Readme Card Readme Card Readme Card Readme Card

Templates

Readme Card Readme Card

Misc

Readme Card Readme Card

The rest of my original source repos are here.

Pre-built Docker images are available on my DockerHub.

<!-- 1x1 pixel counter to record hits -->

<!-- OTHER_REPOS_END -->