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 / 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>
@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 / 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 / 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 / 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/[email protected]"></script>
<![endif]-->
@coliff
coliff / trackoutboundlink-gtag.htm
Created January 15, 2018 13:54
Track outbound links with Google's gtag.js
@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
<input type="email" placeholder="[email protected]" 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
coliff / VS_Code_Settings.json
Last active July 18, 2017 06:50
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
coliff / web.config
Created December 7, 2016 14:18
URL Rewriting web.config for Humhub on Windows Server
<rewrite>
<rules>
<!--# otherwise forward it to index.php-->
<rule name="Imported Rule 1">
<match url="." ignoreCase="false" />
<conditions>
<!--# 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-->