Skip to content

Instantly share code, notes, and snippets.

@policante
Created August 28, 2016 19:13
Show Gist options
  • Save policante/c85b319dc964a2d3dea857dd299c87ea to your computer and use it in GitHub Desktop.
Save policante/c85b319dc964a2d3dea857dd299c87ea to your computer and use it in GitHub Desktop.
Create shorturl via terminal (BIT.LY)
#!/bin/bash
curl -s "http://api.bitly.com/v3/shorten?login=[LOGIN]&apiKey=[API_SECRET]&longUrl=$1&format=txt" | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment