Hi Andraz,
Thanks for the feed back, I will clean up the code to remove the wget calls.
Regarding the pushing of files, at this time I am locking files down to the
original uploader based on the key sent to the user's directory from the
server, so that if I am the creator of, say, scriptblock.js, no one else
can overwrite or modify the file (they could upload scriptblock_v2.js just
fine, and have it included in other user's pulls).
When I got to writing the script, it was easier to set up a single
receiving page (upload.php) to handle this than to set up git or any other
versioning system on my web server (I am a bit lazy, also not as
experienced with git as I should be).
If there is a lot of interest in this project and there would be a large
benefit to doing it that way, I am open to trying out a new method (what
would we gain exactly? web server side versioning and ability for multiple
users to contribute to the same .js file?).
Other than cleaning up malicious uploads, I do not want to be so "hands on"
that I have to keep an eye on and merge everyone's changes however. If
someone wants to share a script, assuming the name isn't taken yet, all
they'll have to do is the push and everyone else can immediately use their
script.
I'll add on the rating system so we can do ./ahungry_scripter.sh rate
./someone_script.js [1 to 10 here] pretty soon, as well as a web based
interface for users to browse the scripts manually over http.
Thanks,
-Matt
On Tue, Oct 16, 2012 at 2:04 AM, Andraž 'ruskie' Levstik <
ru...@co...> wrote:
> > Code is all done via bash, it requires wget/grep/curl to be installed.
>
> You could drop either wget or curl. Both can handle everything the other
> does more or less.
>
> > If you want to add a script to the server, just use:
> >
> > ./ahungry_scripter.sh push ./yourscript.js
>
> I'm wondering why not just use a git or hg or even svn repo for the
> scripts and handle them there. You could with git have a "mob" branch
> that anyone could push to without an account then you could just merge
> anything relevant through(this is an idea from http://repo.or.cz).
>
> To replace wget with curl just use curl -O url and you'll get the remote
> filename used to download.
>
> For the date used I'd prefer 'date -u --rfc-3339=seconds' simply because
> it makes checking when various people updated easier(if there is an
> issue to solve) and the ISO formated date since it's easy to parse.
>
> Just some of my thoughts on this thing. I'll keep watching it because I
> am interested in such stuff. Though I run with js off 99% of the time.
>
> Regards
> --
> Andraž 'ruskie' Levstik
> Source Mage GNU/Linux mage
> Re-Alpine Coordinator http://sourceforge.net/projects/re-alpine/
> Geek/Hacker/Tinker
>
> Seilf Emit
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> Vimprobable-users mailing list
> Vim...@li...
> https://lists.sourceforge.net/lists/listinfo/vimprobable-users
>
>
|