Skip to content

Instantly share code, notes, and snippets.

View naranyala's full-sized avatar
🎯
F11 - back to the context

Fudzer M Huda naranyala

🎯
F11 - back to the context
View GitHub Profile
#!/bin/bash
# Bash script to initiate a new Lua project
# Check if the user wants to create a new directory
read -p "Do you want to create a new directory for your Lua project? (y/n): " create_new_directory
if [ "$create_new_directory" == "y" ]; then
# Get project name from user input
read -p "Enter your Lua project name: " project_name
#!/bin/bash
# Bash script to initiate a new Golang project
# Check if the user wants to create a new directory
read -p "Do you want to create a new directory for your Go project? (y/n): " create_new_directory
if [ "$create_new_directory" == "y" ]; then
# Get project name from user input
read -p "Enter your Go project name: " project_name
#!/bin/bash
# Bash script to initiate a new Python project
# Check if the user wants to create a new directory
read -p "Do you want to create a new directory for your project? (y/n): " create_new_directory
if [ "$create_new_directory" == "y" ]; then
# Get project name from user input
read -p "Enter your project name: " project_name
#!/bin/bash
# Check if a GitHub URL is provided
if [ -z "$1" ]; then
echo "Usage: $0 <GitHub Repo URL>"
exit 1
fi
# Remove "http://" or "https://"
url_no_protocol=$(echo $1 | sed 's/https\?:\/\///')
#!/bin/bash
DEFAULT_BROWSER="brave"
# Declare a custom array of websites
declare -A websites
websites["yt-mp3"]="https://ytmp3.cc/"
websites["yt-vid"]="https://www.y2mate.com/"
websites["yt-playlist"]="https://youtubemultidownloader.net/playlists.html"
#!/bin/bash
PATH_MEDIA="/media"
PATH_HOME="/home"
# Declare a custom array of dirs
declare -A dirs
dirs["dir:category:subcategory"]="$PATH_MEDIA/public-repos"
dirs["dir:category:subcategory"]="$PATH_MEDIA/private-repos"
#!/bin/bash
# Rofi prompt for website URL
website_url=$(rofi -dmenu -p "Enter the website URL:")
# Extract the website name
website_name=$(echo "$website_url" | awk -F[/:] '{print $4}')
# Rofi prompt for folder name
folder_name=$(rofi -dmenu -p "Enter folder name for $website_name:")
#!/bin/bash
DEFAULT_BROWSER="brave"
# Declare a custom array of websites
declare -A websites
websites["google"]="google.com"
websites["github"]="github.com"
websites["twitter"]="twitter.com"
# websites[""]="https://%s"
#!/bin/bash
declare -A websites
websites["ai-perplexity"]="https://www.perplexity.ai/search"
websites["ai-ms-copilot"]="https://copilot.microsoft.com/"
websites["ai-youcom"]="https://you.com/search"
websites["ai-huggingface"]="https://huggingface.co/chat"
websites["ai-claude-ai"]="https://claude.ai/chat"
websites["ai-google-bard"]="https://bard.google.com/chat"
#!/bin/bash
declare -A websites
websites["google"]="https://www.google.com"
websites["twitter"]="https://twitter.com"
# Get website names as a list
website_names=$(printf "%s\n" "${!websites[@]}")
# Use Rofi to select a website