[aur-general] Is it OK to package oneliners?
Are we OK with packages like https://aur.archlinux.org/packages/last-git/ ? Unless I'm missing something it's just https://raw.github.com/vanceza/last/master/last BTW, I don't understand what does it do & /usr/bin/last-line doesn't seem to work. $ echo 1 2 3 1 2 3 $ history 2 | head -n1 | tr -s ' ' | cut -d ' ' -f"4-" 1 2 3 $ cat foo cat: foo: Is a directory $ history 2 | head -n1 | tr -s ' ' | cut -d ' ' -f"4-" foo
Karol Blazewicz wrote:
Are we OK with packages like https://aur.archlinux.org/packages/last-git/ ? Unless I'm missing something it's just https://raw.github.com/vanceza/last/master/last
BTW, I don't understand what does it do & /usr/bin/last-line doesn't seem to work. $ echo 1 2 3 1 2 3 $ history 2 | head -n1 | tr -s ' ' | cut -d ' ' -f"4-" 1 2 3 $ cat foo cat: foo: Is a directory $ history 2 | head -n1 | tr -s ' ' | cut -d ' ' -f"4-" foo
Deleted with the following message:
A single-line shell command is not worth its own package, let alone a project on git hub. Such commands are better off as aliases.
Seeing that was definitely a skypalming wtf moment. Regards, Xyne
On Sun, Sep 1, 2013 at 8:42 AM, Xyne <xyne@archlinux.ca> wrote:
Karol Blazewicz wrote:
Are we OK with packages like https://aur.archlinux.org/packages/last-git/ ? Unless I'm missing something it's just https://raw.github.com/vanceza/last/master/last
BTW, I don't understand what does it do & /usr/bin/last-line doesn't seem to work. $ echo 1 2 3 1 2 3 $ history 2 | head -n1 | tr -s ' ' | cut -d ' ' -f"4-" 1 2 3 $ cat foo cat: foo: Is a directory $ history 2 | head -n1 | tr -s ' ' | cut -d ' ' -f"4-" foo
Deleted with the following message:
A single-line shell command is not worth its own package, let alone a project on git hub. Such commands are better off as aliases.
Seeing that was definitely a skypalming wtf moment.
Regards, Xyne
Please remove some other oneliners by that user: * https://aur.archlinux.org/packages/owns-git/ * https://aur.archlinux.org/packages/wordcount-git/notify/ * https://aur.archlinux.org/packages/asciicam-git/ * https://aur.archlinux.org/packages/current-network-git/ He has a few other packages that are "fewliners" e.g. * https://aur.archlinux.org/packages/dzen-clock-git/ * https://aur.archlinux.org/packages/changed-files-git/ * https://aur.archlinux.org/packages/export-chrome-bookmarks-git/ * https://aur.archlinux.org/packages/random-git/ * https://aur.archlinux.org/packages/noise-git/ * https://aur.archlinux.org/packages/webcam-picture-git/ * https://aur.archlinux.org/packages/retry-git/ IMHO at least some of them should be removed too.
Deleted with the following message:
A single-line shell command is not worth its own package, let alone a project on git hub. Such commands are better off as aliases.
Seeing that was definitely a skypalming wtf moment.
Regards, Xyne
Please remove some other oneliners by that user: * https://aur.archlinux.org/packages/owns-git/ * https://aur.archlinux.org/packages/wordcount-git/notify/ * https://aur.archlinux.org/packages/asciicam-git/ * https://aur.archlinux.org/packages/current-network-git/
He has a few other packages that are "fewliners" e.g. * https://aur.archlinux.org/packages/dzen-clock-git/ * https://aur.archlinux.org/packages/changed-files-git/ * https://aur.archlinux.org/packages/export-chrome-bookmarks-git/ * https://aur.archlinux.org/packages/random-git/ * https://aur.archlinux.org/packages/noise-git/ * https://aur.archlinux.org/packages/webcam-picture-git/ * https://aur.archlinux.org/packages/retry-git/
IMHO at least some of them should be removed too.
I have removed those packages and am CC'ing the former maintainer. @Vanceza One-liners and trivial few-liners do not deserve their own packages. I think the best place for these would be a bashrc file, i.e. instead of hosting a separate git project for each trivial script, host a single project with all of them included as aliases (one-liners) or bash functions (few-liners) in a single file. Interested users could then clone the repo in their user directory, and source the file from their bashrc file (e.g. "source /path/to/git/repo/bashrc"). Updating would be as simple as cd'ing in the repo and running "git fetch...". It's actually even easier than updating packages from the AUR. I do not doubt that your intention is good and I hope that my actions and remarks will not discourage you from further contributions. Regards, Xyne
On Sun, Sep 1, 2013 at 1:30 PM, Xyne <xyne@archlinux.ca> wrote:
Deleted with the following message:
A single-line shell command is not worth its own package, let alone a project on git hub. Such commands are better off as aliases.
Seeing that was definitely a skypalming wtf moment.
Regards, Xyne
Please remove some other oneliners by that user: * https://aur.archlinux.org/packages/owns-git/ * https://aur.archlinux.org/packages/wordcount-git/notify/ * https://aur.archlinux.org/packages/asciicam-git/ * https://aur.archlinux.org/packages/current-network-git/
He has a few other packages that are "fewliners" e.g. * https://aur.archlinux.org/packages/dzen-clock-git/ * https://aur.archlinux.org/packages/changed-files-git/ * https://aur.archlinux.org/packages/export-chrome-bookmarks-git/ * https://aur.archlinux.org/packages/random-git/ * https://aur.archlinux.org/packages/noise-git/ * https://aur.archlinux.org/packages/webcam-picture-git/ * https://aur.archlinux.org/packages/retry-git/
IMHO at least some of them should be removed too.
I have removed those packages and am CC'ing the former maintainer.
@Vanceza One-liners and trivial few-liners do not deserve their own packages. I think the best place for these would be a bashrc file, i.e. instead of hosting a separate git project for each trivial script, host a single project with all of them included as aliases (one-liners) or bash functions (few-liners) in a single file. Interested users could then clone the repo in their user directory, and source the file from their bashrc file (e.g. "source /path/to/git/repo/bashrc").
Updating would be as simple as cd'ing in the repo and running "git fetch...". It's actually even easier than updating packages from the AUR.
I do not doubt that your intention is good and I hope that my actions and remarks will not discourage you from further contributions.
Regards, Xyne
This convinced me to convert a simple one-liner Bash script I wrote into a Bash function+alias. I previously put the one-liner on GitHub and submitted a PKGBUILD for it. I have just deleted the GitHub repo, so please delete this package: https://aur.archlinux.org/packages/colorpwd-git/ Thanks, Jason
Jason St. John wrote:
This convinced me to convert a simple one-liner Bash script I wrote into a Bash function+alias. I previously put the one-liner on GitHub and submitted a PKGBUILD for it. I have just deleted the GitHub repo, so please delete this package: https://aur.archlinux.org/packages/colorpwd-git/
Thanks, Jason
done, thanks
It would possibly make sense to have something like a "oneliner's sampler", a set of aliases or .bashrc's or so. Then there woiuld be one package with say 20, 50 or 200 oneliners. But a package for a oneliner obviously is overhead-nonsense. (How to bloat the oneliner with a PKGBUILD that is much bigger than the packaged code....) Ciao, Oliver
On Sun, Sep 1, 2013 at 6:02 PM, oliver <oliver@first.in-berlin.de> wrote:
It would possibly make sense to have something like a "oneliner's sampler", a set of aliases or .bashrc's or so. Then there woiuld be one package with say 20, 50 or 200 oneliners.
But a package for a oneliner obviously is overhead-nonsense.
(How to bloat the oneliner with a PKGBUILD that is much bigger than the packaged code....)
Ciao, Oliver
We already have a collection of scripts, oneliners etc. https://bbs.archlinux.org/viewtopic.php?id=56646
Karol Blazewicz wrote:
We already have a collection of scripts, oneliners etc. https://bbs.archlinux.org/viewtopic.php?id=56646
I consider that thread far too long and cluttered to be of any real use. What someone really needs to code is a script repository where users can upload (signed) scripts with some simple metadata (description, dependencies, etc), and then create a tool for browsing them and downloading them to a bin directory. Basically, a Pacman-light for scripts. Throw in a rating system and you have a nice little site that would be very useful. That probably exists already (I think someone created something called the Arch Linux script wiki or something similar at some point, but that is a bit different from what I have in mind). Feel free to posts links if anyone knows of such a site. Otherwise, if someone wants to code this, let me know. I may be able to help. Regards, Xyne
On Sun, Sep 1, 2013 at 8:27 PM, Xyne <xyne@archlinux.ca> wrote:
Karol Blazewicz wrote:
We already have a collection of scripts, oneliners etc. https://bbs.archlinux.org/viewtopic.php?id=56646
I consider that thread far too long and cluttered to be of any real use. What someone really needs to code is a script repository where users can upload (signed) scripts with some simple metadata (description, dependencies, etc), and then create a tool for browsing them and downloading them to a bin directory. Basically, a Pacman-light for scripts.
Throw in a rating system and you have a nice little site that would be very useful. That probably exists already (I think someone created something called the Arch Linux script wiki or something similar at some point, but that is a bit different from what I have in mind).
Feel free to posts links if anyone knows of such a site. Otherwise, if someone wants to code this, let me know. I may be able to help.
Regards, Xyne
commandlinefu.com comes to mind. There's a client in AUR called fu-git but I never used it.
On Mon, Sep 2, 2013 at 2:01 AM, Vitor Eiji Justus Sakaguti <vitoreiji0@gmail.com> wrote:
commandlinefu.com comes to mind. There's a client in AUR called fu-git but I never used it.
A client that lets you download oneliners? I smell another one-liner... :-D cheers! mar77i
participants (6)
-
Jason St. John
-
Karol Blazewicz
-
Martti Kühne
-
oliver
-
Vitor Eiji Justus Sakaguti
-
Xyne