back to article Drop the F-bomb, get your coding typos auto-corrected

It's a slow day, the boss is absent enduring the travails of analysts with lunches to offer, so Vulture South found itself wandering around the odd corners of GitHub. Here – and if readers like it, we'll make this a regular – is a quick sampling of recently-revealed repositories that offer good, bad, and sometimes …

  1. tfewster
    Facepalm

    The F*ck

    A list of the 110 "rules" in alias form might be more useful

    alias aptget=apt-get

    alias Grep=grep # My most common typo

    Or maybe I should just get better at typing?

    1. John Robson Silver badge

      Re: The F*ck

      Assuming that it doesn't deal with things like aptitude intsall pyhton

    2. GrumpenKraut

      Re: The F*ck

      Here's what I use (I do suck at typing)

      alias g=grep

      alias j=jobs

      alias h='history -20'

      alias hh='history -70'

      alias m=make

      (and several more such one/two-letter thingies).

      1. This post has been deleted by its author

      2. tfewster

        Re: The F*ck

        I feel your pain, GrumpenKraut, but that won't work for multiple users - e.g. I would want m=man - across hundreds of servers. I reckon Grep or gerp = grep is uncontroversial and I'd be happy to roll out a package particular to every OS variant with that alias. Worst case, the package isn't installed and you have to take care typing. But at least users have to know the full form of the command (sorry, not suggesting YOU don't).

        It's the same argument as to whether `alias rm='rm -i'` is a good idea; If you get used to the shell always checking up on you, you can easily get in trouble if you're on a system that doesn't have that alias defined.

        [Unix IS user-friendly - it's just very particular who its friends are]

    3. Crazy Operations Guy

      Re: The F*ck

      My most common typo has to be "suod", "sl", "gerp", or the many other typos due to my left hand being just a millisecond slower than my right... (and in regular text: "teh" and "int he")

    4. Adam 1

      Re: The F*ck

      Maybe they need the reverse

      > rm -rf /

      > I'm sorry, Dave. I'm afraid I can't do that.

  2. Jeroen Braamhaar

    This sounds like ...

    ...a new implementation of DWIM (Do What I Mean):

    http://www.catb.org/jargon/html/D/DWIM.html

    ... and like the earlier implementation referenced, likely that a similar problem will have at least one user shout out this new implementation's name loudly ;-)

    1. Oh Homer
      Trollface

      Re: Do What I Mean

      tat cvzf /mnt/backup/my_only_backup.tar.gz /home/me

      # tat: command not found

      # running best guess instead

      rm -fr /mnt/backup/my_only_backup.gz /home/me

      # was that OK? (yes/no/fuck) >

      1. Mad Hacker

        Re: Do What I Mean

        My first thought as well. Hate for it to throw rm in there when I didn't intend it.

  3. Whitter
    Pint

    Awesome idea for a sequence of articles!

    A beer for El Reg!

  4. Anonymous Coward
    Anonymous Coward

    The F*ck

    Can you fork it?

  5. Anonymous Coward
    Anonymous Coward

    A slightly different fuck...

    alias fuck='sudo $(history -p \!\!)'

    For those moments when you get "permission denied" and just need to get "work done".

  6. Dan 10

    More of this please

  7. Frank Bitterlich

    Clippy is alive!

    bash: aptget: command not found.

    Did you mean 'rm -rf /' (Y/n)?

    Oh my. Does it come with a long disclaimer and liablity waiver?

  8. Bucky 2

    Lakovlev describes the app as “magnificent”

    If a developer speaks of his own work this way, it either means:

    1) It's been done before, but better, or

    2) It hasn't been done before, and there's a good reason for it

    ...and it ALWAYS means he's impossible to work with.

    1. DavCrav

      Re: Lakovlev describes the app as “magnificent”

      "If a developer speaks of his own work this way, it either means:

      1) It's been done before, but better, or

      2) It hasn't been done before, and there's a good reason for it"

      Other options:

      3) Sarcasm.

      4) This one part works, the rest was a complete pile of shit.

      5) He is genuinely amazed that it works.

  9. Mystic Megabyte
    Megaphone

    RTFM

    For command line musical entertainment this works nicely :)

    git clone https://github.com/np1/mps.git

  10. Anonymous Coward
    Anonymous Coward

    aliases

    cma: quick bash script to make a quick and dirty copy of everything in current working dir (optionally pass in a filename mask) to ~/cma_dir/. Handy for doing something that automagically generates/modified config files. Got in the habit of doing a "cma *.conf" before mucking about. Obviously comes from the days before snapshots.

    almost as useful as "#rel in 5" before changing routing rules on a remote Cisco.

  11. adam 40 Silver badge

    fk!

    In the spirit of U*IX I'd have to abbreviate the "fuck" to "fk".

    Otherwise it's all good.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Other stories you might like