Skip to content

Instantly share code, notes, and snippets.

@mario-fliegner
mario-fliegner / ffw_corona-ampel_landkreis_7-tage-inzidenz.html
Last active November 23, 2022 20:04
"Corona Ampel" HTML5-Template für die Anzeige des 7-Tage-Inzidenzwertes eines beliebigen Landkreises. Daten via Rest-API vom RKI.
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width = device-width, initial-scale = 1.0" />
<meta name="description" content="Inzidenzwert Testseite">
<title>Corona-Ampel</title>
<style>
.fett{
@Jaykul
Jaykul / Mandelbrot.psm1
Last active December 26, 2023 11:41
ASCII Mandelbrots in the PowerShell console
using namespace System.Numerics
class Mandelbrot : System.Collections.IEnumerator {
# From the constructor?
# Sadly, PowerShell doesn't support optional parameters
[double]$HorizontalViewOffset = -0.5
[double]$VerticalViewOffset = 0
$Columns = 120
$Rows = 28
$ZoomViewDistance = 6.75
@so0k
so0k / Query-Registry.ps1
Last active June 27, 2020 14:19
Query a docker registry v2/_catalog endpoint from powershell
[CmdletBinding()]
Param(
[Parameter(Mandatory=$True,Position=1)]
$Filter=".*",
#TODO: handle https & no basic auth as well..
$RegistryEndpoint = "registry.mysite.com",
$UserName = "user",
$Password = "password"
)
@2bard
2bard / mitmproxy cheat sheet
Created February 13, 2015 19:44
mitmproxy cheat sheet
Movement:
j, k down, up
h, l left, right (in some contexts)
space page down
pg up/down page up/down
arrows up, down, left, right
@stuartpreston
stuartpreston / Convert-Base64EncodedDerToPem.sh
Created February 3, 2015 14:52
[OpenSSL] Convert base64 encoded DER to PEM format (e.g. to convert Microsoft Azure Management Certificate to .PEM format for cross-platform compatibility)
openssl base64 -d -A -in mgmtcert.pfx -out decoded.der
openssl pkcs12 -in decoded.der -out mgmtcert.pem -nodes