This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local map = vim.api.nvim_set_keymap | |
local function map_numeric_keys() | |
local numeric_mappings = {} | |
for i = 1, 9 do | |
table.insert(numeric_mappings, { | |
key = tostring(i), | |
cmd = string.format('<cmd> lua require("harpoon.ui").nav_file(%d)<CR>', i), | |
desc = string.format("Harpoon Bind #%d", i), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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:") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DEFAULT_BROWSER="brave" | |
# Declare a custom array of websites | |
declare -A websites | |
websites["google"]="https://google.com/" | |
websites["youtube"]="https://youtube.com/" | |
websites["x-twitter"]="https://x.com" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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\?:\/\///') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
getGoVersion() { | |
versionInfo=$(go version 2>&1) | |
if [ $? -ne 0 ]; then | |
echo "Error executing 'go version' command: $versionInfo" >&2 | |
return 1 | |
fi | |
version=$(echo $versionInfo | awk '{print $3}') |