Skip to content

Instantly share code, notes, and snippets.

View madhukar93's full-sized avatar

Madhukar Mishra madhukar93

View GitHub Profile
madhukar93 /
Created April 2, 2024 16:45 — forked from Faheetah/
Install containerd and nerdctl on Ubuntu
sudo apt-get update
sudo apt-get install containerd
tar -zxf nerdctl-${NERDCTL_VERSION}-linux-amd64.tar.gz nerdctl
sudo mv nerdctl /usr/bin/nerdctl
rm nerdctl-${NERDCTL_VERSION}-linux-amd64.tar.gz
madhukar93 /
Created May 27, 2021 16:05 — forked from jamesmacfie/
iTerm 2 - script to change theme depending on Mac OS dark mode

How to use

In iTerm2, in the menu bar go to Scripts > Manage > New Python Script

Select Basic. Select Long-Running Daemon

Give the script a decent name (I chose

Save and open the script in your editor of choice.

madhukar93 /
Created June 10, 2020 04:26 — forked from afloesch/
Jenkins in Docker (docker-in-docker)

Jenkins in Docker (docker-in-docker)

Testing Jenkins flows on your local machine, or running Jenkins in production in a docker container can be a little tricky with a docker-in-docker scenario. You could install Jenkins to avoid any docker-in-docker issues, but then you have Jenkins on your machine, and the local environment is likely going to be a fairly different from the actual production build servers, which can lead to annoying and time-consuming issues to debug.

Build environment differences are precisely why there is a strong argument to be made to run build processes strictly in docker containers. If we follow the philosophy that every build step or action should run in a docker container, even the Jenkins server itself, then we get massive benefits from things like, total control over the build environment, easily modify the build environment without the possibility of adversely effecting other jobs, explicit and strongly controlled tool versions,

madhukar93 / .tmux.conf
Created July 3, 2019 04:48 — forked from tsl0922/.tmux.conf
vim style tmux config
# use C-a, since it's on the home row and easier to hit than C-b
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
set -g base-index 1
# Easy config reload
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
# vi is good
madhukar93 / Repo
Created June 5, 2019 12:56 — forked from richardmcmillen-examtime/Repo
Open a project file on GitHub.
# Open the specified file on GitHub. It will use the master branch by default:
# repo -f app/controllers/application_controller.rb
# Specify a different branch:
# repo -b another-branch -f app/controllers/application_controller.rb
madhukar93 / .zshrc
Created November 12, 2018 10:07 — forked from bmhatfield/.zshrc
OSX Keychain Environment Variables
# If you use bash, this technique isn't really zsh specific. Adapt as needed.
source ~/
# AWS configuration example, after doing:
# $ set-keychain-environment-variable AWS_ACCESS_KEY_ID
# $ set-keychain-environment-variable AWS_SECRET_ACCESS_KEY
# provide: "j1/yoursupersecret/password"
export AWS_ACCESS_KEY_ID=$(keychain-environment-variable AWS_ACCESS_KEY_ID);
export AWS_SECRET_ACCESS_KEY=$(keychain-environment-variable AWS_SECRET_ACCESS_KEY);
# open streams
stdin_open: true
tty: true
# run this to get into console
docker attach <instance>
madhukar93 /
Created February 2, 2016 04:11 — forked from shreyansb/
A profiler for Flask apps
This module provides a simple WSGI profiler middleware for finding
bottlenecks in web application. It uses the profile or cProfile
module to do the profiling and writes the stats to the stream provided
To use, run `` instead of ``