Skip to content

Instantly share code, notes, and snippets.

View Comfie's full-sized avatar
🏠
Working from home

Comfort Comfie

🏠
Working from home
  • Randburg
View GitHub Profile
@Comfie
Comfie / regex.txt
Created December 9, 2021 19:35 — forked from jamesdube/regex.txt
Zimbabwe National ID Regex
# 00000000X00
/([0-9]{8,9}[a-z,A-Z][0-9]{2})/g
# 00-000000-X-00 dashes are optional
/([0-9]{2}-?[0-9]{6,7}-?[a-z,A-Z]-?[0-9]{2})/g
# 00-000000 X00 dash is required, space before letter is optional
/([0-9]{2}-[0-9]{6,7}\s?[a-z,A-Z][0-9]{2})/g
@Comfie
Comfie / gsuite-less-than-secure.md
Created February 17, 2022 06:17 — forked from M3ales/gsuite-less-than-secure.md
Google GSuite Enable Less Than Secure

Google GSuite Enable Less Than Secure Apps

Introduction

For when you need to use gmail smtp without OAuth or want to link up a less than secure app. This specifically details the extra steps needed for GSuite accounts.

Steps

  • Login to a Domain Administrator Account
@Comfie
Comfie / DynamicSqlDataReader.cs
Created November 9, 2022 13:16 — forked from jchadwick/DynamicSqlDataReader.cs
A helper class to read SQL results into a dynamic object
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Dynamic;
public class DynamicSqlDataReader
{
private static dynamic ToExpando(IDataRecord record)
{