Skip to content

Instantly share code, notes, and snippets.

View martinvirtel's full-sized avatar

Martin Virtel martinvirtel

View GitHub Profile
@martinvirtel
martinvirtel / .python-version
Last active November 7, 2017 18:11
Ugly JMESPath hack: How to access a parent property
3.6.2
@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 / README.md
Created August 25, 2017 15:05
html-clipboard

Hello

@martinvirtel
martinvirtel / README.md
Created August 25, 2017 15:05
html-clipboard

Hello

@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 / .gitignore
Last active January 27, 2017 16:37
Custom Analysis of Cookie Log
data/
rawdata/
@martinvirtel
martinvirtel / README.md
Last active January 27, 2017 14:46
Wordpress + Apache: Extend lifetime of login cookies

Wordpress + Apache: Extend Cookie Lifetime

In standard Wordpress, your login will be saved for 48 hours, or 14 days if you click "remember me" on login. This configuration snippet allows you to extend that time to 30 days.

For this to work, your Wordpress has to live inside an Apache server, and the apache server has to have mod_headers activated. Then, include the file extend_wordpress_cookie_lifetime.conf into the configuration of your Apache server using the Include directive.

@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 / Makefile
Last active July 21, 2017 18:06
command line data science: UNIX filters for grouping, counting, CSVing text files
REMOTE := mvirtel@vm-hetzner:/home/mvirtel/projekte/
.PHONY: deploy
deploy :
rsync -v ./*.py $(REMOTE)