Skip to content

Instantly share code, notes, and snippets.

View gthln's full-sized avatar

Günther Theilen gthln

View GitHub Profile
@gthln
gthln / excerpt.js
Last active August 29, 2015 14:28 — forked from mrmwiebe/excerpt.js
Custom excerpt.js
// # Excerpt Helper
// Usage: `{{excerpt}}`, `{{excerpt words="50"}}`, `{{excerpt characters="256"}}`
//
// Attempts to remove all HTML from the string, and then shortens the result according to the provided option.
//
// Defaults to words="50"
/*
Added optional ability to use 2 <!--excerpt--> tags in your posts to specify exactly what will be
@gthln
gthln / gist:8401080
Created January 13, 2014 14:23
Install Composer on Managed Hosting at Domainfactory

Install Composer on Managed Hosting at Domainfactory

Step 1:

Log in to your Managed Hosting Server via SSH

Step 2:

Add these two lines to .bashrc:

@gthln
gthln / htaccess.df
Last active October 29, 2021 12:29 — forked from tomraithel/.htaccess 2
.htaccess for Laravel at Domainfactory, replaces .htaccess in public
<IfModule mod_rewrite.c>
Options +FollowSymLinks
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>