Skip to content

Instantly share code, notes, and snippets.

View LalatenduMohanty's full-sized avatar
💭
I may be slow to respond.

Lalatendu Mohanty LalatenduMohanty

💭
I may be slow to respond.
View GitHub Profile
@LalatenduMohanty
LalatenduMohanty / Dockerfile
Created August 21, 2024 18:53 — forked from aojea/Dockerfile
Using crio runtime in KIND
ARG IMAGE=kindest/node
ARG VERSION=1.19
ARG MINOR=1
ARG OS=xUbuntu_20.04
FROM ${IMAGE}:v${VERSION}.${MINOR}
ARG VERSION
ARG OS
@LalatenduMohanty
LalatenduMohanty / replace-cluster-cvo.sh
Created October 27, 2022 20:30 — forked from petr-muller/replace-cluster-cvo.sh
Hotswap CVO in a running cluster
#!/bin/bash
set -eu
root="$(dirname "${BASH_SOURCE[0]}")/.."
customCvoPullspec=quay.io/petr-muller/cluster-version-operator:"$(git branch --show-current)"
payload="$(oc get -n openshift-cluster-version clusterversion version -o jsonpath='{.status.desired.image}')"
podman pull "$payload"
@LalatenduMohanty
LalatenduMohanty / pr.md
Created June 15, 2021 16:14 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@LalatenduMohanty
LalatenduMohanty / Justfile
Created December 12, 2019 16:13
cincinnati Justfile
TOPLEVEL_DIR=`git rev-parse --show-toplevel`
code:
code -n {{TOPLEVEL_DIR}}
format:
cargo fmt --all
commit +args="": format
git commit {{args}}
@LalatenduMohanty
LalatenduMohanty / operatorTalks.md
Created January 26, 2019 10:45 — forked from surajnarwade/operatorTalks.md
Talks related to Controllers & Operators
@LalatenduMohanty
LalatenduMohanty / volume_net_dump.xml
Created November 22, 2018 09:20 — forked from praveenkumar/volume_net_dump.xml
Installer resources dump
[root@local images]# virsh net-dumpxml test1
<network>
<name>test1</name>
<uuid>7a102928-813d-4135-aaf2-e52908bb5573</uuid>
<forward mode='nat'>
<nat>
<port start='1024' end='65535'/>
</nat>
</forward>
<bridge name='tt0' stp='on' delay='0'/>
@LalatenduMohanty
LalatenduMohanty / powershell.go
Created November 19, 2018 13:04 — forked from brgnepal/powershell.go
Playing PowerShell command via Golang
package main
import (
"bytes"
"fmt"
"os/exec"
"strings"
)
// PowerShell struct
@LalatenduMohanty
LalatenduMohanty / vagrant_run.py
Created December 8, 2015 07:44 — forked from praveenkumar/vagrant_run.py
Vagrant regression testing for adb/cdk
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright © 2015 Praveen Kumar <[email protected]>
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2, or (at your option) any later
# version. This program is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY expressed or implied, including the
@LalatenduMohanty
LalatenduMohanty / tmux-cheatsheet.markdown
Created November 20, 2015 05:28 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@LalatenduMohanty
LalatenduMohanty / post2.rst
Last active November 6, 2015 09:31 — forked from dustymabe/post2.rst
Fedora Cloud Vagrant Boxes in Atlas

With Fedora 22 release we started creating Vagrant boxes for our cloud images in order to make it easier to set up a local environment for development or testing. In the 22 release cycle we worked out quite a few kinks and we are again releasing libvirt and virtualbox Vagrant boxes for Fedora 23. We are also going a step farther this time by making it