Skip to content

Instantly share code, notes, and snippets.

View borchsenius's full-sized avatar

Andreas borchsenius

  • 40411C
  • Copenhagen
View GitHub Profile
@borchsenius
borchsenius / app.component.ts
Last active September 14, 2017 17:11
Angular 2 meets Openlayers 3
import {Component, OnInit} from 'angular2/core';
declare var ol: any;
@Component({
selector: 'my-map-app',
template: `<h1>My first openlayers 3 Angular 2 App</h1>
<div id="map" class="map"></div>
`
})
@borchsenius
borchsenius / app.component.ts
Created January 21, 2016 09:40
angular 2 meets openlayers 3, with data and controls
import {Component} from 'angular2/core';
declare var ol: any;
@Component({
selector: 'my-map-app',
template: `<h1>My first openlayers 3 Angular 2 App with data</h1>
<p id="myposition"></p>
<div id="map" class="map"></div>
@borchsenius
borchsenius / animation_openlayers.html
Last active January 30, 2017 09:08
Animation Openlayers3
<!DOCTYPE html>
<html>
<head>
<title>Marker Animation</title>
<link rel="stylesheet" href="https://openlayers.org/en/v3.20.1/css/ol.css" type="text/css">
<script src="https://openlayers.org/en/v3.20.1/build/ol.js"></script>
</head>
<body>
<div id="map" class="map"></div>
<label for="speed">
@borchsenius
borchsenius / dns-report.sh
Last active December 18, 2019 14:36
Script for doing various domain queries i.e. http get, a, mx spf, dmarc and DNSsec for a list of domains and generate a csv-report-file.
#!/bin/bash
# ▛ ▜
# The dns-report script takes a file containing a list of domainnames and does a suite of DNS queries for each.
# HTTP GET
# DNS A and MX record
# DNS TXT spf & _dmarc record
# DNSKEY used when enabling DNSsec.
# Link to DNSsec validation via verisign-labs
#
# usage $ dns-report.sh a_file_with_domains
@borchsenius
borchsenius / sweden-budbee-home-coverage-zip.py
Last active September 20, 2022 13:46
BudBee's coverage in sweden by zip codes. Just in case you don't have an API key at hand
budbee = {
11123 : "Stockholm North",
11124 : "Stockholm North",
11134 : "Stockholm North",
11136 : "Stockholm North",
11137 : "Stockholm North",
11138 : "Stockholm North",
11139 : "Stockholm North",
11140 : "Stockholm North",
11145 : "Stockholm North",