Skip to content

Instantly share code, notes, and snippets.

View coliff's full-sized avatar
coding and coffee

Christian Oliff coliff

coding and coffee
View GitHub Profile
@coliff
coliff / search_index.py
Last active November 2, 2017 13:02
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\search-index.py`
# 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
@coliff
coliff / trackoutboundlink-gtag.htm
Created January 15, 2018 13:54
Track outbound links with Google's gtag.js
@coliff
coliff / index.htm
Last active July 31, 2018 15:03
Bootstrap 4 for IE8 and IE9 CSS Polyfill
<!--[if IE 9]>
<link href="https://cdn.jsdelivr.net/gh/coliff/bootstrap-ie8/css/bootstrap-ie9.min.css" rel="stylesheet">
<![endif]-->
<!--[if lte IE 8]>
<link href="https://cdn.jsdelivr.net/gh/coliff/bootstrap-ie8/css/bootstrap-ie8.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/g/html5shiv@3.7.3"></script>
<![endif]-->
@coliff
coliff / nextcloud-troubleshooting-ubuntu.md
Last active September 12, 2018 10:27
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/

Reboot

sudo reboot

Restart MySQL

@coliff
coliff / countries.en.yaml
Created August 3, 2018 12:54
country list - ideal for using with Hugo
- id: AF
translation: Afghanistan
- id: AL
translation: Albania
- id: DZ
translation: Algeria
- id: AS
@coliff
coliff / protonmail-custom-css.css
Created March 4, 2020 16:24
protonmail-custom-css (hides banner adverts and clipart SVG)
.messagePlaceholder-image {display:none}
img[alt="Get 20% discount"] {display:none}
img[alt="Welcome Back"] {display:none}
a[href="/allmail"]{display:none}
a[href="/trash"]{opacity:.1}
.encryptionStatus-container{display:none}
@coliff
coliff / index.html
Last active October 25, 2021 09:32
freshdesk-messaging-facade with legacy browser fallback
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Freshdesk Messaging (formerly Freshchat) Facade</title>
<link rel="stylesheet" href="css/freshdesk-messaging-facade.min.css">
<script src="js/freshdesk-messaging-facade.min.js" type="module" async></script>