Skip to content

Instantly share code, notes, and snippets.

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

Jozef Gajdoš harrison314

🏠
Working from home
View GitHub Profile
@harrison314
harrison314 / ShamirGenerator.cs
Created November 27, 2023 21:10
Shamir Secret Sharing c# using BouncyCastle
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
using Org.BouncyCastle.Asn1;
using Org.BouncyCastle.Math;
using Org.BouncyCastle.Security;
using Org.BouncyCastle.Utilities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Raven.Client.Documents.Indexes;
using Raven.TestDriver;
namespace Area52.RavenDbTests;
@harrison314
harrison314 / chrismas_lights.ino
Created January 16, 2022 16:30
Chrismas tree lights with RGB led and ESP8266
#include <Arduino.h>
#include <math.h>
#define LED_W 14
#define LED_R 15
#define LED_G 13
#define LED_B 12
#define BUZZER 5
#define RELAY 16
#define DTH_DATA 4
@harrison314
harrison314 / build.ps1
Created December 4, 2018 11:17
Prototype of Cake build.ps1 with security checks
##########################################################################
# This is the Cake bootstrapper script for PowerShell.
# This file was downloaded from https://github.com/cake-build/resources
# Feel free to change this file to fit your needs.
##########################################################################
<#
.SYNOPSIS
This is a Powershell script to bootstrap a Cake build.