Skip to content

Instantly share code, notes, and snippets.

View bepri's full-sized avatar

Imani Pelton bepri

  • Canonical
  • Indiana
  • 15:58 (UTC -05:00)
View GitHub Profile
@bepri
bepri / Makefile
Created February 28, 2024 19:46
Minimal-configuration "universal" makefile for medium-scale C/C++ projects
# "Universal" Makefile
# Imani Pelton (@bepri on GitHub)
# A plug-n-play Makefile for any medium-scale C/C++ project. Probably not as powerful as CMake, but sufficient if you don't want to use all that.
# Uses a target directory with object file outputs to speed up compilation times on multi-file projects
# Modify these for your program
COMP = g++
COMPFLAGS = -g -Wall -Wpedantic -Werror -D DEBUG
PROGNAME = prog
@bepri
bepri / bwlogin.py
Last active December 13, 2023 14:12
Bitwarden script to log in & retrieve a password
#!/usr/bin/env python3
"""
INTRO:
This is a Python script to log in & retrieve your SSH keys from Bitwarden. It will save your session token to a
local file and invalidate that file after a certain timeframe. This script will NOT start your SSH agent for you,
but it will expect that your SSH agent is already running and properly configured. If in doubt, run the following
command in your shell before this script to start and configure an agent first: `source <(ssh-agent)`
USAGE: