Shaare your links...
3325 links
L!NKS Retour au blog Login RSS Feed ATOM Feed Tag cloud Picture wall Daily
Links per page: 20 50 100
◄Older
page 58 / 167
Newer►
  • Charlie Hebdo
    Attentat monstrueux à Charlie Hebdo : décès de Cabu, Charb, Wolinski, Tignous et Bernard Maris.
    Je vous aimais.
    Je crève de colère.
    permalink -
    - http://spynaej.eu/blog/
  • Password only filled after entering user name - MozillaZine Knowledge Base
    pour n'activer l'autocompletion du password que si le bon username est donné :

    about:config
    signon.prefillForms -> true
    permalink -
    - http://kb.mozillazine.org/Password_only_filled_after_entering_user_name
    firefox
  • VeraCrypt est maintenant compatible avec les conteneurs TrueCrypt - Korben
    à voir comme successeur de TrueCrypt ?
    permalink -
    - http://korben.info/veracrypt-est-maintenant-compatible-avec-les-conteneurs-truecrypt.html
    crypt
  • C’est quoi une bonne offre légale ? - Le Hollandais Volant
    via sebsauvage
    ++1
    permalink -
    - http://lehollandaisvolant.net/?d=2015/01/02/12/58/19-cest-quoi-une-bonne-offre-legale
  • http://doc.jeedom.fr/fr_FR/template.html
    Tuto sur les plugin dans Jeedom avec template
    permalink -
    - http://doc.jeedom.fr/fr_FR/template.html
    jeedom
  • http://doc.jeedom.fr/fr_FR/core.html#plan
    permalink -
    - http://doc.jeedom.fr/fr_FR/core.html#plan
    domotique jeedom
  • Save a file using the python requests library - Stack Overflow
    ########################
    with open('output.jpg', 'wb') as handle:
       response = requests.get('http://www.example.com/image.jpg', stream=True)

       if not response.ok:
           # Something went wrong

       for block in response.iter_content(1024):
           if not block:
               break
           handle.write(block)
    ########################
    /*I usually just use urllib.urlretrieve(). It works, but if you need to use a session or some sort of authentication, the above code works as well.*/

    voir aussi : https://stackoverflow.com/questions/13137817/how-to-download-image-using-requests
    -----------------------------------------------------------------------------------------------------------------------------------------


    Get a file-like object from the request and copy it to a file. This will also avoid reading the whole thing into memory at once.
    ########################
    import shutil
    import requests

    url = 'http://example.com/img.png'
    response = requests.get(url, stream=True)
    with open('img.png', 'wb') as out_file:
       shutil.copyfileobj(response.raw, out_file)
    del response
    ########################

    Note that the .raw file-like object does not decompress a response using Content-Encoding: gzip or Content-Encoding: deflate. You can use response.raw.read(decode_content=True) but shutil.copyfileobj cannot do that because it assumes a generic .read() method

    ########################
    import requests
    import shutil

    r = requests.get(settings.STATICMAP_URL.format(**data), stream=True)
    if r.status_code == 200:
       with open(path, 'wb') as f:
           r.raw.decode_content = True
           shutil.copyfileobj(r.raw, f)
    ########################
    ou :
    #######################
    r = requests.get(settings.STATICMAP_URL.format(**data), stream=True)
    if r.status_code == 200:
       with open(path, 'wb') as f:
           for chunk in r.iter_content(1024):
               f.write(chunk)
    ########################
    permalink -
    - https://stackoverflow.com/questions/14114729/save-a-file-using-the-python-requests-library
    python
  • Les remèdes qui marchent | Protégez-Vous.ca
    via sebsauvage
    permalink -
    - http://www.protegez-vous.ca/sante-et-alimentation/remedes-de-grand-mere/des-remedes-qui-marchent.html
  • wget : récupération de fichiers sur un serveur - Documentation technique : Debian
    wget -r -l 0 ftp://www.mondomaine.tld/chemin/* --ftp-user=nom_user --ftp-password=password -nH --cut-dirs=1

    Explications :
       On souhaite récupérer le contenu du répertoire "chemin" sur le ftp www.mondomaine.tld => ftp://www.mondomaine.tld/chemin/*
       On souhaite le faire récursivement => option "-r"
       On ne limite pas la récursivité (infini) => option "-l 0"
       Le nom de l’utilisateur ftp est "nom_user" => option "—ftp-user=nom_user"
       Le mot de passe de l’utilisateur est "password" => option "—ftp-password=password"
       Nous souhaitons récupérer le contenu de ce répertoire dans le répertoire en cours sans créer de hiérarchie supplémentaire. Par défaut wget déposera les fichiers dans un sous-répertoire du répertoire courant "www.mondomaine.tld/chemin/" ce que nous ne souhaitons pas. Pour ce faire on utilise l’option "-nh" qui s’occupe de ne pas créer le "www.mondomaine.tld" puis l’option "—cuts-dirs=1" qui elle, s’occupe du répertoire "chemin". Si votre chemin original est composé de plusieurs répertoire, vous devrez modifier cette option avec le nombre total de répertoires, par exemple "—cuts-dirs=3" si votre chemin est du genre "chemin/du/fichier/".

    notes :
    -O chemin du fichier (sortie)
    -P Dossier de destination

    See :  https://www.gnu.org/software/wget/manual/wget.html#Directory-Options
    ‘--cut-dirs=number’

       Ignore number directory components. This is useful for getting a fine-grained control over the directory where recursive retrieval will be saved.

       Take, for example, the directory at ‘ftp://ftp.xemacs.org/pub/xemacs/’. If you retrieve it with ‘-r’, it will be saved locally under ftp.xemacs.org/pub/xemacs/. While the ‘-nH’ option can remove the ftp.xemacs.org/ part, you are still stuck with pub/xemacs. This is where ‘--cut-dirs’ comes in handy; it makes Wget not “see” number remote directory components. Here are several examples of how ‘--cut-dirs’ option works.

       No options        -> ftp.xemacs.org/pub/xemacs/
       -nH               -> pub/xemacs/
       -nH --cut-dirs=1  -> xemacs/
       -nH --cut-dirs=2  -> .

       --cut-dirs=1      -> ftp.xemacs.org/xemacs/
       ...

       If you just want to get rid of the directory structure, this option is similar to a combination of ‘-nd’ and ‘-P’. However, unlike ‘-nd’, ‘--cut-dirs’ does not lose with subdirectories—for instance, with ‘-nH --cut-dirs=1’, a beta/ subdirectory will be placed to xemacs/beta, as one would expect.
    ‘-P prefix’
    ‘--directory-prefix=prefix’

       Set directory prefix to prefix. The directory prefix is the directory where all other files and subdirectories will be saved to, i.e. the top of the retrieval tree. The default is ‘.’ (the current directory).
    permalink -
    - http://technique.arscenic.org/transfert-de-donnees-entre/article/transferts-entre-serveurs
    wget
  • RFXCOM
    permalink -
    - http://www.rfxcom.com/oregon.htm#Oregon
    oregon RFXCOM
  • Bienvenue sur touteladomotique.com
    échecs de communication
    permalink -
    - http://www.touteladomotique.com/forum/viewtopic.php?f=12&t=5977
    oregon RFXCOM
  • Felix Hans
    Un vieil album auquel un copain (Jeff) a participé...
    critique des inrock : http://www.lesinrocks.com/musique/critique-album/songs-about/

    Planant ;-)
    permalink -
    - http://felixhans.bandcamp.com/
    music
  • MySQL - Resetting a lost MySQL root password | Knowledge Center | Rackspace Hosting
    sudo /etc/init.d/mysql stop
    sudo mysqld_safe --skip-grant-tables &
    mysql -u root
    use mysql;
    update user set password=PASSWORD("mynewpassword") where User='root';
    flush privileges;
    quit

    sudo service mysql stop
    sudo service mysql start

    that's all
    permalink -
    - http://www.rackspace.com/knowledge_center/article/mysql-resetting-a-lost-mysql-root-password
    mysql password
  • pdbedit
    permalink -
    - http://wdocs.kmu.edu.tw/samba_doc/pdbedit.8.html
    samba
  • https://www.samba.org/samba/docs/using_samba/ch09.html
    permalink -
    - https://www.samba.org/samba/docs/using_samba/ch09.html
    samba
  • pdbedit
    gestion des utilisateurs samba
    permalink -
    - https://www.samba.org/samba/docs/man/manpages/pdbedit.8.html
    linux samba
  • Quickstart — Flask Documentation (0.10)
    permalink -
    - http://flask.pocoo.org/docs/0.10/quickstart/#sessions
    flask python webserver
  • Going asynchronous: from Flask to Twisted Klein
    permalink -
    - http://tavendo.com/blog/post/going-asynchronous-from-flask-to-twisted-klein/
    WAMP
  • YouTube thumbnail
    ▶ guy sings katty perrys dark horse in 20 different styles - YouTube
    permalink -
    - https://www.youtube.com/watch?v=9-0grNDGCd0
    music
  • 10 awesome features of Python that you can't use because you refuse to upgrade to Python 3
    permalink -
    - https://asmeurer.github.io/python3-presentation/slides.html#16
    python3
Links per page: 20 50 100
◄Older
page 58 / 167
Newer►
Shaarli 0.0.41 beta - The personal, minimalist, super-fast, no-database delicious clone. By sebsauvage.net. Theme by idleman.fr.