Skip to content

Instantly share code, notes, and snippets.

@stefco
Last active April 25, 2016 06:12
Show Gist options
  • Save stefco/112f9e221f1df205e45b to your computer and use it in GitHub Desktop.
Save stefco/112f9e221f1df205e45b to your computer and use it in GitHub Desktop.
Donkey, get back in the heap
#!/bin/bash
# install a powerful script with a special productivity advantage for mac users
(
cat <<-LAYERS
cat <<-OGRESARELIKELAYERS
,M, 7M=
= MMMM, M
M $ ,8, M,
8 M
,D M M
M=,::: , M DM,, M
M :N8D M IMMMM, M
,M, $D I M,
: DN M O
D N M ,=
,, =D ,O O M
M ZN +DDDD$ M M
M NI D8NDDDDDD M,,
8, D8 , M
Z , IM : MM M M~
M M, M 7 M MM,M ? M
M M ~MDMMDMM ,M I
M ,MMMM?, , OM M
M MD M $, OM
M M =M M , ,N M
M M M M, $ ,M, + M M,
MMMM M ,M,D M M M, ,M M
M MM MM M N M M ,MD, ,M
M MM ,MMM7MM M M M MM , M N , ,M+ M
DM M = M MMM M, M, MM M M
DM 8 M M:M M M M$ M ?
M7 M M 7 ,N,M ,M, , M O
M,M M M~, M , NM, , = M
~M MMM MM : :7 MMM $
MM=M ? , M+?MM, M
M M , M I M?MMO M
M N, + , MMMMM ,
M M M :M$MMMMMMM
M M , ~, NMMMMMMM ,M
M D M M ,MMMMMMMM M
N~ MM8MMMMMMMM M
M M M :MMMMMMMMMMMN =
M = N IM8MMMMMMMMMM M 8
M D ,M ,, MMMMMMMMMMMMMM M M
,M, ,N M$ ?MMMMMMMMMMMMMMMM8?7 ,M
M NMMNMM7 M MMMMMMMMMMMMMMMMMMMM M M
M :MMMMMM?MZMMMMMMMMMMMMMMMMMMMMMMNZ M,
7N, MMMMMMMMMMMMMMMMMMMMMMMMNMM MM M
M NMMMMMMMMMMMMMMMMMMMMMM MD M
M +MMMMIM MMMMMMMMMM, MMO M?
ZM , NMMMMMMMMM= =M
MM , ZM,
, MM ON
N? +M
ZM ,M
,MN NM
?MMZMMMvvv,MMMMM8
OGRESARELIKELAYERS
# if mac is installed, then we can use sound
if [[ $OSTYPE == darwin* ]]; then
say donkey get back in the heap
fi
LAYERS
) > ~/.donkey.sh
chmod 744 ~/.donkey.sh
echo alias donkey=\"~/.donkey.sh\" >> ~/.bash_profile
alias donkey="~/.donkey.sh"
~/.donkey.sh
@stefco
Copy link
Author

stefco commented Dec 17, 2015

Donkey Quickstart

donkey can be run on any Unix system. Unfortunately, it's audio features are only supported on Mac OS X.

Installing Donkey

To install donkey, open up a terminal window and run:

> curl -L https://goo.gl/EvFCCA | bash

This will install donkey and run it once.

Using Donkey

In a terminal window, simply run

> donkey

Uninstalling Donkey

donkey is installed to your home folder. To remove it, simply run

> rm ~/.donkey.sh

and remove the line alias donkey="~/.donkey.sh" from your ~/.bash_profile folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment