Skip to content

Instantly share code, notes, and snippets.

View martinvirtel's full-sized avatar

Martin Virtel martinvirtel

View GitHub Profile
@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__
.PHONY: update-renew-order
all :
@echo Please select a specific target
update-renew-order :
ifdef DB_PASSWORD
mysql --user=$(DB_USER) --password=$(DB_PASSWORD) $(DB_DATABASE) <renew_order.sql
else
$(info Please source ../reports/.credentials to define DB_PASSWORD etc)
@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 / 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 / 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)