Skip to content

Instantly share code, notes, and snippets.

View heijmerikx's full-sized avatar

Rutger Heijmerikx heijmerikx

View GitHub Profile
<template>
<div></div>
</template>
<script>
/**
* Docs that help here;
*
* https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-Draw.html
* https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html

Keybase proof

I hereby claim:

  • I am heijmerikx on github.
  • I am heijmerikx (https://keybase.io/heijmerikx) on keybase.
  • I have a public key ASBwhNbAzVwnJnO3qjbzIdTHSBQ8OskaQKUxjkNdSL4ZHwo

To claim this, I am signing this object:

@heijmerikx
heijmerikx / refactor.js
Last active October 15, 2017 13:15
Refactor node.js snippet
function prepareDoc(item) {
var obj = {
id: item.id,
hash: item.hash,
title: item.title,
account_id: item.AccountId,
text: item.body,
createdAt: item.created_at,
updatedAt: item.updated_at,
@heijmerikx
heijmerikx / README.md
Created June 16, 2016 09:01 — forked from blackjid/README.md
How configure your raspberry pi with dashing to have a awesome dashboard

Raspberry pi dashboard

This is what we did to setup a few dashboards at platanus

You'll need

  • Raspberry Pi
  • Dashing Service
  • Wifi stick (optional)
router.get('/', function(req, res, next) {
// recent articles
models.Blog
.findAll({
where: {
published: true
},
limit: 3,
order: [["createdAt","DESC"]],
@heijmerikx
heijmerikx / .eslintrc
Created October 1, 2015 09:12 — forked from cletusw/.eslintrc
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names
<div class="container">
<div class="row">
<div class="col-sm-6 col-md-4 col-md-offset-4">
<h1 class="text-center login-title">Sign in to continue to Bootsnipp</h1>
<div class="account-wall">
<img class="profile-img" src="https://lh5.googleusercontent.com/-b0-k99FZlyE/AAAAAAAAAAI/AAAAAAAAAAA/eu7opA4byxI/photo.jpg?sz=120"
alt="">
<form class="form-signin">
<input type="text" class="form-control" placeholder="Email" required autofocus>
<input type="password" class="form-control" placeholder="Password" required>
@heijmerikx
heijmerikx / Installing and configuring Postfix Dovecot Spamassasin.md
Last active June 5, 2018 00:33
Postfix Dovecot Spamassassin Roundcube installation/configuration

#Installing configuring Postfix/Dovecot/Spamassassin/Roundcube

I've documented the steps in short to help me reproduce all the steps. Published it here for improvement and as a reference for others. Of course feel free to comment to improve this document.

This Gist is quite big and not all details are fully explained. But if you're going to run a mailserver you should be able to fill in the missing parts. The most important are covered. But be sure to read up to understand the meaning of all the stuff you configure. Since I used a lot of references of other sources (See at the end) I left out a lot of explanation in this document.

Don't forget that I'm not a Postfix/Dovecot/Spamassasin pro either. I just got it working the way I wanted to.

  • Used Ubuntu 12.04 LTS.
  • Set a root password.
# graylog2-server REST URIs (one or more, comma separated) For example: "http://127.0.0.1:12900/,http://127.0.0.1:12910/"
graylog2-server.uris="http://[the ip address of your graylog2 server]:12900/"
# Learn how to configure custom logging in the documentation:
# http://support.torch.sh/help/kb/graylog2-web-interface/configuring-web-interface-logging
# Secret key
# ~~~~~
# The secret key is used to secure cryptographics functions. Set this to a long and randomly generated string.
# If you deploy your application to several instances be sure to use the same key!