This content collected and curated for the SQL Discord, join us!
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 | |
# Create a (draft) pull request using GitHub CLI. | |
# It assigns the PR to the current user, fills in the title from the first commit, | |
# and uses the PR template file for the description. | |
set -euo pipefail | |
# Colors for output | |
RED='\033[0;31m' |
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 | |
# Specify the path to your .env file | |
ENV_FILE=".env" | |
# Function to success color text with green | |
successText() { | |
tput setaf 2 | |
echo "$@" | |
tput sgr0 |
- Passwords will contain at least 1 upper case letter
- Passwords will contain at least 1 lower case letter
- Passwords will contain at least 1 number or special character
- There is no length validation (min, max) in this regex!
Regular expression for JavaScript:
/((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/
https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
gRPC Code | HTTP Status Code |
---|---|
OK = 0 | 200 OK |
CANCELLED = 1 | 499 Client Closed Request |
UNKNOWN = 2 | 500 Internal Server Error |
INVALID_ARGUMENT = 3 | 400 Bad Request |
Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8