Skip to content

Instantly share code, notes, and snippets.

blackskye-sx / MD5.vb
Created Mar 30, 2020 — forked from ken-itakura/MD5.vb
Excel, Access VBA Function to create MD5 for text
View MD5.vb
Public Function MD5Hex(textString As String) As String   
Dim enc   
Dim textBytes() As Byte   
Dim bytes   
Dim outstr As String       
Set enc = CreateObject("System.Security.Cryptography.MD5CryptoServiceProvider")   
textBytes = textString   
bytes = enc.ComputeHash_2((textBytes))   
blackskye-sx /
Last active Mar 18, 2020 — forked from todgru/
Installing Tmux on Dreamhost tmux dreamhost
blackskye-sx /
Created Nov 2, 2019 — forked from davisford/
Setup avahi-daemon on Ubuntu for so you can reach hostname `ubuntu.local` from host OS
sudo apt-get install avahi-daemon avahi-discover avahi-utils libnss-mdns mdns-scan
View gist:31a09b10e81d26ee6c49e88d7a3456e8
Function GenGuid() As String
Dim TypeLib As Object
Dim guid As String
Dim guid2 As String
Set TypeLib = CreateObject("Scriptlet.TypeLib")
guid = Left$(TypeLib.guid, 38)
Set TypeLib = Nothing
' format is {24DD18D4-C902-497F-A64B-28B2FA741661}
guid = Replace(guid, "{", "")