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
CREATE EXTENSION IF NOT EXISTS "unaccent" | |
CREATE OR REPLACE FUNCTION slugify("value" TEXT) | |
RETURNS TEXT AS $$ | |
-- removes accents (diacritic signs) from a given string -- | |
WITH "unaccented" AS ( | |
SELECT unaccent("value") AS "value" | |
), | |
-- lowercases the string | |
"lowercase" AS ( |
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
if [ -f /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome ]; then | |
browser="chrome" | |
elif [ -f /Applications/Firefox.app/Contents/MacOS/firefox ]; then | |
browser="firefox" | |
else | |
echo "Neither Chrome nor Firefox found. Install one." | |
exit | |
fi | |
echo "This opens a screen session with several windows. Once testing is complete, exit all of them to return to this terminal" | |
DIR="$( cd "$( dirname "$0" )" && pwd )" |