Skip to content

Instantly share code, notes, and snippets.

View martinvirtel's full-sized avatar

Martin Virtel martinvirtel

View GitHub Profile
@martinvirtel
martinvirtel / README.md
Last active December 10, 2023 07:46
How to connect Ubuntu 16.04 with @DB_bahn's WifiOnIce

HOWTO: wifionice.de on Ubuntu 16.04

My Ubuntu 16.04 did not work with @DB_Bahn's Wifi network out of the box. Here's what I did:

Step 1 Connect to the WLAN wifionice.

Step 2. Fire up your browser and open http://www.wifionice.de - at this point, I got an "unable to connect" message.

Step 3.. Open up a terminal (Ctrl-Alt-T on Ubuntu) and find out the IP address of www.wifionice.de

@martinvirtel
martinvirtel / krpano-to-marzipano.config
Last active May 2, 2023 19:28
Generate tile files for marzipano.net panorama viewer with krpanotools from krpano.com
# Generate tile files that can be used with https://www.marzipano.net
# This is a config file for https://krpano.com/tools/kmakemultires/config/ -
flash=false
html=false
xml=false
panotype=autodetect
tilesize=512
@martinvirtel
martinvirtel / Makefile
Last active April 11, 2022 09:39
dpa digitalwires: choose single rubric_name
# File generated from: ${SOURCEFILE}
SHELL := /bin/bash
.SHELLFLAGS := -ecuo pipefail
.ONESHELL:
.PHONY: test, view-failed
test: ## list all failed examples on STDOUT
@martinvirtel
martinvirtel / README.md
Last active January 17, 2022 02:27
embed tracking pixel

Example Tracking Pixel: Tickaroo

The lengthy <img> tag in the index.html contains a simple tracking application that 1% of the time pings a remote server which in turn removes additional data that would help with de-anonymizing, such as the URL and the exact timestamp, before storing the ping. The parameters recorded are

  • l document.location
  • r document.referrer
  • p partner, in this example Tickaroo
  • _d sample rate. Only one in _d pings (selected randomly) will get sent. In other words: Date.now() % _d has to be 0, otherwise the ping does not get sent.

Please also see https://dataless.dpa-prototype.de

@martinvirtel
martinvirtel / renew-letsencrypt.sh
Created March 31, 2017 12:18
Letsencrypt: Send E-Mail if certificate validity is less than 10 days
#! /bin/bash
LOG=/tmp/letsencrypt-renewal-attempt
/usr/local/sbin/certbot-auto renew >$LOG 2>&1
service nginx reload >>$LOG 2>&1
#
# Check SSL Certificate is valid for at least $DAYS
@martinvirtel
martinvirtel / index.html
Created January 31, 2020 17:46
BW Embed Code
<iframe src='https://dpa.liveblog.pro/dpa/blogs/5d8b13fb092f18b8145cc638/5e1ec090768b632ee91dc7d8/index.html' onload='var lb_frame = this; this.contentWindow.postMessage({type: "analytics", payload: JSON.stringify(lb_frame.dataset)}, lb_frame.src);' allowfullscreen frameborder='0' width='100%' height='1000px' style='overflow: hidden; border: 0; min-width: 320px;'></iframe>
@martinvirtel
martinvirtel / README.md
Last active January 23, 2019 11:11
skills-ratings
@martinvirtel
martinvirtel / README.md
Last active May 12, 2018 13:12
google draw nav

Creating a Google Draw Navgation

@martinvirtel
martinvirtel / README.md
Last active April 11, 2018 13:49
Embed Frame Test

Basic HTML for iframe testing

URL Paramters:

As <iframe> attributes:

  • src
  • allowfullscreen
  • width
  • height
  • scrolling
@martinvirtel
martinvirtel / README.md
Last active March 14, 2018 08:20
vega 3.1 fold issue

fold data transform seems to break things