Skip to content

Instantly share code, notes, and snippets.

View brucevanhorn2's full-sized avatar
💭
I may be slow to respond.

Bruce M. Van Horn II brucevanhorn2

💭
I may be slow to respond.
View GitHub Profile
@brucevanhorn2
brucevanhorn2 / bvh-mt.omp.json
Created November 9, 2021 19:54
This is my version of the MT theme for Oh My Posh (gives you a fancy terminal window)
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": true,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "shell",
# sets up a PC for full stack boot camp at SMU
# assumes you have chocolatey installed
# https://chocolatey.org/
# at this point it doesn't install EVERYTHING, just the basics. no databases yet.
ssh-keygen -N <change-to-actual-password-before-running> -f C:\Users\<insert user name here>\.ssh\id_rsa
wsl --install -d Ubuntu-20.04
choco install -Force -y visualstudio2019buildtools
choco install -Force -y brave
choco install -Force -y git
choco install -Force -y vscode
@brucevanhorn2
brucevanhorn2 / bvh-windows-10-dev-setup.ps1
Last active May 10, 2022 17:21
Windows Dev Machine Setup
<#
This script is designed to automate the set up of developer machines at Clear Technologies for work on Visual Storage Intelligence.
It should be run on a Windows 10 computer. I usually run a de-bloat script first, then I run this one.
Basically it install chocolatey then uses it to install everything we need to do our work.
It's mostly an unattended install but if you want to repos towards the bottom to be checked out you should copy the generated key
to beanstalk while the script is paused.
#>
Set-ExecutionPolicy Bypass -Scope Process -Force;
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
Invoke-Expression((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
@brucevanhorn2
brucevanhorn2 / snakecoin-block.py
Created February 23, 2018 21:28 — forked from aunyks/snakecoin-block.py
The block structure for SnakeCoin.
import hashlib as hasher
class Block:
def __init__(self, index, timestamp, data, previous_hash):
self.index = index
self.timestamp = timestamp
self.data = data
self.previous_hash = previous_hash
self.hash = self.hash_block()
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd"
autoReload="true"
throwExceptions="false"
internalLogLevel="Off" internalLogFile="c:\temp\nlog-internal.log" >
<!-- optional, add some variabeles