Skip to content

Instantly share code, notes, and snippets.

View R0Wi's full-sized avatar

Robin Windey R0Wi

  • KARL STORZ SE & Co. KG
  • Tuttlingen (Germany)
View GitHub Profile
@R0Wi
R0Wi / Main.cs
Last active December 6, 2023 05:36
Simple .NET WebView2 DevTools helper to make it possible to invoke async Javascript code (see https://github.com/MicrosoftEdge/WebView2Feedback/issues/416#issuecomment-1073533384)
public static async Task Main()
{
/*
* Use this codesnippet inside your WinForm/WPF WebView2 application
*/
var wv2 = new WebView2();
await wv2.EnsureCoreWebView2Async();
var devTools = new WebView2DevTools(wv2.CoreWebView2);
// Some result vom Javascript
@R0Wi
R0Wi / mergeClover.js
Last active December 5, 2021 20:11
Node script for merging different Clover XML coverage files from different sources like PHPUnit and Jest
/**
* @copyright Copyright (c) 2021 Robin Windey <ro.windey@gmail.com>
*
* @author Robin Windey <ro.windey@gmail.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
@R0Wi
R0Wi / mysql_backup.sh
Last active November 1, 2021 11:48
Bash script to backup all running MySQL docker instances via mysqldump
#!/bin/bash
#
# Script to backup all running mysql docker instances
#
# Usage:
# Set the BACKUP_TARGET_DIR variable and call the script. Note that
# the mysql containers must either have set the MYSQL_ROOT_PASSWORD environment variable
# or the MYSQL_DATABASE MYSQL_USER MYSQL_PASSWORD environment variables.
#