Skip to content

Instantly share code, notes, and snippets.

@HenkPoley
HenkPoley / WokeGPT.1.md
Created January 17, 2023 05:08
Write me a story by WokeGPT

Once upon a time in a land not so far away, there was a community of people who lived in harmony with one another. They respected the earth and all its inhabitants, and they worked together to create a sustainable way of life.

One day, a group of outsiders arrived in the community, bringing with them new ideas and technologies that threatened to disrupt the balance that the community had worked so hard to maintain. Some of the community members welcomed the outsiders with open arms, eager to learn from them and incorporate their ideas into their way of life.

But others were more skeptical, seeing the outsiders as a threat to their way of life. They feared that their culture and traditions would be lost if they allowed themselves to be influenced by the outsiders.

As the debate raged on, the community leader, who was known as "WokeGPT", stepped forward. WokeGPT had always been an advocate for progress and change, but they also understood the importance of preserving the community's heritage.

"We must not b

#!/usr/local/bin/python3
import png # pip3 install pypng
import colorsys # h_ue,s_aturation,v_alue
filename = "rainbow.png"
# MacBook1,1 - MacBook7,1: 1280x800
# iMac 27" 5K: 5120x2880
# borderless A4 @ 600ppi: 4960x7016 -> https://www.papersizes.org/a-sizes-in-pixels.htm
# Aomei Partition Assistant
#at top of script
if (!
#current role
(New-Object Security.Principal.WindowsPrincipal(
[Security.Principal.WindowsIdentity]::GetCurrent()
#is admin?
)).IsInRole(
[Security.Principal.WindowsBuiltInRole]::Administrator
@HenkPoley
HenkPoley / # mbedtls - 2020-09-08_06-54-10.txt
Created September 8, 2020 04:58
mbedtls on macOS 10.15.6 - Homebrew build logs
Homebrew build logs for mbedtls on macOS 10.15.6
Build date: 2020-09-08 06:54:10
@HenkPoley
HenkPoley / # mbedtls - 2020-09-08_06-28-50.txt
Created September 8, 2020 04:30
mbedtls on macOS 10.15.6 - Homebrew build logs
Homebrew build logs for mbedtls on macOS 10.15.6
Build date: 2020-09-08 06:28:50
@HenkPoley
HenkPoley / 2019-nCoV_quadratic_regression.py
Last active February 6, 2020 20:37
2019-nCoV prediction
#!/usr/bin/env python
# Not meant to teach proper Python, or statistics, but it works
import warnings
import numpy
import scipy.stats
x = numpy.array([1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0])
y = numpy.array([4515.0, 5974.0, 7711.0, 9692.0, 11791.0, 14380.0, 17205.0, 20438.0, 24324.0, 28018.0])
@HenkPoley
HenkPoley / KEYDB.cfg
Last active July 16, 2021 08:28
KEYDB.cfg of 2017 september 2nd - 14:04:55, originally from http://labdv.com/aacs/ . downloaded from https://web.archive.org/web/20170902140455id_/http://www.labdv.com/aacs/KEYDB.cfg - you can use it with VLC 2.2.4 (not newer! - http://download.videolan.org/pub/videolan/vlc/2.2.4/ ) and libaacs.dll from https://vlc-bluray.whoknowsmy.name
; KEYDB.cfg
; 2017-09-02 16:04:54
;
; server: http://www.labdv.com/aacs
; processing keys: 18 (18 from doom9.org forum)
; host certificates: 8 (7 from doom9.org forum)
; disc VUK keys: 24010 keys for 23999 discs (0 from doom9.org forum)
; processing keys
| PK | 0x810827A76E5B2CC1685E3217A23E2186 ; DK_V01-V12
2014-12-24 14:22:17 +0100
./configure
-prefix
/usr/local/Cellar/qt5/5.4.0
-system-zlib
-qt-libpng
-qt-libjpeg
-confirm-license
-opensource
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Updated: 2010/12/05
// License: MIT
//
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it)
//
// Permission is hereby granted, free of charge, to any person