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 | |
# Changed CSS Class Search | |
# ------------------------ | |
# Script to compare a git branch with a base branch, find the changed/added/removed CSS classes, and search the codebase for uses | |
# | |
# Required params: | |
# --base - The base branch | |
# --compare - The branch to compare | |
# --extension - The file extension to search in |
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
# Colors for the prompt | |
blue="\033[0;34m" | |
white="\033[0;37m" | |
green="\033[0;32m" | |
red="\033[0;31m" | |
purple="\033[0;35m" | |
# Brackets needed around non-printable characters in PS1 | |
ps1_blue='\['"$blue"'\]' | |
ps1_green='\['"$green"'\]' |
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 | |
cd /home/<user>/Minecraft/mcserver/ | |
SESSION_NAME='mcserver' | |
# Stop all detached screen sessions with this name | |
for session in $(screen -ls | grep -o "[0-9]*\.$SESSION_NAME") | |
do | |
echo "Closing Screen: $session" | |
screen -S "$session" -X stuff "stop $(echo -ne '\r')" |