Skip to content

Instantly share code, notes, and snippets.

View MattiasFestin's full-sized avatar

Mattias Festin MattiasFestin

View GitHub Profile
Add-Type -AssemblyName System.Speech; $ss = New-Object -TypeName System.Speech.Synthesis.SpeechSynthesizer; $ss.Rate = 1.2; $ss.Speak('There was a catastrophic cyber attack recently. All the data was encrypted.... The government is still looking for the hacker. They think he ran some ware.');
@MattiasFestin
MattiasFestin / model.rs
Last active April 10, 2020 14:08
diesel custom types
#[derive(Queryable, Insertable, AsChangeset)]
pub struct Transaction {
pub id: uuid::Uuid,
pub created: SystemTime,
pub modified: SystemTime,
pub deleted: Option<SystemTime>,
pub row_version: i64,
pub transaction_type_id: i64,
pub transaction_direction_id: i64,