Suppose you're opening an issue and there's a lot noisey logs that may be useful.
Rather than wrecking readability, wrap it in a <details> tag!
<details>
 Summary Goes Here| #!/bin/bash | |
| # | |
| # Created by Felipe Machado - 2016/02/14 | |
| # | |
| # A retry command for bash | |
| # Retries the given command up to MAX_RETRIES, with an interval of SLEEP_TIME | |
| # between each retry. Just put it on your bash_profile and be happy :) | |
| # Usage: | |
| # retry [-s SLEEP_TIME] [-m MAX_RETRIES] COMMAND_WITH_ARGUMENTS | |
| # | 
| @echo off | |
| cygwin-shim.bat /bin/ansible-galaxy %* | 
I say "animated gif" but in reality I think it's irresponsible to be serving "real" GIF files to people now. You should be serving gfy's, gifv's, webm, mp4s, whatever. They're a fraction of the filesize making it easier for you to deliver high fidelity, full color animation very quickly, especially on bad mobile connections. (But I suppose if you're just doing this for small audiences (like bug reporting), then LICEcap is a good solution).
| #!/bin/sh | |
| set -e | |
| set -x | |
| for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f3) | |
| do | |
| npm -g install "$package" | |
| done | 
Our Virtual Machines are provisioned using Vagrant from a Linux base box to run using VirutalBox. If the Hard Disk space runs out and you cannot remove files to free-up space, you can resize the Hard Disk using some VirtualBox and Linux commands.
The following steps assume you've got a set-up like mine, where:
| #!/bin/bash | |
| # How to perform a release with git & maven following the git flow conventions | |
| # ---------------------------------------------------------------------------- | |
| # Finding the next version: you can see the next version by looking at the | |
| # version element in "pom.xml" and lopping off "-SNAPSHOT". To illustrate, | |
| # if the pom's version read "0.0.2-SNAPSHOT", the following instructions would | |
| # perform the release for version "0.0.2" and increment the development version | |
| # of each project to "0.0.3-SNAPSHOT". | |
| # | 
| gifify() { | |
| if [[ -n "$1" ]]; then | |
| if [[ $2 == '--good' ]]; then | |
| ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png | |
| time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif | |
| rm out-static*.png | |
| else | |
| ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif | |
| fi | |
| else | 
| -- Save your current application | |
| tell application "System Events" | |
| set currentApp to name of 1st process whose frontmost is true | |
| end tell | |
| -- Bring Lync to the front so we can use the menu | |
| tell application "Microsoft Lync" | |
| activate | |
| end tell |