Easy Star All-Stars revisitent les floyds


Dark side of the moon revue façon Dub :)
C’est pas nouveau mais ça claque.

Jah luv !

cd command improvement

Hi there.

I’ve coded a little function to put in ~/.bashrc that is implemented using arguments to go in last dirs playing with pushd and popd :
Example 1 :
cd

Example 2 :
cd 2

Example 3 :
cd 3

The function can also cd to a dir if the argument is a file.

cd(){
    # Todo deal with options -L / -P

    shopt -s extglob
    [[ -f "$1" ]] && { pushd 1>/dev/null  "$(dirname "$1")"; return; }

    if [[ "$1" ]]; then
        arg="$1"
        if [[ $arg == -+([[:digit:]]) ]]; then
            arg=$(tr -d '-' <<< "$arg")
            cd "${DIRSTACK[arg]}" &>/dev/null
        else
            pushd "$arg" &>/dev/null
        fi
    else
        cd ~ &>/dev/null
        return
    fi

}

Listening to drum/electro tracks on web records shops without having to click…Ecouter les magasins de disques drum/electro en streaming sans aucun clic…

English speakers :
Hey DJ’s, what is coming next might interest you.Think about all the time you waste clicking/searching/clicking-again/googling just to listen to your records on redeye, chemical-records, juno, toolbox…
A lot of time is wasted just for few music listenings. Moreover, you never know what you’ve already listened to.
As a response, I developed a script bash/perl that does the job. You just need to be running Linux or OSX. Windows stays out of the crowd.
You need bash, perl, curl, wget as dependencies
I bet all those are already installed in a typical OS installation.

Download :
http://stardust.3.free.fr/guest/b4z44r /selector.pl.bash
All comments from dev or users are welcome :)

Records shops :

- redeye
- chemical
- toolbox
- stamina
- juno
- hard to find records

Example :

$ ./selector.pl.bash -h
    Description :
    This script is written ( in bash & perl ) to allow
    playback of remote tracks on web records shops such as
        - Redeye-records
        - Chemical-records
        - Juno
        - Toolbox...

    This script remembers which tracks are already played
    and does not play them again ( later ).
    The following commands are valid during track playback.

    Usage :
        e         display ( echo ) current track ( URL )
        n         next track
        l         last track
        r         rewind
        f         forward
        space     pause
        d         get timestamp of current track
        D         delete track from purchase list
        y         add track to purchase list
        p         display the purchase list
        h         this help message
        v         display the current version of the script

Credits :
Written by sputnick in da FreAkY lApPy lAb (c) 2008
gilles.quenot < AT > gmail < DOT > com
Documentation Contributor : Unop from #bash on freenode

License :
This program is free software; you can redistribute it and/or
    modify it under the terms of version 2 of the GNU
   General Public License published by the Free Software
   Foundation.
(see http://www.gnu.org/licenses/gpl.html).

French speakers

Oyé DJs, ce qui va suivre pourrais vous interesser.
Essayez de compter le temps à cliquer/chercher/recliquer, googler pour ecouter vos disques sur redeye, chemical-records, juno, toolbox (…) alors qu’un script peut s’en charger pour nous?On arrive vite a accumuler beaucoups de temps passé pour pas grand chose hors écoute pure. De plus, on ne sait jamais vraiment ce que l’on a déjà écouté ou pas. En ce sens, j’ai developpé un script bash/perl ( 2 en 1 ) qui permet de faire la blague.
Il suffit d’avoir un ordi sous Linux ou Mac OS X. N’essayez pas sous Window$, ça le fera pas ;)
Il vous faut bash, perl, curl, wget comme dépendances… Mais je ne doute pas que tout ceci fasse déjà partie de la trousse à outil de base de tout libriste qui se respecte ;)

Telecharger :
http://stardust.3.free.fr/guest/b4z44r /selector.pl.bash

( penser a prendre une nouvelle version regulierement, ça bouge pas mal )

Tous retours ( users, dev ) sont les bienvenus ;)

Edit 12.07.2008

A new feature is added :
A search string for “toolbox record shop”.
Example :
new feature for toolsy