Skip to content

Instantly share code, notes, and snippets.

View romantech's full-sized avatar
🎯
Focusing

ColorFilter romantech

🎯
Focusing
View GitHub Profile
@romantech
romantech / update-node-lts.sh
Created June 16, 2024 10:31
Update to Node.js LTS and Migrate Global NPM Packages
#!/bin/bash
# Define colors
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
BLUE=$(tput setaf 4)
YELLOW=$(tput setaf 3)
RESET=$(tput sgr0)
# Function to handle errors
@romantech
romantech / cnf-generator.sh
Last active June 6, 2024 16:10
Bash Script to Generate OpenSSL Configuration File with Custom Parameters
#!/bin/bash
# 기본 설정
OUTPUT_CNF="openssl.cnf"
# 기본 값
COUNTRY="US"
STATE="California"
LOCALITY="San Francisco"
ORGANIZATION="Home"
@romantech
romantech / cert-generator.sh
Last active June 6, 2024 16:45
Automate Self-Signed SSL Certificate Generation Using OpenSSL
#!/bin/bash
# 기본 값 설정
DAYS=365
OUTPUT_DIR="."
# 사용법 안내 함수
usage() {
echo "Usage: $(basename $0) [-d days] [-o output_dir]"
echo " -d days Number of days the certificate is valid (default: 365)"