Skip to content

Instantly share code, notes, and snippets.

🖐
👁❤️open source software …

Michael Hulse mhulse

View GitHub Profile
@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() {
@mhulse
mhulse / Async image processing with node.js
Created Oct 1, 2016
Asynchronous ImageMagick processing using Node.js.
View Async image processing with node.js
let commands = {};
commands['make title text with drop shadow'] = `
convert \
-background none \
-font "Roboto Condensed/RobotoCondensed-Regular.ttf" \
-pointsize 500 \
-gravity Center \
-interline-spacing -30 \
-bordercolor none \
-strokewidth 16 \
@mhulse
mhulse / slideshow.css
Created Sep 30, 2016
Simple slideshow example using jquery (depends on imagesLoaded library).
View slideshow.css
/*#slideshow { display: none; }
@media (min-width: 48em) { */
#slideshow {
display: block;
background-position: center top;
background-repeat: no-repeat;
-webkit-background-size: cover;
-khtml-background-size: cover;
-moz-background-size: cover;
-ms-background-size: cover;
You can’t perform that action at this time.