Skip to content

Instantly share code, notes, and snippets.

View GeorgeGedox's full-sized avatar
🏠
Working from home

George V. GeorgeGedox

🏠
Working from home
View GitHub Profile
@GeorgeGedox
GeorgeGedox / laravel.conf
Created February 5, 2020 15:30
Laravel Virtual Host example for Apache containing SSL support and HTTP to HTTPS redirect
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
ErrorLog ${APACHE_LOG_DIR}/example.com-error.log
CustomLog ${APACHE_LOG_DIR}/example.com-access.log combined
RewriteEngine on
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
</VirtualHost>
@GeorgeGedox
GeorgeGedox / start.sh
Created June 27, 2019 00:06
Change commit author history based on email across all branches
#!/bin/sh
GIT_REPOSITORY="https://github.com/user/repo.git"
OLD_EMAIL="your-old-email@example.com"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="your-correct-email@example.com"
git clone --bare $GIT_REPOSITORY TMP_REPO_FIX
cd TMP_REPO_FIX
git filter-branch --env-filter '