Skip to content

Instantly share code, notes, and snippets.

Avatar
coding and coffee

Christian Oliff coliff

coding and coffee
View GitHub Profile
@coliff
coliff / protonmail-custom-css.css
Created Mar 4, 2020
protonmail-custom-css (hides banner adverts and clipart SVG)
View protonmail-custom-css.css
.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 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
coliff / nextcloud-troubleshooting-ubuntu.md
Last active Sep 12, 2018
Trouble Shooting Issues with Nextcloud on Ubuntu
View nextcloud-troubleshooting-ubuntu.md

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 Jul 31, 2018
Bootstrap 4 for IE8 and IE9 CSS Polyfill
View index.htm
<!--[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 / trackoutboundlink-gtag.htm
Created Jan 15, 2018
Track outbound links with Google's gtag.js
View trackoutboundlink-gtag.htm
@coliff
coliff / search_index.py
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\search-index.py`
View 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
View email-regex.html
<input type="email" placeholder="email@example.com" 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 Jul 18, 2017
VS_Code_Settings.json
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
coliff / web.config
Created Dec 7, 2016
URL Rewriting web.config for Humhub on Windows Server
View web.config
<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-->
@coliff
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 */