Skip to content

Instantly share code, notes, and snippets.

View mhulse's full-sized avatar
👋
👁 ❤️ open source software …

Michael Hulse mhulse

👋
👁 ❤️ open source software …
  • Instructure Inc.
  • Eugene, Oregon
View GitHub Profile
@mhulse
mhulse / README.md
Last active September 16, 2024 23:06
Clipboard code prepend script

Clipboard code prepend script

This is a simple Zsh script designed to help developers who want to use AI services (like ChatGPT) to convert their code into multiple programming languages. The script’s goal is to streamline the process of adding a structured prompt to the clipboard for easier AI interaction.

Features

  • Automatically adds a customizable conversion prompt to existing code in the clipboard
  • Supports multiple programming languages (e.g., Ruby, TypeScript, JavaScript, Java, Python)
  • Uses pbpaste and pbcopy for clipboard management
  • Designed for macOS, with an option for cross-platform extension
@mhulse
mhulse / README.md
Last active April 19, 2024 08:52
Notable BETA channel installation instructions and global settings

macOS installation

  1. Visit the Notable “Insiders” GitHub repo
  2. Download the Notable-<latest-version>-mac.zip build from the releases page (e.g. Notable-1.9.0-beta.9-mac.zip)
  3. Double-click to open the zip, and then drag the app to your Applications directory (I think you can double click on the app, and macOS will ask if you want to move it)
  4. Open Notable ( + SPACE and type Notable)

To view/edit your settings, type COMMAND + ,.

Use SHIFT + COMMAND + P to open your command palette.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mhulse
mhulse / gist:644c80f1c273f2e7e96a475b7b6aca5b
Last active March 2, 2022 21:56
Agile story point system
1 = 1-4 hours, a day or less, low complexity
2 = 1ish days, a day or so, medium complexity
4 = several days, 1/4 of a 3-week sprint, (maybe a meeting or two)
8 = the whole sprint, (and should likely be vetted to see if it can be broken up into two 4s, etc. break it down! potential blockers, meetings)
In general, there should be 16 points total for a developer, with 8-10 points for feature work (in a 1.5 week dev portion of the sprint).
@mhulse
mhulse / .bash_profile
Created November 24, 2019 05:27
Dot files stuffs, putting here as I’m trying to switch to oh-my-zsh (https://github.com/mhulse/dotfizzles)
#!/usr/bin/env bash
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$(cd -P "$(dirname "$SOURCE")" >/dev/null 2>&1 && pwd)"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
DOTFIZZLES="$(cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd)"
export DOTFIZZLES
@mhulse
mhulse / image-average-file-name.sh
Last active March 23, 2019 21:33
Image Magick command to convert images to the images average color and print file name in center of image
magick mogrify \
-colors 1 \
-shave 1x1 \
-bordercolor black \
-border 1 \
-pointsize 48 \
-fill black \
-gravity center \
-annotate +0+0 "%[f]" \
*
@mhulse
mhulse / css.css
Created January 29, 2019 21:05
Slick Carousel CSS/JS; putting here for posterity’s sake
.ap_library {
position: relative;
}
.ap_library > :first-child {
margin-top: 0;
}
.ap_library > :last-child {
margin-bottom: 0;
}
.ap_library {
@mhulse
mhulse / xfer-repos-from-bitbucket-to-github.sh
Last active January 11, 2019 07:34
Simple script to transfer multiple repos from Bitbucket to GitHub (or vice versa). Inspired by https://stackoverflow.com/a/21260628/922323
#!/usr/bin/env bash
# This script assumes you have your ssh keys setup for Bitbucket and GitHub.
# It also assumes you have created the repos on GitHub already and the URL slugs are an exact match.
# Also, this script will barf if you try to transfer an empty repo.
# Note that this code does not transfer wikis, downloads or issues.
# Also note, you may have to turn on QOS upload speed limiting so your router
# doesn’t freak out; I limited my upload bandwidth to 2Mbps.
# Don’t forget to `chmod u+x <this file>.sh` in order to execute it via `./<this file>.sh`.
@mhulse
mhulse / data.css
Last active August 1, 2018 17:45
CSS from picard, data, other themes
/*! Data v0.1.0 | Apache License, Version 2.0 | https://github.com/mhulse/data */
/* https://github.com/mhulse/data/blob/19fb318ee633eae44f40ffbd709e52a22f8248e9/prod/0.1.0/20140927/1/styles/data.min.css */
/*! normalize.css v3.0.1 | MIT License | git.io/normalize */
html {
font-family: sans-serif;
-ms-text-size-adjust: 100%;