Skip to content

Instantly share code, notes, and snippets.

View tobiaslidstrom's full-sized avatar

Tobias Lidström tobiaslidstrom

View GitHub Profile
@tobiaslidstrom
tobiaslidstrom / calibre.md
Last active May 15, 2026 09:49
Tag based folder structure template for Calibre

Calibre Template

Generates the tag based folder structure

Tag/Author/Series (3) - Title/Author - Title.epub

Template Syntax

{:'sublist(raw_list('tags', ','), 0, 1, ',')'}/{:'re(sublist(field('authors'), 0, 2, ','), ',', ' &')'}/{series}{series_index:| (|) - }{title:re(:, -)}/{:'re(sublist(field('authors'), 0, 2, ','), ',', ' &')'} - {title:re(:, -)}
@tobiaslidstrom
tobiaslidstrom / .gitignore
Last active February 3, 2020 01:54
.gitignore Template
# Visual Studio Code
.vscode/*
@tobiaslidstrom
tobiaslidstrom / .htaccess
Last active June 3, 2019 22:02
Redirect domain to HTTPS
RewriteEngine on
# Redirect domain to HTTPS
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301]
@tobiaslidstrom
tobiaslidstrom / apache-dev-setup.md
Last active November 13, 2022 18:09
How to setup Apache virtual hosts for development environment on local machines

Apache Development Environment

How to setup Apache when working with virtual hosts in a development environment on local machines.

httpd.conf

Uncomment the following lines to allow the VirtualDocumentRoot and CacheDisable directives.

#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule cache_module modules/mod_cache.so