Skip to content

Instantly share code, notes, and snippets.

View martinvirtel's full-sized avatar

Martin Virtel martinvirtel

View GitHub Profile
@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 / 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 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 / 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 March 14, 2018 08:20
vega 3.1 fold issue

fold data transform seems to break things

@martinvirtel
martinvirtel / backup-cronjob.sh
Last active March 5, 2018 20:53
Backup with S3 and WP All In One Migration Plugini
#!/bin/bash
#
# needs working aws cli
# needs working credentials for wordpress-backup profile to access $BACKUP_DST in ~/.aws/credentials
# needs this plugin: https://wordpress.org/plugins/all-in-one-wp-migration/
export KEEP_FOR_DAYS=+10
export WORDPRESS_NAME="dev.versicherungsmonitor.de"
export BACKUP_DST=s3://bucketname/wordpress_backups/$WORDPRESS_NAME/
@martinvirtel
martinvirtel / README.md
Last active February 22, 2018 17:26
dones en grupos

Análisis de los Juícios Sumarísimos en Catalunya

@martinvirtel
martinvirtel / feed.json
Created January 18, 2018 13:13
alexa flash briefing demo feed
{
"uid": "urn:uuid:1335c695-cfb8-4ebb-abbd-80da344efa6b",
"updateDate": "2016-05-23T00:00:00.0Z",
"titleText": "Amazon Developer Blog, week in review May 23rd",
"mainText": "Meet Echosim. A new online community tool for developers that simulates the look and feel of an Amazon Echo.",
"redirectionUrl": "https://developer.amazon.com/public/community/blog"
}
@martinvirtel
martinvirtel / .gitignore
Last active January 4, 2018 11:59
Mass Delete Imap Email (Python3 Script)
credentials.py
__pycache__