Skip to content

Instantly share code, notes, and snippets.

View thegeorgenikhil's full-sized avatar
👾

Nikhil George thegeorgenikhil

👾
View GitHub Profile
@macfergusson
macfergusson / SQL_Resources.md
Last active July 18, 2024 13:06
SQL Community Discord Resources
@shadiabuhilal
shadiabuhilal / dot-env.sh
Last active July 30, 2024 11:42
Load environment variables from dotenv / .env file in Bash script
#!/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
@arielweinberger
arielweinberger / strong-password-regex.md
Last active July 30, 2024 19:24
Strong password Regular Expression - NestJS Course
  • 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]).*$/
@hamakn
hamakn / codes.md
Created March 15, 2019 11:00
gRPC Code and HTTP Status Code

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