Skip to content

Instantly share code, notes, and snippets.

@blackskye-sx
blackskye-sx / MD5.vb
Created March 30, 2020 19:23 — forked from ken-itakura/MD5.vb
Excel, Access VBA Function to create MD5 for text
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
blackskye-sx / _readme.md
Last active March 18, 2020 21:08 — forked from todgru/_readme.md
Installing Tmux on Dreamhost tmux dreamhost
@blackskye-sx
blackskye-sx / setup-avahi.sh
Created November 2, 2019 14:04 — forked from davisford/setup-avahi.sh
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
@blackskye-sx
blackskye-sx / gist:31a09b10e81d26ee6c49e88d7a3456e8
Created October 18, 2019 01:50 — forked from joehanna/gist:4eaa64d8e34e9d8e2646
Generate a GUID from VBA or VBScript
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, "{", "")