Skip to content

Instantly share code, notes, and snippets.

View MircoBabin's full-sized avatar

Mirco Babin MircoBabin

  • The Netherlands
View GitHub Profile
@MircoBabin
MircoBabin / SvgToWindowsExecutableIcon.bat
Created March 8, 2024 15:53
Convert SVG to Windows executable icon using ImageMagick
@echo off
setlocal
rem SvgToWindowsExecutableIcon.bat
rem Windows/OS used: Windows/11
rem ----------------------------------------------------
rem
rem Version 1.0 - released on friday 8 march 2024
rem
rem ----------------------------------------------------
@MircoBabin
MircoBabin / httpsCertificateLookup.php
Last active September 15, 2023 06:02
Check https certificate
<?php
/*
MIT license
Copyright (c) 2022 Mirco Babin
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
@MircoBabin
MircoBabin / NetworkTimeProtocolClient.php
Created October 16, 2022 18:04
PHP ntp client for retrieving time via Network Time Protocol (ntp, sntp, RFC 1769, RFC 4330) - Php 5.4.44 and later - sunday 16 october 2022
<?php
/*
MIT license
Copyright (c) 2022 Mirco Babin
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
@MircoBabin
MircoBabin / index.html
Created October 21, 2020 08:16
Convert IIS web.config to Apache .htaccess
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>IIS web.config to Apache .htaccess rule translator</title>
<style>
#xmldoc {
width: 100%;
height: 200px;
@MircoBabin
MircoBabin / ReadingPortableExecutable_PE_header.cs
Last active June 3, 2021 13:02 — forked from augustoproiete/ReadingPortableExecutable_PE_header.cs
Reading the Portable Executable (PE) header in C# - reading Import Directory Table to e.g. determine Microsoft VC Runtime version
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
namespace peheader
{
//https://gist.github.com/caioproiete/b51f29f74f5f5b2c59c39e47a8afc3a3