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
#!/usr/bin/env sh | |
. "$(dirname -- "$0")/_/husky.sh" | |
red=$(tput setaf 1) # ANSI escape code for red color | |
reset=$(tput sgr0) # ANSI escape code to reset color | |
#Commit message check | |
commit_msg=$(git log -1 --pretty=%B) |
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
varName=./_sorted | |
if [ ! -d "$varName" ]; then | |
echo "Creating $varName"; | |
mkdir "$varName"; | |
fi | |
## array variable containing extensions | |
declare -a extensions=("dmg" "archives" "pdfs" "images" "php" "html" "js" "documents" "powerpoints" "excel" "java" "logs" "objc" "emails" "videos" "dbbackup") | |
declare -a images=("jpg" "JPG" "jpeg" "png" "PNG" "gif" "jpg" "svg" "webp") |
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
import { DefaultLogger, WebsocketClient } from 'okx-api'; | |
// Optional: Inject a custom logger. | |
// This example overrides the default logger to also log "silly" (super verbose) messages, which are disabled by default | |
const logger = { | |
...DefaultLogger, | |
silly: (...params) => console.log('silly', ...params), | |
}; | |
const wsClient = new WebsocketClient( |
OlderNewer