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 / 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-->
@coliff
coliff / BootstrapMediaQueries.css
Last active November 22, 2016 08:40
Bootstrap 3 Media Queries.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 */
<!doctype html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
@coliff
coliff / webconfig.xml
Last active February 19, 2016 10:16
IIS 7 web.config with performance tweaks for caching and compression optimisations.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files" minFileSizeForComp="1024">
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll"/>
<dynamicTypes>
<add mimeType="text/*" enabled="true"/>
<add mimeType="message/*" enabled="true"/>
<add mimeType="application/javascript" enabled="true"/>
<add mimeType="*/*" enabled="false"/>
@coliff
coliff / high-dpi-media.css
Last active October 13, 2015 14:48 — forked from marcedwards/high-dpi-media.css
A CSS media query that captures almost all high DPI aware devices.
/* ---------------------------------------------------------- */
/* */
/* A media query that captures: */
/* */
/* - Retina iOS devices */
/* - Retina Macs running Safari */
/* - High DPI Windows PCs running IE 8 and above */
/* - Low DPI Windows PCs with IE zoomed in */
/* - Low DPI Windows PCs & Macs with Firefox zoomed in */
/* - Android hdpi devices and above */
@coliff
coliff / onClick.js
Last active August 29, 2015 14:03
Track outbound links with Google Analytics (Universal)
onclick="trackOutboundLink('http://example.com');return false"