Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeroen Wiert Pluimers jpluimers

  • wiert.me
  • Amsterdam, The Netherlands
View GitHub Profile
@jpluimers
jpluimers / woonveilig.straatnaam-met-diacrieten.md
Created Jun 6, 2021
Woonveilig postcode check geeft straatnaam met diakriet, maar user-interface validatie keurt dat af.
View woonveilig.straatnaam-met-diacrieten.md

Postcode/huisnummer URL:

https://www.woonveilig.nl/engine/woonveilig__website__shop__order__address_c?building=1&zip=2717+BA

Validation result:

{"street":"C\u00e9sar Franckrode","houseNumber":1,"houseNumberAddition":"","postcode":"2717BA","city":"Zoetermeer","municipality":"Zoetermeer","province":"Zuid-Holland","rdX":91967,"rdY":453852,"latitude":52.06936633,"longitude":4.46788106,"bagNumberDesignationId":"0637200000256226","bagAddressableObjectId":"0637010000256227","addressType":"building","purposes":["residency"],"surfaceArea":103,"houseNumberAdditions":[""]}
@jpluimers
jpluimers / logon-fields-page-fragment.html
Created May 29, 2021
The logon html form fields (password, button) for Fritz!Box
View logon-fields-page-fragment.html
<form method="post" action="index.lua" id="loginForm" class="loginForm">
<div class="formular">
<p>Please log in using your password.</p>
<label for="uiPass">Password</label>
<input type="password" tabindex="2" id="uiPass" name="uiPass">
<div id="uiLoginError" class="hidden">
<p class="error_text">Login failed.</p>
<p class="error_text">Did you make a typing error, or do you not have the right to access this area?</p>
<p id="uiWait" class="error_text"></p>
</div>
@jpluimers
jpluimers / logon-fields-page-fragment.html
Created May 29, 2021
The logon html form fields (hostname, username, password) for ESXi
View logon-fields-page-fragment.html
<div id="loginForm">
<p class="loginRow ng-hide" ng-show="devmode || electron">
<label id="host-label" class="loginLabel">Hostname
<input id="hostname" ng-disabled="!devmode" autocomplete="off" aria-labelledby="host-label" tabindex="1" ng-class="{loginFailed: loginFailed}" class="margeTextInput ng-pristine ng-untouched ng-valid ng-not-empty" type="text" ng-model="credentials.hostname" ng-model-options="{
updateOn: 'blur'
}" disabled="disabled">
</label>
</p>
View renew-letsencrypt-certificates.sh
#!/bin/bash
#
# renew-letsencrypt-certificates.sh DOMAIN [EMAIL]
#
# Copy Let's Encrypt SSL certs from a remote public facing web server to local filesystem
# Look for changes, if any change, restarts the web service
# Useful for using Let's Encrypt with local internal servers, with custom DNS.
# Working "mail" command needed for email alerts
#
View PipeServer.cs
class PipeServer
{
static
int
Main(string[] args)
{
if(args.Length < 2
||(System.String.Compare(args[0], "in") != 0
&& System.String.Compare(args[0], "out") != 0)) {
System.Console.WriteLine("Usage: PipeServer <in | out> <process> <args>");
@jpluimers
jpluimers / get.guest.log
Created May 15, 2021
ESXi output of `vim-cmd vmsvc/get.guest 14` for an OpenSuSE Linux virtual machine
View get.guest.log
Guest information:
(vim.vm.GuestInfo) {
toolsStatus = "toolsOk",
toolsVersionStatus = "guestToolsUnmanaged",
toolsVersionStatus2 = "guestToolsUnmanaged",
toolsRunningStatus = "guestToolsRunning",
toolsVersion = "10304",
toolsInstallType = "guestToolsTypeOpenVMTools",
toolsUpdateStatus = (vim.vm.GuestInfo.ToolsUpdateStatus) null,
View hotcloneBOXPC8888vm.sh
#!/bin/sh
######################################################################################
# Create a clone of a running machine on ESXi, without vCenter services available
# Disable networkcards on connecting at startup
# Start the cloned VM
#
# Created by : Jeroen van Schelt
# Creation date : jan 2015
@jpluimers
jpluimers / UnicodeTicksAndCrosses.dpr
Created May 5, 2021
a few Unicode code points that can be used for Ticks and Crosses; all are part of the Miscellaneous Symbols Block: https://www.fileformat.info/info/unicode/block/miscellaneous_symbols/list.htm
View UnicodeTicksAndCrosses.dpr
program UnicodeTicksAndCrosses;
// a few Unicode code points that can be used for Ticks and Crosses
// all are part of the Miscellaneous Symbols Block
// https://www.fileformat.info/info/unicode/block/miscellaneous_symbols/list.htm
var
Symbol: Char;
begin
Symbol := #$2611; // Unicode U+2611 ☑
Symbol := #$2713; // Unicode U+2713 ✓
Symbol := #$2714; // Unicode U+2714 ✔
@jpluimers
jpluimers / ESXi-where-are-my-log-files-stored.txt
Last active Apr 10, 2021
ESXi: where are my log files actually stored? Actually, most of them are in `/scratch/log` which points to a hidden `.locker` directory in a datastore.
View ESXi-where-are-my-log-files-stored.txt
ls -al / /var/ /var/log/ /var/run/ /scratch/ /scratch/log/ | grep "/\|log\|-\>"
/:
lrwxrwxrwx 1 root root 49 Apr 4 18:16 altbootbank -> /vmfs/volumes/9f9082ef-07ac6919-9a37-db55b54875e7
lrwxrwxrwx 1 root root 49 Apr 4 18:16 bootbank -> /vmfs/volumes/15e804ed-c0915571-a22f-3fba00b35851
lrwxrwxrwx 1 root root 6 Apr 4 18:16 locker -> /store
lrwxrwxrwx 1 root root 29 Apr 4 18:16 productLocker -> /locker/packages/vmtoolsRepo/
lrwxrwxrwx 1 root root 4 Mar 3 23:59 sbin -> /bin
lrwxrwxrwx 1 root root 57 Apr 4 18:16 scratch -> /vmfs/volumes/5ce2d440-72311161-75c5-0025907d9d5c/.locker
lrwxrwxrwx 1 root root 49 Apr 4 18:16 store -> /vmfs/volumes/60689c5b-f203ef10-b54a-0025907d9d5c
lrwxrwxrwx 1 root root 18 Mar 3 23:59 vmupgrade -> /locker/vmupgrade/
@jpluimers
jpluimers / delimited vim-cmd help for each vmsvc command.txt
Created Apr 7, 2021
Delimited `vim-cmd help` for each `vmsvc` command
View delimited vim-cmd help for each vmsvc command.txt
-----
help for vim-cmd help vmsvc/acquiremksticket
Usage: acquiremksticket vmid
Acquire mks ticket.
-----
help for vim-cmd help vmsvc/acquireticket