Skip to content

Instantly share code, notes, and snippets.

Avatar
🖐️
👁❤️open source software …

Michael Hulse mhulse

🖐️
👁❤️open source software …
View GitHub Profile
View gist:644c80f1c273f2e7e96a475b7b6aca5b
1 = 1-4 hours, low complexity
2 = 1ish days, medium complexity
4 = several days (maybe a meeting too)
8 = basically a whole sprint (break it down! potential blockers, meetings)
@mhulse
mhulse / .bash_profile
Created Nov 24, 2019
Dot files stuffs, putting here as I’m trying to switch to oh-my-zsh (https://github.com/mhulse/dotfizzles)
View .bash_profile
#!/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 Mar 23, 2019
Image Magick command to convert images to the images average color and print file name in center of image
View image-average-file-name.sh
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 Jan 29, 2019
Slick Carousel CSS/JS; putting here for posterity’s sake
View css.css
.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 Jan 11, 2019
Simple script to transfer multiple repos from Bitbucket to GitHub (or vice versa). Inspired by https://stackoverflow.com/a/21260628/922323
View xfer-repos-from-bitbucket-to-github.sh
#!/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 Aug 1, 2018
CSS from picard, data, other themes
View data.css
/*! 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%;
View avr_links.css
@mhulse
mhulse / accordionism.css
Last active Feb 5, 2017
Accordion css and javascript using checkboxes and radio options.
View accordionism.css
/* Bare minimum styling to get ball rolling: */
.accordionism > div > input[type="radio"],
.accordionism > div > input[type="checkbox"] { display: none; }
.accordionism > div > label {
position: relative;
display: block;
cursor: pointer;
cursor: hand;
}
.accordionism > div > label:after {
View 1. before.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mhulse
mhulse / +make-gmail-font-size-larger.user.js
Last active Nov 4, 2016
+make-gmail-font-size-larger.user.js: Firefox GreaseMonkey or Chrome Tampermonkey script: Make Gmail font size larger because it sucks by default.
View +make-gmail-font-size-larger.user.js
// ==UserScript==
// @name Gmail Font Size Changer
// @namespace http://mky.io
// @include https://mail.google.com/mail*
// @description Make Gmail font size larger because it sucks by default.
// @grant none
// @version 201607282
// ==/UserScript==
(function() {
You can’t perform that action at this time.