Guest User

Untitled

a guest
Jun 13th, 2015
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #!/bin/bash
  2. ##########
  3. # CHANGE URL IN CLIPBOARD INTO ADFLY URL
  4. # autor:wytrzeszcz
  5. #
  6. key="key for api"
  7. uid="uid for api"
  8. url=`xclip -o -selection clipboard | grep -oiE "http[s]?://[^ \"\'><]*[[:space:]]*"` &&
  9. curl "http://api.adf.ly/api.php?key=$key&uid=$uid&advert_type=int&domain=adf.ly&url=$url" |
  10. xclip -i -selection clipboard
Add Comment
Please, Sign In to add comment