Skip to content

Instantly share code, notes, and snippets.

View rajibmitra's full-sized avatar
💥
may the force be with you!

rajib rajibmitra

💥
may the force be with you!
View GitHub Profile
@rajibmitra
rajibmitra / settings.json
Created January 2, 2024 19:52 — forked from ixahmedxi/settings.json
My settings.json
{
"workbench.startupEditor": "none",
"workbench.iconTheme": "moxer-icons",
"workbench.colorTheme": "Aura Dark",
"workbench.settings.editor": "json",
"breadcrumbs.enabled": false,
"explorer.compactFolders": false,
"editor.wordWrap": "bounded",
"editor.tabSize": 2,
"editor.inlineSuggest.enabled": true,
@rajibmitra
rajibmitra / genpwd.sh
Created July 27, 2023 11:07
genpwd.sh
#!/usr/bin/env bash
set -Eeuo pipefail
# Function to generate a random string
generate_random_string() {
length="$1"
if [ -x "$(command -v openssl)" ]; then
openssl rand -base64 "$length" | tr -d '/+='
elif [ -x "$(command -v head)" ]; then
head /dev/urandom | LC_ALL=C tr -dc 'a-zA-Z0-9' | head -c "$length"
@rajibmitra
rajibmitra / vagrant-vmware-tech-preview-apple-m1-pro.md
Created December 8, 2022 19:40 — forked from sbailliez/vagrant-vmware-tech-preview-apple-m1-pro.md
Vagrant and VMWare Tech Preview 21H1 on Apple M1 Pro

Vagrant and VMWare Tech Preview 21H1 on Apple M1 Pro

UPDATE November 20, 2022: VMWare Fusion 13

VMWare Fusion 13 is now released. Read Vagrant and VMWare Fusion 13 Player on Apple M1 Pro for the latest.

Summary

This document summarizes notes taken while to make the VMWare Tech preview work on Apple M1 Pro, it originated

@rajibmitra
rajibmitra / kubectl get nodes --by-age
Created July 30, 2021 15:09 — forked from rbtr/kubectl get nodes --by-age
sort kubernetes nodes by age
kubectl get nodes --sort-by=".status.conditions[?(@.reason == 'KubeletReady' )].lastTransitionTime"
@rajibmitra
rajibmitra / check_palindrom.py
Created December 6, 2019 09:04
check the palindrom
def check_palindrom(word):
list_of_words = []
for i in word :
list_of_words.append(i)
print("list_of_words",list_of_words)
list_of_words.reverse()
reversed_list_word = list_of_words
print ("reverse is ",reversed_list_word)
list_of_words.reverse()
print ("list of words",list_of_words)
#!/bin/sh
#
# /etc/init.d/elasticsearch -- startup script for Elasticsearch
#
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
# Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.ai.mit.edu>.
# Modified for Tomcat by Stefan Gybas <sgybas@debian.org>.
# Modified for Tomcat6 by Thierry Carrez <thierry.carrez@ubuntu.com>.
# Additional improvements by Jason Brittain <jason.brittain@mulesoft.com>.
# Modified by Nicolas Huray for Elasticsearch <nicolas.huray@gmail.com>.
#!/bin/sh
#
# /etc/init.d/elasticsearch -- startup script for Elasticsearch
#
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
# Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.ai.mit.edu>.
# Modified for Tomcat by Stefan Gybas <sgybas@debian.org>.
# Modified for Tomcat6 by Thierry Carrez <thierry.carrez@ubuntu.com>.
# Additional improvements by Jason Brittain <jason.brittain@mulesoft.com>.
# Modified by Nicolas Huray for Elasticsearch <nicolas.huray@gmail.com>.
#!/bin/sh
#
# /etc/init.d/elasticsearch -- startup script for Elasticsearch
#
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
# Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.ai.mit.edu>.
# Modified for Tomcat by Stefan Gybas <sgybas@debian.org>.
# Modified for Tomcat6 by Thierry Carrez <thierry.carrez@ubuntu.com>.
# Additional improvements by Jason Brittain <jason.brittain@mulesoft.com>.
# Modified by Nicolas Huray for Elasticsearch <nicolas.huray@gmail.com>.
package jenkins.automation.utils
import java.util.Map
class CheckmarxUtils {
/**
* Reusable block to add Checkmarx scanning to a project