Skip to content

Instantly share code, notes, and snippets.

View Dark-Kernel's full-sized avatar
🐧
You Never Know What.

Sumit Patel Dark-Kernel

🐧
You Never Know What.
View GitHub Profile
@Dark-Kernel
Dark-Kernel / Music.sh
Created January 19, 2025 12:08
Music Scriptss...
#!/bin/bash
mus=$(curl -s -H "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36" "https://soundcloud.com/search?q=$1" | grep -Eo '<li><h2>.*' | grep -Eo 'href=".*"' | cut -d = -f2 )
arr=()
while IFS= read -r val; do
arr+=("$val")
done < <(printf '%s\n' "$mus")
if [ "$2" == "l" ]; then
sel=$(echo "$mus" | sed "s/'//g; s/\"//g" | fzf)
#!/bin/bash
# Perform a blue-green deployment in Kubernetes. Still not perfect, modify accordingly.
# check the pod readiness
check_readiness() {
local deployment=$1
local timeout=300
local interval=5
local elapsed=0

This is something cool