New app: Shortens. The easiest way to shorten URLs

Throughout these years I have made many scripts. Scripts that allowed me to install lots of packages, guided installation scripts, to automate backup processes, terminal applications for various purposes, etc ... but, until now, I never considered the option of making an application a bit more serious, until now 🙂

I introduce you: Shortens

-" Name: Shortens (v.RC1)
-" Purpose: Shorten that URL that we just copied, that is, transform it into something short like: http://is.gd/hyd69
-" Desk: It works on both KDE, Xfce, Gnome, Unity and Cinnamon.
- »Method of use: Once the long URL has been copied, we cut it by running the application shortened.

° Form of execution No.1: Running [Alt] + [F2], we wrote shortened And we pressed [enter].
° Form of execution No.2: We look for the application through the application menu (see screenshot below)
° Form of execution No.3: We can also execute it by typing in a terminal shortened.

- » I already executed it, now what?: We will see a notification that tells us the new URL. By pressing [Ctrl] + [V] or right click + paste, it will paste where you want the already cropped url.

Operation:

The logic is not very complex ... as I just explained, you must copy the long URL, the one you want to cut, run the application (shorten) in the way you like the most, and this (shorten) will return the already clipped URL.

However, the application is programmed to first check if the computer has internet access, after checking this it tries to cut the URL.

Also, if you don't copy a valid URL (let's say you copied text instead of a URL) the application will let you know 😉

Screenshots:

Here we see the application in the applications menu (This is how it looks in KDE, but it will still be present in Gnome, Unity, etc.):

Here are some notifications that you can return to us:

How to install it ?:

If they use Debian, Ubuntu o derivatives, you can download the package .DEB from here:

Download .DEB

Once downloaded, just double-click on it and it will install.

If they use another distro, tell me which one ... well I could try packaging for RPM, and son_link could maybe pack for ArchLinux, but I've bothered him enough hehehe.

NOTE: It is good to clarify, that I am not a programmer hehe, but I can promise you that this application will not harm your system at all.

Well, I don't think there is much more to add.

So far the application is not complex at all, and multiple improvements can be made 🙂

I would infinitely thank you for your opinions, comments, ideas, suggestions and / or criticism, I promise to try to please everyone I can, because I repeat, I do not consider myself a programmer 😀

Greetings and thanks for having read all this.

PD: I am already thinking of making it a small and VERY simple GUI, which allows you to look at the history of cut URLs, as well as a small field to enter the URL you want to cut.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Rafael said

    And will the source code be available? Pd: The application is interesting. congratulations

    1.    KZKG ^ Gaara said

      Yes of course, the application is under the GPL license. In fact, the source code is nothing more than the same script that is executed (/ usr / bin / shorten), you can check it if you like.

      Thanks for the interesting thing 🙂
      It's the first time that I program something for other people, that is, not just for me ^ - ^

  2.   Martin said

    to.ly, tinyurl.com, tiny.cc ...

    1.    KZKG ^ Gaara said

      I tried goo.gl ... but I couldn't get what I wanted, I didn't try any more simply because with is.gd it already worked a thousand wonders for me.
      Anything against using is.gd? ... O_O

    2.    zulander said

      Many url shorteners have emerged, some better than others, but if you need both of these services, there is nothing better than having your own script installed, mostly free like yourls ...

      1.    Manual of the Source said

        YOURLS is very good, I even bought a short domain and configured it with YOURLS, but since I never found it useful, it stayed there gathering dust. xD

        1.    KZKG ^ Gaara said

          No idea what this is hehe, but they have already made me curious 😀

  3.   auroszx said

    I already tried it, it works quite well ^^ Waiting for the GUI 🙂

    1.    KZKG ^ Gaara said

      I hope the GUI does not take too long, first I will do it for KDE (Qt), then I will try with Xfce and / or Gnome3, then to test in Cinnamon and Unity… uff… hard work hahaha.

  4.   Hyuuga_Neji said

    I see that you did not put LXDE maybe the LXDE that I have here is the one that gave problems when testing it behind a proxy

  5.   v3on said

    the source code to adapt it to my needs XD

    1.    KZKG ^ Gaara said

      The code is there clearly in / usr / bin / shorten 😀

  6.   gussound said

    It works perfectly! .Thank you!

  7.   Morpheus said

    Not to bother, but isn't it easier with a bookmarklet?

    javascript: (function () {url = location.href; url = prompt ('Enter% 20URL', url); location.href = »http://is.gd/create.php?longurl=» + encodeURIComponent (url );}) ()

    1.    KZKG ^ Gaara said

      Hello,
      No man, of course you don't bother 🙂

      The idea was to make an application that is simple, can always be improved, put more options, functions, etc. I'm not really a programmer, I only know Bash ... so obviously I opted for this language.

      Now why not a marker?
      1. It is not what I wanted, because I do not want to depend on an external software (browser)
      2. It would not be made by me, so I could not understand it as much as I wish.
      3. It wouldn't allow me as many things as I want to do ... history, GUI, options, etc.

      Your idea is not a bad friend, really not, it was just not what I wanted (I.e.
      regards

  8.   Simon Orono said

    Will it be too much trouble to package it for all distributions? A .tar.gz maybe?

    1.    KZKG ^ Gaara said

      To do this, I would have to finish making an installation script, which detects the distro, installs the dependencies automatically and also installs Shortens 🙂

  9.   VaryHeavy said

    I request, if it can be, an RPM for OpenSuse (or for any RPM distro; P)

    1.    KZKG ^ Gaara said

      Try this RPM: http://www.mediafire.com/?iuni6rhx93uco58
      It's this same .DEB, but converted with Alien by Aurosx.

      Any mistake, let me know 😀
      Thanks for your interest.

      1.    makubex uchiha said

        This apps looks great, it is already very useful for very long urls, ah · _ · do not use alien to convert debs to rpm, the last time I did that with an ubuntu apps to pass it in deb, I shit all the system. the apps that I had used was postinga is for taringa to post from those apps, but silly I did not see that it already had its rpm package, so I grabbed the deb and passed it with alien (bad idea: - /), when installing hiva it rather, the issue was executing. The whole desktop was thrown (at that time I was using gnome shit xD) then later I restarted it and then out of nowhere it did not start me anymore, all for a simble apps based on java and that I already had java installed as well: - / thus that by experience I do not recommend using alien xD

  10.   Manual of the Source said

    It's not to damn your application (: P), but what are link shorteners used for now? Hadn't Twitter already killed them with its t.co?

  11.   invisible15 said

    I'll test it on my Fedora with mate!

    1.    invisible15 said

      You have to install xclip before (modifying the rpm so that it asks for it as a dependency would be fine). Otherwise the application will not suit you. (Example of link that I have made (my website) http://is.gd/uXDaqA )