Skip to content

Instantly share code, notes, and snippets.

View michfield's full-sized avatar

Michael Field michfield

View GitHub Profile
@michfield
michfield / *.md
Last active December 10, 2015 22:48
Windows command line completion #windows

Add command line completion to Windows in two copy-paste steps

(
echo/@echo off
echo/:: History alias is assuming you are using clink with default clink profile location
echo/doskey history=cat "%LOCALAPPDATA%\clink\.history" $*
echo/doskey l=ls -CF --color=auto $*
echo/doskey la=ls -A --color=auto $*
echo/doskey ll=ls -alF --color=auto $*
@michfield
michfield / *.md
Last active December 10, 2015 22:38
Warning grants.sql #chef

This must be AFTER including recipe mysql::server

Chef: Message at compile phase that looks like a warning:

INFO: Could not find previously defined grants.sql resource

Solution: Suppress that message

It is from opscode/mysql Cookbook because some template resource is not specified. So, to solve, just copy the code from recipe, before including opscode/mysql cookbook

@michfield
michfield / gist:3918645
Last active October 11, 2015 20:58
Simple way to delete all mail, from CLI

Simple as typing in terminal:

mail
d*
q

That's it.