Skip to content

Instantly share code, notes, and snippets.

coding and coffee

Christian Oliff coliff

coding and coffee
Block or report user

Report or block coliff

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
coliff / countries.en.yaml
Created Aug 3, 2018
country list - ideal for using with Hugo
View countries.en.yaml
- id: AF
translation: Afghanistan
- id: AL
translation: Albania
- id: DZ
translation: Algeria
- id: AS
coliff /
Last active Sep 12, 2018
Trouble Shooting Issues with Nextcloud on Ubuntu

Can't write changes to files in Nextcloud

Give yourself write privileges with: sudo setfacl -R -m "u:ubuntu:rwx" /var/www/nextcloud/


sudo reboot

Restart MySQL

coliff / index.htm
Last active Jul 31, 2018
Bootstrap 4 for IE8 and IE9 CSS Polyfill
View index.htm
<!--[if IE 9]>
<link href="" rel="stylesheet">
<!--[if lte IE 8]>
<link href="" rel="stylesheet">
<script src=""></script>
coliff / trackoutboundlink-gtag.htm
Created Jan 15, 2018
Track outbound links with Google's gtag.js
View trackoutboundlink-gtag.htm
coliff /
Last active Nov 2, 2017
MkDocs customisation which minifies the search\search-index.json file for faster loading. The below code should be in `Lib\site-packages\mkdocs\contrib\legacy_search\`
# coding: utf-8
from __future__ import unicode_literals
import json
from mkdocs import utils
try: # pragma: no cover
from html.parser import HTMLParser # noqa
except ImportError: # pragma: no cover
View email-regex.htm
<input type="email" placeholder="" autocomplete="email" pattern="[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.+(xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|travelersinsurance|northwesternmutual|xn--xkc2dl3a5ee0h|xn--mgberp4a5d4ar|xn--mgbai9azgqp6j|xn--bck1b9a5dre4c|xn--5su34j936bgsg|xn--3oq18vl8pn36a|xn--xkc2al3hye2a|xn--mgba7c0bbn0a|xn--fzys8d69uvgm|xn--nqv7fs00ema|xn--mgbc0a9azcg|xn--mgba3a4f16a|xn--lgbbat1ad8j|xn--kcrx77d1x4a|xn--i1b6b1a6a2e|sandvikcoromant|kerryproperties|americanexpress|xn--mgbx4cd0ab|xn--mgbi4ecexp|xn--mgbca7dzdo|xn--mgbbh1a71e|xn--mgbb9fbpob|xn--mgbayh7gpa|xn--mgbaam7a8h|xn--mgba3a3ejt|xn--jlq61u9w7b|xn--fiq228c5hs|xn--b4w605ferd|xn--80aqecdr1a|xn--6qq986b3xl|xn--54b7fta0cc|weatherchannel|kerrylogistics|cookingchannel|cancerresearch|bananarepublic|americanfamily|afamilycompany|xn--ygbi2ammx|xn--yfro4i67o|xn--tiq49xqyj|xn--fzc2c9e2c|xn--fpcrj9c3d|xn--eckvdtc9d|wolterskluwer|travelchannel|spreadbetting|lifeinsurance|international|xn-
coliff / VS_Code_Settings.json
Last active Jul 18, 2017
View VS_Code_Settings.json
// Place your settings in this file to overwrite the default settings
"extensions.autoUpdate": true,
"editor.wordWrap": "on",
// "editor.formatOnSave": true,
"html.suggest.ionic": false,
"workbench.iconTheme": "vs-seti",
"telemetry.enableTelemetry": false,
"spellchecker.language": "en_US",
"spellchecker.ignoreWordsList": [
coliff / web.config
Created Dec 7, 2016
URL Rewriting web.config for Humhub on Windows Server
View web.config
<!--# otherwise forward it to index.php-->
<rule name="Imported Rule 1">
<match url="." ignoreCase="false" />
<!--# prevent httpd from serving dotfiles (.htaccess, .svn, .git, etc.) - except let's encrypt challenge-->
<!--# RewriteBase is required in some hosting environments (Amazon EC2, ...)-->
<!--#RewriteBase /-->
<!--# if a directory or a file exists, use it directly-->
coliff / BootstrapMediaQueries.css
Last active Nov 22, 2016
Bootstrap 3 Media Queries.css
View BootstrapMediaQueries.css
/* XS */
@media (max-width: 767px) {}
/* SM */
@media (min-width: 768px) and (max-width: 991px) {}
/* MD */
@media (min-width: 992px) and (max-width: 1199px) {}
/* LG */
coliff / jquery-conditional-with-fallback.htm
Last active Apr 13, 2018
Conditional statement to give IE 8 and lower jQuery 1.x and all other browsers jQuery 3.x
View jquery-conditional-with-fallback.htm
<!--[if gte IE 9]><!-->
<script src=""></script>
<!--[if lt IE 9]>
<script src=""></script>
You can’t perform that action at this time.