Skip to content

Instantly share code, notes, and snippets.

View Grigore147's full-sized avatar

Grigore Dutcovici Grigore147

View GitHub Profile
@Grigore147
Grigore147 / rfc-template.md
Created December 21, 2023 19:36 — forked from michaelcurry/rfc-template.md
RFC Template [Markdown]

RFC Template

Feature Name: (fill me in with a unique identity, myawesomefeature)

Type: (feature, enhancement)

Start Date: (fill me in with today's date, YYYY-MM-DD)

Author: (your names)

@Grigore147
Grigore147 / script-template.sh
Created August 5, 2024 00:47 — forked from m-radzikowski/script-template.sh
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@Grigore147
Grigore147 / k8s-client-certificate.sh
Created July 25, 2025 22:07
Example script to create a K8s client certificate using OpenSSL for K8s API access.
#!/bin/bash
USER='grigore'
openssl genrsa -out ${USER}.key 2048
openssl req -new -key ${USER}.key -out ${USER}.csr -subj "/CN=${USER}"
# Get certificate info:
# openssl x509 -noout -text -in ./grigore.crt
@Grigore147
Grigore147 / sidebar.tsx
Created August 25, 2025 01:09 — forked from nickzelei/sidebar.tsx
Shadcn multi-sidebar
import { cn } from '@/lib/utils'
import { Slot } from '@radix-ui/react-slot'
import { VariantProps, cva } from 'class-variance-authority'
import { PanelLeftIcon } from 'lucide-react'
import * as React from 'react'
import { useIsMobile } from '../../lib/hooks/useMobile'
import { Button } from './button'
import { Input } from './input'
import KeybindingTooltip from './KeybindingTooltip'
import { Separator } from './separator'