Skip to content

Instantly share code, notes, and snippets.

@cholmboe
cholmboe / pywrap.sh
Created October 31, 2024 11:33
A script that wraps Python scripts to manage requirements in a virtual environment.
#!/bin/bash
# This script wraps Python scripts in a virtual environment.
# It creates a virtual environment if one doesn't exist, installs dependencies,
# and runs the Python script with the same name as this wrapper. This is a hacky
# wrapper meant for your hacky scripts, for serious stuff you should manage
# dependencies seriously.
#
# Usage:
# 1. Create a Python script named foo.py
@cholmboe
cholmboe / b
Last active October 1, 2024 09:53
A script to search and open chrome bookmarks from your terminal
#!/bin/sh
#
# Search and open chrome bookmarks from your terminal.
#
# Open interactive search:
# $ b
#
# Open first fuzzy matching bookmark:
# $ b <query string>
#

Keybase proof

I hereby claim:

  • I am cholmboe on github.
  • I am spottydog (https://keybase.io/spottydog) on keybase.
  • I have a public key ASBNIc4T2ZZqB3uSmUoCko583Cwz5KCZaJ4PZ0nuE2XxTAo

To claim this, I am signing this object:

@cholmboe
cholmboe / merging-end
Last active August 29, 2015 13:57
Git talk
{
"branches": {
"master": {
"remoteTrackingBranchID": null,
"remote": false,
"target": "C8",
"id": "master",
"type": "branch"
},
"feature1": {