Skip to content

Instantly share code, notes, and snippets.

@Orangetronic
Last active December 17, 2015 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Orangetronic/5682666 to your computer and use it in GitHub Desktop.
Save Orangetronic/5682666 to your computer and use it in GitHub Desktop.
shell functions and bash bits!
# Download all the images from a webpage
# Usage: imagegrab URL
function imagegrab () {
wget -nd -r -l 2 -A jpg,jpeg,png,gif $1
}
# Grab all the colours from a stylesheet and dump them in a snippets file
# Totally useless with minified stylesheets.
# Usage: stylegrab styleSheetURL styleExpression
function stylesgrab () {
curl $1 | grep $2 | sed s/}// >> styles.snip
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment