Skip to content

Instantly share code, notes, and snippets.

Matthias Thar snrbrnjna

Block or report user

Report or block snrbrnjna

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
snrbrnjna / .htaccess
Last active Apr 16, 2019
Config for Cachify Plugin in HDD mode delivering .br (brotli) or .gzip versions of the cached files
View .htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
# set hostname directory
RewriteRule .* - [E=CACHIFY_HOST:https-%{HTTP_HOST}]
# set Doument root - `DCOUMENT_ROOT` is set to ~/html - the virtual host config on uberspace
RewriteRule .* - [E=MY_DOCUMENT_ROOT:/var/www/virtual/user/html]
snrbrnjna / gist:3ab82c16d3c75166621611be050723eb
Last active Feb 17, 2017 — forked from silviorelli/gist:ad8e1d80bdc0245eb7e7
Install Ruby 1.8.7 on Mac OSX 10.11 El Capitan with rbenv
View gist:3ab82c16d3c75166621611be050723eb
CFLAGS="-O2 -fno-tree-dce -fno-optimize-sibling-calls" RUBY_CONFIGURE_OPTS=--with-openssl-dir=/usr/local/Cellar/openssl/1.0.2k rbenv install 1.8.7-p302
View .eslintrc
"globals": {
"log": false
"rules": {
"indent": [
{"VariableDeclarator": { "var": 2, "let": 2, "const": 3}}
snrbrnjna / .htaccess
Last active Jul 22, 2019
Jekyll Auth Plugin - to manage http basic auth for jekyll generated pages and directories
View .htaccess
#### Jekyll Layout: /_layouts/.htaccess
# Apache Configuration File
{% if ((page.auth_dir.users != empty) or (page.auth_dir.groups != empty)) %}
AuthName "Privater Bereich"
AuthType Basic
# => mehrere Require Blocks werden geodert:
AuthzUserAuthoritative Off
AuthUserFile {{ page.auth_remote_user_file }}
snrbrnjna / exclude_home.rb
Created Nov 29, 2013
To exclude some configurable posts from Jekyll's default pagination on index.html pages
View exclude_home.rb
module Jekyll
module Generators
class Pagination
# Monkey patch this method to exclude some cats and tags from all standard
# paginators
# For this to take effect, you have to define a ``exclude_home`` property in your _config.yml:
# exclude_home:
# categories: [notes]
You can’t perform that action at this time.