Skip to content

Instantly share code, notes, and snippets.

View CppHotReload's full-sized avatar

Cpp Hot Reload CppHotReload

View GitHub Profile
@CppHotReload
CppHotReload / reset_repo.md
Last active June 13, 2020 19:58
reset repository - 2020

From various authors, just what worked for me.

Safe Method creating an orphan branch

Check out to a temporary branch:

git checkout --orphan TEMP_BRANCH

Add all the files:

git add -A

@pauloelias
pauloelias / README.md
Created August 23, 2012 16:57
Extended ExpressionEngine .htaccess/apache conf

ExpressionEngine .htaccess/Apache conf

Please use these at your own risk. I cannot be responsible for having no idea what I am doing and breaking your server.

This is a collection of Apache configuration settings that I use in my ExpressionEngine projects. Since I have always been a big fan of the HTML5 Boilerplate I took inspiration from their .htaccess file and tweaked my configuration with other settings I have used over the years.

This gist contains:

  • _EXTENDED.htaccess This is a general .htaccess file I rename and edit as needed for each site. Note: When I host a site on my prad/stage/dev servers I move most or all of these rules into the vhost.conf file
  • _SAMPLE.httpd.conf I use Ubuntu on my development, staging, and production servers so this is specific to Apache 2 on my setup. Essentially this file extends the apache2.conf (in my setup).