Skip to content

Instantly share code, notes, and snippets.

View jlopinto's full-sized avatar
🥷

Julien Lopinto jlopinto

🥷
  • Toulouse - France
  • 00:08 (UTC +01:00)
View GitHub Profile
@jlopinto
jlopinto / docker-statamic-install.sh
Last active April 12, 2024 23:03
All in one script to quickly spin a blank statamic 4.x install using docker
#!/bin/bash
# Obtaining the UID and GID of the current user
UID=$(id -u)
GID=$(id -g)
# Asking for the folder name with a default value
read -p "Enter the name of the folder for the Laravel project [test-statamic]: " FOLDER_NAME
FOLDER_NAME=${FOLDER_NAME:-test-statamic}
@jlopinto
jlopinto / gist:0a681d6755b5d690758246576ec9fe47
Last active June 26, 2023 07:13
day's without commit for a given date
#!/bin/bash
if [[ $# -eq 0 ]]; then
echo "Please provide a month in the format YYYY-MM (e.g., 2023-06) as an argument."
exit 1
fi
input_month=$1
earliest_commit_date=$(git log --reverse --format="%ad" --date=short | head -n 1)
current_date=$(date +%Y-%m-%d)