This file contains 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 | |
# Set the `set -e` and `set -o pipefail` options to exit gracefully if any | |
# command fails and to propagate the exit status of a command in a pipe | |
set -e | |
set -o pipefail | |
# Set the remote repository name (default: origin) | |
REMOTE_NAME=${1:-origin} |
This file contains 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 | |
# Set the default directory to search | |
search_dir=~/git | |
# Check if a directory was specified as an argument | |
if [ $# -gt 0 ]; then | |
# Use the specified directory as the search directory | |
search_dir=$1 | |
fi |
This file contains 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 fzf is installed | |
if ! [ -x "$(command -v fzf)" ]; then | |
# Check if brew is available | |
if [ -x "$(command -v brew)" ]; then | |
# Install fzf using brew if it is not installed | |
brew install fzf | |
else | |
# Print a message explaining how to install fzf manually |
This file contains 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
#!/usr/bin/env bash | |
# Define the lyrics of the song as an array of strings | |
lyrics=( | |
"🎶 We're the programmers, fixing bugs all day" | |
"Coding away, working hard" | |
"We'll make your software run" | |
"Without any hiccups, we'll make it fun" | |
"We'll squash those bugs, one by one" | |
"Until your program is done 🎵" |
This file contains 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 | |
# Set the DNS name for the web certificate | |
DNS=app-192-168-10-74.nip.io | |
# Set the filename for the generated CA | |
CA=ca | |
# Generate the CA | |
openssl genrsa -out $CA.key 2048 |