Skip to content

Instantly share code, notes, and snippets.

View matthewwithanm's full-sized avatar

Matthew Dapena-Tretter matthewwithanm

View GitHub Profile
@voxxit
voxxit / USING-VAULT.md
Last active July 7, 2022 03:02
Consul + Vault + MySQL = <3
git clone https://gist.github.com/dd6f95398c1bdc9f1038.git vault
cd vault
docker-compose up -d
export VAULT_ADDR=http://192.168.99.100:8200

Initializing a vault:

vault init
@cwood
cwood / clone-mysql-database
Created July 30, 2014 14:46
Create a clone of a database on a local server and grant app permissions
#!/usr/bin/env zsh
autoload -U colors
if [[ -z $1 ]]; then
read "database_name?Databse Name: "
else
database_name=$1
fi
@aebsr
aebsr / icbiacontrol.less
Created February 5, 2013 21:18
Sample form element rules, that style text, radio and checkbox inputs as well as selectboxes and textareas consistently across browsers when used with 'I Can't Believe It's a Control!' https://github.com/matthewwithanm/jquery-icbiacontrol/
/*!
* icbiacontrol sample styles
*
* Copyright 2013 Antoine Butler
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Sample form element styles, that style text, radio and checkbox inputs as well as
* selectboxes and textareas consistently across browsers. Built by @aebsr
*/
@pfig
pfig / mkfavicon.sh
Created February 12, 2012 12:01
Make a multi-resolution favicon.ico from a source image, using ImageMagick
#!/bin/bash
# from
# http://bergamini.org/computers/creating-favicon.ico-icon-files-with-imagemagick-convert.html
convert source-WxW.png -resize 256x256 -transparent white favicon-256.png
convert favicon-256.png -resize 16x16 favicon-16.png
convert favicon-256.png -resize 32x32 favicon-32.png
convert favicon-256.png -resize 64x64 favicon-64.png
convert favicon-256.png -resize 128x128 favicon-128.png