4359 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
◄Older
page 83 / 218
Newer►
  • httpbin(1): HTTP Client Testing Service

    Peut etre utile

    • https://github.com/vcr/vcr
    • https://github.com/kevin1024/vcrpy
    June 12, 2015 at 5:28:19 PM GMT+2 - permalink - archive.org - http://httpbin.org/
    http test service api
  • Marks

    Je ne sais plus ou j'ai vu ça, je ne retrouve plus le lien donc je me le remets ici au cas où

    #Marks
    export MARKPATH=$HOME/.marks
    function jump {
    cd -P "$MARKPATH/$1" 2>/dev/null || echo "No such mark: $1"
    }
    function mark {
    mkdir -p "$MARKPATH"; ln -s "$(pwd)" "$MARKPATH/$1"
    }
    function unmark {
    rm -i "$MARKPATH/$1"
    }
    function marks {
    ls -l "$MARKPATH" | sed 's/ / /g' | cut -d' ' -f9- | sed 's/ -/\t-/g' && echo
    }

    June 12, 2015 at 11:29:15 AM GMT+2 * - permalink - archive.org - https://links.infomee.fr/shaare/XYagKw
    mark bash bashrc
  • Config repo git pour éviter les conneries

    git config receive.denyNonFastforwards true

    via alk

    June 12, 2015 at 10:22:05 AM GMT+2 * - permalink - archive.org - https://links.infomee.fr/shaare/vbEYvA
    git config
  • thumbnail
    Habit breaking, habit making

    Habit breaking, habit making
    Feb 6, 2013

    Moving your Vim cursor around using the arrow keys is a bad habit, and like many bad habits it’s a difficult one to break!

    Putting these lines into your vimrc can help:

    noremap <Up> <NOP>
    noremap <Down> <NOP>
    noremap <Left> <NOP>
    noremap <Right> <NOP>

    This snippet causes each of the arrow keys to execute no operation, or in other words: it disables them. Next time you move your hand to the arrow keys you’ll find that nothing happens when you press them. That should remind you to move your hand back where it belongs: on the home row, where h, j, k, and l keys are waiting for you. Alternatively, you could use the konami code version of this snippet.

    Learning to operate Vim without leaving the home row is the first rite of passage. If you’re still in the habit of moving around using the arrow keys, then you should disable them today.
    Stop using the h, j, k, l keys!

    There’s nothing slower than moving one line or column at a time. Vim provides dozens of motions for moving around quickly, so it’s no exageration to say that holding down j is a Vim anti-pattern.

    Learning Vim is not unlike studying a foreign language, where adding a word to your vocabulary increases the number of things that you can say. It takes time and practice to pick up Vim’s motions, but every time you add a motion to your repertoire you’ll discover scenarios where it can save you time and keystrokes.

    For the sake of learning, let’s say that it’s a bad habit to use the h, j, k, and l motions. In that case, you should disable them by putting this snippet in your vimrc:

    noremap h <NOP>
    noremap j <NOP>
    noremap k <NOP>
    noremap l <NOP>

    Not being able to move one line or column at a time will force you to use other motions to get around. If that sounds scary to you, let me introduce a couple of the most useful motions. Learning these won’t take a lot of effort, and the payback will be huge.
    Wordwise motions are 5x faster than h and l

    The w, b, e, and ge commands allow us to move forward or backward to the start or end of a word. The W, B, E, and gE commands do the same for a WORD (see :help word for the difference between words and WORDs). If we say that the average word length is 5 letters, then moving back and forward a word at a time is approximately five times faster than using h and l to move a character at a time.

    Start off by adding w and b to your repertoire. These move forward and back to the start of a word. When you find yourself wanting to get to the end of a word, add e and ge to your repertoire.
    Character search is near-instant for moving within a line

    The f, F, t, T, ;, and , commands make up the suite of character search motions. When you press f{char}, Vim looks forward from the cursor position for the next occurrence of {char} on the current line. If it finds a match, the cursor moves directly there. If no match is found, nothing happens. (Vim might beep at you, but you can mute that by setting ‘visualbell’.)

    Try this: in Vim, move your cursor to the beginning of a line with lots of text on it. Look ahead for a character that occurs with low frequency, such as a punctuation mark or uppercase letter. Press f followed by the character that you picked. That’s two keystrokes. Are you there yet?

    If your cursor stopped on a match before the one you were aiming for, press ; to repeat the search. Keep pressing ; until you hit your mark. If you overshoot, press , to reverse the search.

    For uncommon characters, you can usually hit your target from a distance with only 2 keystrokes. Common characters aren’t such easy targets for this method, so it helps to think like a Scrabble player!

    The character search commands allow for efficient navigation within the current line. I use them all the time! If these motions are not a part of your repertoire, then you owe it to yourself to get practicing with them. Character search allows you to move around close to the speed of thought.
    Use h and l for off-by-one errors

    Sometimes, I’ll accidentally use f{char} when I should have used t{char}, which places me one character away from where I wanted to be. Or perhaps I’ll use f{char} to target an uncommon character that’s adjacent to the common character I actually want to hit. I refer to these scenarios as off-by-one errors. I consider them to be one of the few occasions where it’s acceptable to use the h or l motion.
    Use <NOP> mappings to break bad habits

    I’m not really suggesting that you permanently disable the h, j, k, and l keys. After all, they’re necessary for correcting those off-by-one errors. But if you’re having a slow day at work, then disabling h, j, k, and l for the afternoon could make things more interesting. If it forces you out of your comfort zone and encourages you to use wordwise motions, character searches, and other motions, then it counts as a useful exercise.
    Meet hardmode

    If this sounds like a worthwhile challenge, you might want to install the hardmode plugin (which I heard about from Rob Miller at Vim London). This provides convenience commands for enabling and disabling the h, j, k, l, and arrow keys in one go. To disable cursorwise motions, run:

    :call HardMode()

    If it gets too difficult, you can wimp out and re-enable these keys by running:

    :call EasyMode()
    You are weak...

    June 10, 2015 at 12:03:25 PM GMT+2 * - permalink - archive.org - http://vimcasts.org/blog/2013/02/habit-breaking-habit-making/
    vim arrow motion
  • UDP Buffers | Documentation Project | Assembla
    June 10, 2015 at 10:52:34 AM GMT+2 - permalink - archive.org - https://www.assembla.com/spaces/LogZillaWiki/wiki/UDP_Buffers
    udp drop
  • UDP Drops on Linux - Question | Splunk Answers
    June 10, 2015 at 10:52:26 AM GMT+2 - permalink - archive.org - http://answers.splunk.com/answers/7001/udp-drops-on-linux.html
    udp drop
  • thumbnail
    udp stats gone missing? · Issue #318 · etsy/statsd
    June 10, 2015 at 10:52:18 AM GMT+2 - permalink - archive.org - https://github.com/etsy/statsd/issues/318
    udp drop statsd
  • thumbnail
    Find Music From TV and Movies - TuneFind

    Génial

    via Korben

    June 8, 2015 at 5:12:49 PM GMT+2 - permalink - archive.org - http://www.tunefind.com/
    musique series show tv music
  • deb files

    ls /var/lib/dpkg/info/irssi*

    June 8, 2015 at 10:08:21 AM GMT+2 * - permalink - archive.org - https://links.infomee.fr/shaare/TYJPLw
    postinst deb dpkg install
  • Convertir un decimal en hexa et vice versa

    Convertir 42 en base 16
    echo "obase=16; 42" | bc

    Convertir 2A en decimal
    echo "ibase=16; 2A" | bc

    June 8, 2015 at 9:49:36 AM GMT+2 * - permalink - archive.org - https://links.infomee.fr/shaare/5Z7wjQ
    hexa conversion
  • thumbnail
    Colourful ! systemd vs sysVinit Linux Cheatsheet
    June 4, 2015 at 3:54:15 PM GMT+2 - permalink - archive.org - http://linoxide.com/linux-command/systemd-vs-sysvinit-cheatsheet/
    systemd init
  • thumbnail
    4.5. Populating the Database with seeds.rb

    over pratique en dev

    June 2, 2015 at 4:58:20 PM GMT+2 - permalink - archive.org - http://www.xyzpub.com/en/ruby-on-rails/4.0/seed_rb.html
    rails
  • thumbnail
    PECL :: Package :: APM

    Une lib pour gérer l'envoi de metric depuis php

    June 2, 2015 at 10:14:30 AM GMT+2 - permalink - archive.org - https://pecl.php.net/package/APM
    statsd php
  • logrotate hourly

    Logrotate n'est pas vraiment fait pour tourner hourly, mais on peut s'en servir pour dépanner.

    Pour ça créer la conf dans un autre répertoire que celui de logrotate (PAS ici : /etc/logrotate.d/). Car si vous la créez ici, elle sera executé daily avec les autres configuration !
    Par exemple : /root/test-logrotate.conf

    Dans la conf il faut préciser une extension qui ira bien pour les fichiers grâce à la directive dateformat :

    /home/foo/bar.log {
    daily
    dateformat -%Y%m%d-%s
    compress
    copytruncate
    missingok
    rotate 100
    notifempty
    dateext
    }

    Noter aussi le copytruncate, et le daily

    Ensuite mettre en cron toutes les heures cette commande : logrotate --force /root/test-logrotate.conf

    June 1, 2015 at 10:48:14 AM GMT+2 * - permalink - archive.org - https://links.infomee.fr/shaare/BPu5uQ
    logrotate
  • thumbnail
    La programmation fonctionnelle | Grafikart.fr
    May 29, 2015 at 3:09:01 PM GMT+2 - permalink - archive.org - http://www.grafikart.fr/blog/programmation-fonctionnelle
    programmation fonctionnelle
  • thumbnail
    5cb8b9926600ab905d3cfb44aa833f8c.png (PNG Image, 728 × 379 pixels)
    May 29, 2015 at 2:47:58 PM GMT+2 - permalink - archive.org - http://screen.infomee.fr/5cb8b9926600ab905d3cfb44aa833f8c.png
    css flexbox
  • thumbnail
    An Illustrated Guide to Split Windows in Irssi

    Une bonne explication du split dans irssi

    May 29, 2015 at 10:26:54 AM GMT+2 - permalink - archive.org - https://quadpoint.org/articles/irssisplit/
    irssi split window
  • thumbnail
    How to get exit status with Ruby's Net::SSH library? - Stack Overflow
    May 28, 2015 at 3:47:43 PM GMT+2 - permalink - archive.org - http://stackoverflow.com/questions/3386233/how-to-get-exit-status-with-rubys-netssh-library
    ruby ssh rake
  • Command Line Shell For SQLite

    .mode line

    Quand meme bien plus lisible que le mode par défaut pour afficher 1 entrée

    In "line" mode, each column in a row of the database is shown on a line by itself. Each line consists of the column name, an equal sign and the column data. Successive records are separated by a blank line. Here is an example of line mode output:

    sqlite> .mode line
    sqlite> select * from tbl1;
    one = hello
    two = 10
    
    one = goodbye
    two = 20
    sqlite>
    May 28, 2015 at 11:03:00 AM GMT+2 - permalink - archive.org - https://www.sqlite.org/cli.html
    sqlite
  • thumbnail
    Git Client SmartGit

    GUI pour le log de git

    May 27, 2015 at 5:40:45 PM GMT+2 - permalink - archive.org - http://www.syntevo.com/smartgit/
    git
Links per page: 20 50 100
◄Older
page 83 / 218
Newer►
Shaarli - The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community - Help/documentation