Skip to content

Instantly share code, notes, and snippets.

Avatar

Ben mjnbrn

View GitHub Profile
@mjnbrn
mjnbrn / Take-Note.ps1
Last active Oct 14, 2021
python notes app that sends your note to a Splunk instance via HEC
View Take-Note.ps1
function Take-Note{
[CmdletBinding()]
param (
[Parameter()]
[String]$desc,
[String]$course= "life",
[String]$book= "0",
[String]$page= "0",
[String[]]$topic= "General"
@mjnbrn
mjnbrn / notes.py
Last active Oct 12, 2021
A silly notetaking app
View notes.py
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 / text_menu.ps1
Last active Aug 22, 2021 — forked from hapylestat/text_menu.ps1
Powershell text based menu that makes you punch your selection in
View text_menu.ps1
# 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
View keybase.md

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: