Skip to content

Instantly share code, notes, and snippets.

apankrat /
Last active June 4, 2024 16:57
Bulk-check expiry dates and issuers of website SSL certificates
#! /bin/bash
# add your sites here, one per line
# prepend # to temporarily exclude an entry
apankrat / HowTo-wss-ios-self-signed-certs.txt
Last active October 24, 2022 14:01
Securing websocket connections on iOS with self-signed certificates
Accessing a website that uses a self-signed certificate using Mobile Safari
will throw a couple of warnings but will ultimately give an option for
temporarily accepting the certificate and then using the site as usual.
The certificate can also be installed as a system-wide "Security Profile"
on an iDevice; that is, manually added to the trusted certificate list.
This will eliminate the warnings and make a self-signed certificate look
and feel as a certificate issued by a trusted CA.
This is done exposing cert's file (.pem or .crt) via the website itself,
* Copyright (c) 2005 Applied Networking Inc. All rights reserved.
* This program is free software; you can redistribute it and/or modify
* it under the terms set out in the LICENSE.tuncfg file, which is
* included in Hamachi Client distribution.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
apankrat / time-it.bat
Created February 7, 2020 22:04
To time execution of windows shell commands, e.g. "time-it ping"
@echo off
call :reset
call :clock
%* > nul
call :clock
call :render
exit /B
* Given a log line that starts like this:
* 2014.01.27 19:35:51.639 (UTC-1) 3 1 ...
* the following takes about ~60 ms per call in a release build
* produced by a VC++ 2017 using its stock CRT (v141):
apankrat / readme.txt
Last active August 30, 2021 02:45
μGiffer 0.9.10 (preview)
-- μGiffer / preview release -- (213576 bytes)
------------------------> 32-bit/uGiffer.exe (111488 bytes)
------------------------> 64-bit/uGiffer.exe (123264 bytes)
Both exe files carry an EV signature of IO Bureau SA.
For details see here ->
* This will execute and exit cleanly despite of
* dereferencing a zero pointer in line 12 ...
#include <windows.h>
#include <stdio.h>
void __stdcall OnTimer(HWND, UINT, UINT_PTR, DWORD)