VirtualTam's bookmarks

  1. # /etc/modprobe.d/snd_usb_audio.conf
    options snd_usb_audio vid=<vid1>,<vid2> pid=<pid1>,<pid2> index=<index1>,<index2> enable=1,1
    

    example:

    # 5: M-Audio Fast Track Pro 
    # 6: Focusrite Scarlett 6i6
    options snd_usb_audio vid=0x763,0x1235 pid=0x2012,0x8012 index=5,6 enable=1,1
    

    See also: http://alsa.opensrc.org/MultipleCards

  2. 1er commandement: "Du contrôle de version, tu te soucieras" http://s3.media.squarespace.com/production/2129687/19317774/.a/6a00d8341d3df553ef017c330f2ae8970b-pi

    2ème commandement: "avec Git, tu te formeras, sinon sous SVN tu resteras" http://s3.media.squarespace.com/production/2129687/19317774/.a/6a00d8341d3df553ef017743a87369970d-pi

    3ème commandement: "Le merge, tu éviteras tant que faire se peut" http://geekandpoke.typepad.com/geekandpoke/2010/10/being-a-code-made-easy-chapter-1.html

    4ème commandement: "De versionner n'importe quoi, tu t'abstiendras" http://geek-and-poke.com/geekandpoke/2012/11/7/simply-explained.html

    5ème commandement: "Un commit réécrit, tu ne pusheras point" http://geek-and-poke.com/geekandpoke/2014/3/3/end-of-working-day

    6ème commandement: "Avant de tester, tu ne pusheras point" http://geek-and-poke.com/geekandpoke/2013/5/31/finally-its-friday

    7ème commandement: "le 6eme commandement tu appliqueras, ou ton chef te châtiera" http://geek-and-poke.com/geekandpoke/2013/11/24/simply-explained

    8ème commandement: "Tu ne tricheras point" http://geek-and-poke.com/geekandpoke/2013/7/28/tdd

    9ème commandement: ""Des tags tu abuseras" http://geek-and-poke.com/geekandpoke/2013/12/26/games-for-the-real-geeks

    10ème commandement: "Ton Dieu Jenkins tu honoreras et ton salut tu trouveras" http://geek-and-poke.com/geekandpoke/2013/8/10/the-little-miracles

  3.  1#!/bin/bash
     2# Check if a file needs to be downloaded
     3# Useful iff there is no checksum available to check a local file
     4url=http://test-url.com
     5
     6dl=1
     7if [[ -f $file_path ]]; then
     8    local_size=$(ls -l $file_path | awk '{print $5}')
     9    remote_size=$(wget --spider $url 2>&1 | awk '/Length/ {print $2}')
    10
    11    if [[ $local_size -eq $remote_size ]]; then
    12        echo "The file was previously downloaded"
    13        dl=0
    14    else
    15        echo "Corrupted file found, re-downloading..."
    16        rm -f $file_path
    17    fi
    18else
    19    echo "Downloading file..."
    20fi
    21
    22[[ $dl -eq 1 ]] && wget $url -O $file_path
    
  4. Basic concepts of acoustics and electronics and how they can applied to understand musical sound and make music with electronic instruments. Topics include: sound waves, musical sound, basic electronics, and applications of these basic principles in amplifiers and speaker design.