This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fonts | |
if ( $uri ~* ^.+?\.(?:eot|svg|svgz|ttf|woff|woff2)$ ) { | |
expires 30d; | |
access_log off; | |
add_header Cache-Control "public"; | |
add_header Access-Control-Allow-Origin *; | |
} | |
# Feed | |
if ( $uri ~* ^.+?\.(?:rss|atom)$ ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proxy_redirect off; | |
client_max_body_size 64M; | |
client_body_buffer_size 128k; | |
proxy_read_timeout 10s; | |
proxy_connect_timeout 10s; | |
proxy_send_timeout 10s; | |
proxy_headers_hash_bucket_size 256; | |
proxy_headers_hash_max_size 2048; | |
proxy_buffering off; | |
proxy_buffer_size 128k; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen [::]:80; | |
server_name sitename.tld; | |
location ^~ /.well-known/acme-challenge/ { | |
alias /var/www/letsencrypt/.well-known/acme-challenge/; | |
} | |
location / { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Google Tag Manager --> | |
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | |
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | |
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | |
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | |
})(window,document,'script','dataLayer','GTM-ID1234');</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Data Layer --> | |
<script> | |
dataLayer = [{ | |
'locale': 'de', | |
'site': 'sblum.de', | |
'siteName': 'Google Tag Manager', | |
'pageSection': ['tutorials','guides'], | |
'article': { | |
'author': 'sblum Team', | |
'category': 'GTM', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="https://www.facebook.com/sebastian.blum" | |
onmousedown="dataLayer.push({ | |
'event': 'click.social', | |
'socialSite': 'Facebook', | |
'socialType': 'Privates Profil' | |
});"> | |
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
toast( | |
"[css]'css/application.css'", | |
function () { | |
// Aufruf, falls CSS ready | |
}, | |
"[js]'js/application.js'" | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Copyright (c) 2000-2016 etracker GmbH. All rights reserved. --> | |
<!-- This material may not be reproduced, displayed, modified or distributed --> | |
<!-- without the express prior written permission of the copyright holder. --> | |
<!-- etracker tracklet 4.1 --> | |
<script type="text/javascript"> | |
//var et_pagename = ""; | |
//var et_areas = ""; | |
//var et_url = ""; | |
//var et_target = ""; | |
//var et_tval = ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Global site tag (gtag.js) - Google Analytics --> | |
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-12345678-9"></script> | |
<script> | |
window.dataLayer = window.dataLayer || []; | |
function gtag(){dataLayer.push(arguments);} | |
gtag("js", new Date()); | |
gtag("config", "UA-12345678-9"); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe("Queue model", function () { | |
let mockQueue; | |
beforeEach(function() { | |
mockQueue = new Queue(); | |
}); | |
it("expect count to be one when added one element", function() { | |
mockQueue.addElement({ | |
"eventObject": "https://www.google.de", |
OlderNewer