Skip to content

Instantly share code, notes, and snippets.

View fortis's full-sized avatar
🎯
Focusing

Alan Bondarchuk fortis

🎯
Focusing
View GitHub Profile
<script>
window.addEventListener('error', function (e) {
ga('send', 'exception', {
exDescription: 'JavaScript Error ' + e.message + ' ' + e.filename + ': ' + e.lineno
});
});
jQuery(document).ajaxError(function (e, request, settings) {
ga('send', 'exception', {
exDescription: 'Ajax Error ' + settings.url + ' ' + e.result
});
@fortis
fortis / .drone.yml
Created January 19, 2018 22:27
drone docker plugins with layers cache
pipeline:
restore-cache:
image: drillster/drone-volume-cache
restore: true
ttl: 7
mount:
- /drone/docker
# Mount the cache volume, needs "Trusted"
volumes:
- /tmp/cache:/cache