Skip to content

Instantly share code, notes, and snippets.

View mjnbrn's full-sized avatar

Ben mjnbrn

View GitHub Profile

Keybase proof

I hereby claim:

  • I am mjnbrn on github.
  • I am mjnbrn (https://keybase.io/mjnbrn) on keybase.
  • I have a public key whose fingerprint is 76F8 762B 7907 6DFC B9AB 83BD 9F7C 2140 89C4 63A4

To claim this, I am signing this object:

@mjnbrn
mjnbrn / text_menu.ps1
Last active August 22, 2021 00:25 — forked from hapylestat/text_menu.ps1
Powershell text based menu that makes you punch your selection in
# Resize Function
# https://blogs.msmvps.com/russel/2017/04/28/resizing-the-powershell-console/
# Thank Charlie Russel!!!
function ResizeMeSenpai {
[CmdletBinding()] Param(
[Parameter(Mandatory = $False, Position = 0)]
[int] $Height = 40,
[Parameter(Mandatory = $False, Position = 1)]
[int] $Width = 120 )
$Console = $host.ui.rawui
@mjnbrn
mjnbrn / notes.py
Last active October 12, 2021 04:55
A silly notetaking app
from sqlalchemy.ext.declarative import declarative_base
import argparse
from sqlalchemy import Column, Integer, String
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
engine = create_engine('sqlite:///notes.db')
Base = declarative_base()
class Notes(Base):
@mjnbrn
mjnbrn / Take-Note.ps1
Last active October 14, 2021 04:25
python notes app that sends your note to a Splunk instance via HEC
function Take-Note{
[CmdletBinding()]
param (
[Parameter()]
[String]$desc,
[String]$course= "life",
[String]$book= "0",
[String]$page= "0",
[String[]]$topic= "General"
@mjnbrn
mjnbrn / gratitude.ps1
Last active March 5, 2022 05:26
I am Grateful that I am not Normal
param (
[string[]]$Gratefuls
)
begin {
$Gratefile = "C:\code\grateful.log"
if (-not (Test-Path $Gratefile)) {
$null = New-Item -ItemType file -Path $Gratefile -Force
}
$Timestamp = (Get-Date -Format "yyyy-MM-ddTHH:mmzzzz")
@mjnbrn
mjnbrn / find-wordle.ps1
Created May 30, 2022 03:55
this function helps you solve wordle puzzles.
function find-wordle {
[CmdletBinding()]
param (
[Parameter(Position = 0)]
[string]$yes_letters,
[Parameter(Position = 1)]
[string]$maybe_letters,
[Parameter(Position = 2)]
[string]$no_letters
)