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 | |
green_text () { | |
nc='\033[0m' # No Color | |
green='\033[0;32m' # Green | |
echo -e "${green}$1${nc}" | |
} | |
red_text () { | |
nc='\033[0m' # No Color |
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
const states = { | |
AL => 'Alabama', | |
AK => 'Alaska', | |
AS => 'American Samoa', | |
AZ => 'Arizona', | |
AR => 'Arkansas', | |
CA => 'California', | |
CO => 'Colorado', | |
CT => 'Connecticut', | |
DE => 'Delaware', |
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
/** | |
* Handles UrL SearchParams | |
* @param search [search=window.location.href] | |
* @param key [key=|key=string|key=array] | |
* @param raw [raw=false] | |
* @returns {string|object|URLSearchParams} | |
*/ | |
export const getUrlSearchParams = ( | |
search = window.location.search, | |
key, |
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
lsof -ti:<port_number> | xargs kill -9 |