Skip to content

Instantly share code, notes, and snippets.

View Harkirat9711's full-sized avatar

HARKIRAT SINGH Harkirat9711

  • San Fransisco Bay Area
View GitHub Profile
@Harkirat9711
Harkirat9711 / git_submodules.md
Created December 4, 2018 16:46 — forked from gitaarik/git_submodules.md
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:

  • You can separate the code into different repositories.
@Harkirat9711
Harkirat9711 / README.md
Created November 2, 2018 02:27 — forked from dnozay/_Jenkins+Script+Console.md
jenkins groovy scripts collection.
import hudson.matrix.MatrixProject
import hudson.model.FreeStyleProject
import hudson.model.Job
import jenkins.model.Jenkins
jobs = Jenkins.instance.getAllItems()
count=0
jobs.each { j ->
if (j instanceof com.cloudbees.hudson.plugins.folder.Folder) { return }
println 'JOB: ' + j.fullName
numbuilds = j.builds.size()
@Harkirat9711
Harkirat9711 / docker-macos-terraform.md
Created October 23, 2018 22:45 — forked from brianshumate/docker-macos-terraform.md
The Simplest Terraform with Docker on macOS

If you'd like to experiment with Terraform on macOS locally, a great provider for doing so is the Docker provider. You can get set up in a few simple steps, like so:

1. Install Docker

Install Docker for Mac if you have not already.

@Harkirat9711
Harkirat9711 / DES.py
Created October 12, 2017 00:41 — forked from asdvd01/DES.py
P1 = [
56, 48, 40, 32, 24, 16, 8,
0, 57, 49, 41, 33, 25, 17,
9, 1, 58, 50, 42, 34, 26,
18, 10, 2, 59, 51, 43, 35,
62, 54, 46, 38, 30, 22, 14,
6, 61, 53, 45, 37, 29, 21,
13, 5, 60, 52, 44, 36, 28,
20, 12, 4, 27, 19, 11, 3
]