Skip to content

Instantly share code, notes, and snippets.

View squashbrain's full-sized avatar

Chris McClenny squashbrain

  • WideOrbit Inc
  • Jasper, AL
View GitHub Profile
@squashbrain
squashbrain / aes-gcm.go
Last active February 12, 2023 22:36
AES GCM Encryption/Decryption
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"fmt"
"io"
)
@squashbrain
squashbrain / DriveSpaceSvc.pas
Created September 27, 2020 20:02
Drive Space Monitor Service
unit DriveSpaceSvc;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.SvcMgr, Vcl.Dialogs;
const
cPushoverURL = 'https://api.pushover.net/1/messages.json';
cConfigFileName = 'DriveMonitor.ini';