Skip to content

Instantly share code, notes, and snippets.

View majodev's full-sized avatar

Mario Ranftl majodev

View GitHub Profile
@majodev
majodev / Dockerfile
Created December 4, 2018 09:11
netdata daemonset on kubernetes
FROM netdata/netdata:latest
MAINTAINER YOUR_EMAIL
# add netdata user to root group (access volumne mounts from host)
RUN apk --no-cache add shadow
RUN usermod -a -G root netdata
ENTRYPOINT ["/usr/sbin/run.sh"]
@majodev
majodev / keybase.md
Created December 10, 2017 20:20
keybase public proof

Keybase proof

I hereby claim:

  • I am majodev on github.
  • I am mranftl (https://keybase.io/mranftl) on keybase.
  • I have a public key ASB73VpLBBV5HwAFxRepbjDjcV5yAfKofRHfyO-SBmYTYQo

To claim this, I am signing this object:

@majodev
majodev / handlemdtest.hbs.md.text
Last active August 29, 2015 14:06
Metalsmith plugin to complile handlebars files within src with current meta
<!--- filename: handlemdtest.hbs.md -->
---
title: HandlebarsCombiMarkdown
customWorld: Universe
---
This file tests if markdown and handlebars could play together in the same file.
Hallo {{customWorld}}!
@majodev
majodev / capture.js
Created July 22, 2014 17:21
Capture screenshots (png) from multiple sites with phantomjs
// How to: save as capture.js and run with "phantomjs capture.js"
// Setup by modifying URLS, PAGE_WIDTH AND PAGE_HEIGHT constants!
// Hint: set PAGE_WIDTH or PAGE_HEIGHT to 0 to capture full page!
// modified version of script at http://www.cameronjtinker.com/post/2011/09/26/Take-Screenshot-of-all-HTML-documents-in-a-folder-using-PhantomJS.aspx
var PAGE_WIDTH = 960;
var PAGE_HEIGHT = 640;
var URLS = [
"http://github.com",