4259 links
  • Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
newest first
  • linux - Determine which guest is running on XEN: HVM or PV guest - Server Fault

    A quick note, there are actually 3 modes, not two when it comes to the drivers in use:

    HVM: unmodified kernel and drivers using software emulated devices
    PV-HVM: unmodified kernel with paravirtualized (Xen specific) disk and network drivers
    PV: modified kernel and drivers
    

    For a Xen guest/DomU you can do a very basic uname and lsmod with a grep to list the modules in use:

    uname -a
    lsmod | grep xen

    If uname -a lists a kernel with the string "xen" in it, then you have a modified kernel and it's likely a PV guest, and you will see output from the lsmod command to confirm it. If you have output from the grep on lsmod but no sign of a modified kernel then you are PV-HVM. Without any sign of either, it's a straight HVM.

    Note: Generally you can do more with VMs that have the PV tools installed, so that can be quite an obvious pointer, however you can fake the presence of the PV tools to allow suspend/resume etc. so you cannot rely on that in general.

    August 21, 2015 - permalink - http://serverfault.com/questions/511923/determine-which-guest-is-running-on-xen-hvm-or-pv-guest
    xen
  • ruby on rails - Logging in delayed_job? - Stack Overflow
    August 20, 2015 - permalink - http://stackoverflow.com/questions/14631910/logging-in-delayed-job
    delayed_jobs log rails
  • Using Docker to Build Debian Packages | via @codeship

    via Doo

    August 19, 2015 - permalink - http://blog.codeship.com/using-docker-build-debian-packages/
    build deb docker
  • HAProxy version 1.5.14 - Configuration Manual

    Pour avoir plusieurs certificats

    If a directory name is used instead of a PEM file, then all files found in
    that directory will be loaded in alphabetic order unless their name ends with
    '.issuer' or '.ocsp' (reserved extensions). This directive may be specified
    multiple times in order to load certificates from multiple files or
    directories. The certificates will be presented to clients who provide a valid
    TLS Server Name Indication field matching one of their CN or alt subjects.
    Wildcards are supported, where a wildcard character '*' is used instead of the
    first hostname component (eg: *.example.org matches www.example.org but not
    www.sub.example.org).

    If no SNI is provided by the client or if the SSL library does not support
    TLS extensions, or if the client provides an SNI hostname which does not
    match any certificate, then the first loaded certificate will be presented.
    This means that when loading certificates from a directory, it is highly
    recommended to load the default one first as a file or to ensure that it will
    always be the first one in the directory.

    August 15, 2015 - permalink - http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#5.1-crt
    haproxy ssl
  • The TTY demystified
    August 15, 2015 - permalink - http://www.linusakesson.net/programming/tty/
    tty
  • Blinking Commits

    Yeah !

    August 13, 2015 - permalink - http://blog.annharter.com/2015/08/12/blinking-commits.html
    blink commit git
  • Recalbox: console de jeux et mediacenter à base de Raspberry Pi pour 50€ - Maison et Domotique
    August 11, 2015 - permalink - http://www.maison-et-domotique.com/58063-recalbox-console-de-jeux-et-mediacenter-pour-40e/?utm_medium=feed
    raspberry
  • BabyNES Raspberry Pi B+ case by jrebeiro - Thingiverse
    August 11, 2015 - permalink - http://www.thingiverse.com/thing:449877
    raspberry
  • methods - How do functions use hash arguments in Ruby? - Stack Overflow

    L'appel d'une fonction peut se faire avec ou sans parenthèse :

    foo() ou foo

    Ensuite, un Hash peut avoir plusieurs formes..

    {'a' => 12}
    où 'a' peut être n'importe quoi : string (comme ici), mais aussi objet,
    symbol : exemple :
    {:a => 12}

    La nouvelle syntaxe, valable uniquement si les clés sont des symboles :

    {a: 12, b: 'toto'}

    Et enfin quand on call une méthode qui peut prendre un hash en argument (entre autre), pas besoin de mettre les { }

    foo({a: 12, b:14})
    ou
    foo(a: 12, b:14)
    ou
    foo a: 12, b:14

    August 10, 2015 - permalink - http://stackoverflow.com/questions/16576477/how-do-functions-use-hash-arguments-in-ruby
    arguments hash named rails ruby syntax
  • Rails Login Security — Hakiri

    Sympa ce workflow de protection de login

    August 9, 2015 - permalink - https://hakiri.io/blog/rails-login-security
    devise finance login rails security
  • hold vs pin

    man apt_preferences

    Alternative au apt-mark hold xx :

    Package:
    Pin: origin ""
    Pin-Priority: -1

    August 7, 2015 - permalink - https://links.infomee.fr/shaare/Lu1fTQ
    apt hold pin preferences
  • spotify/docker-gc

    via Doo

    August 7, 2015 - permalink - https://github.com/spotify/docker-gc
    docker gc
  • systemd note

    man systemctl
    man systemd.service

    August 6, 2015 - permalink - https://links.infomee.fr/shaare/i3EbOg
    systemd
  • systemd note

    Certains paquets sont livrés avec leur .service qu'on ne veut pas forcément utiliser
    Par exemple pour redis, on peut vouloir fiare tourner plusieurs redis sur la même machine (en créant nos .service dans /etc/systemd/system)

    Du coup, le .service fourni de base n'est pas vraiment utile :

    systemctl disable redis-server

    Si on veut qu'il n'apparaisse plus du tout dans le listing systemctl :

    rm /lib/systemd/system/redis-server.service
    systemctl reset-failed redis-server

    August 6, 2015 - permalink - https://links.infomee.fr/shaare/6uTaig
    systemd
  • Your Password is Too Damn Short
    August 5, 2015 - permalink - http://blog.codinghorror.com/your-password-is-too-damn-short/
    password
  • Webmail - OVH
    August 1, 2015 - permalink - https://ssl0.ovh.net/fr/
    mail ovh webmail
  • Soartex Fanver - Vanilla - 64x - Minecraft Texture Packs - Curse
    July 31, 2015 - permalink - http://www.curse.com/texture-packs/minecraft/soartex-fanver-vanilla
    minecrat skin
  • Bug Grafana

    css/grafana.dark.min.5aa0b879.css

    .histogram-chart{min-height:250px;

    July 31, 2015 - permalink - https://links.infomee.fr/shaare/amIfTQ
    grafana
  • Introduction to Containers on Linux using LXC
    July 28, 2015 - permalink - https://sysadmincasts.com/episodes/24-introduction-to-containers-on-linux-using-lxc
    cast sysadmin
  • ariejan de vroom

    /me découvre les cherry-pick

    July 28, 2015 - permalink - https://ariejan.net/2010/06/10/cherry-picking-specific-commits-from-another-branch/
    cherry git pick
  • Using NGINX Plus and NGINX to Authenticate Users
    July 27, 2015 - permalink - https://www.nginx.com/blog/nginx-plus-authenticate-users/
    auth ldap nginx
  • Nginx with dynamic upstreams - Tenzer.dk
    July 27, 2015 - permalink - http://tenzer.dk/nginx-with-dynamic-upstreams/
    nginx upstream
  • Truc con du jour

    Ne pas nommer une méthode de controller rails "requete"

    :D

    July 20, 2015 - permalink - https://links.infomee.fr/shaare/xP7CzA
    rails
  • Announcing Chronograf, A Data Visualization Tool For InfluxDB | InfluxDB

    Une web interface pour visualiser les data dans influxdb (par influxdb)
    Petite concurrence à Grafana pour le coup

    July 17, 2015 - permalink - https://influxdb.com/blog/2015/07/07/Announcing-Chronograf-a-data-visualization-tool-for-InfluxDB.html
    grafana influxdb metrologie monitoring
  • ELK est-il en train de ramasser la mise ? - Wooster

    ça bouge ça bouge!

    July 17, 2015 - permalink - https://wooster.checkmy.ws/2015/07/elk-supervision-solution/
    metrologie monitoring
  • Announcing Telegraf, A Metrics Collector For InfluxDB | InfluxDB

    Tiens j'avais loupé ça vu que j'étais en vacances. Donc un nouvel agent de collecte pour envoyer vers influxdb

    July 17, 2015 - permalink - https://influxdb.com/blog/2015/06/19/Announcing-Telegraf-a-metrics-collector-for-InfluxDB.html
    influxdb metrologie monitoring
  • The Rails 4.2 Default Files - RichOnRails.com

    4.2

    July 10, 2015 - permalink - https://richonrails.com/articles/the-rails-4-2-default-files
    rails upgrade
  • bash value toi great for base

    $((10#$number))

    July 9, 2015 - permalink - http://ubuntuforums.org/showthread.php?t=677751
    base bash
  • How Not To Sort By Average Rating

    excellent

    via hacker news

    July 9, 2015 - permalink - http://www.evanmiller.org/how-not-to-sort-by-average-rating.html
    rank ranking rate rating
  • ruby - How to make --no-ri --no-rdoc the default for gem install? - Stack Overflow

    How to make --no-ri --no-rdoc the default for gem install?

    .gemrc :

    gem: --no-document

    July 9, 2015 - permalink - http://stackoverflow.com/questions/1381725/how-to-make-no-ri-no-rdoc-the-default-for-gem-install
    gem ruby
  • Rails 4 Custom Configurations

    Custom configuration in Rails 4.2 with x namespace

    July 9, 2015 - permalink - http://www.richardhsu.me/posts/2015/04/02/rails-4-custom-configurations.html
    config configuraton rails
  • Canicule: Les meilleures nouvelles glaces à Paris | Vogue

    à tester tout ça

    July 4, 2015 - permalink - http://www.vogue.fr/culture/carnet-d-adresses/diaporama/canicule-les-meilleures-nouvelles-glaces-paris/21405/carrousel#les-meilleures-nouvelles-glaces-paris-iceroll
    glace paris
  • Active Record Associations — Ruby on Rails Guides

    (Petite note pour ne pas oublier)

    Les ORM c'est cool.. mais franchement le temps que ça prend à maitriser... je me demande si ça en vaut vraiment la peine.

    Là, je viens de passer plus d'une heure à debug car je voulais faire un update dans le cas d'un has_many entre foo et bar :
    - foo = Foo.find(42)
    - set une collections d'objets : foo.bars = [bla,ble,blo]
    - puis foo.save

    Seulement le foo.save est de trop : dès l'instant ou la collection est set, l'objet est sauvé en base (update)

    Donc sans les validations de minimum et de maximum décrite dans le model foo.

    Et tout ça seulement dans le cas d'un update (dans le cas d'un create, ça ne trigger rien).

    pouah

    July 4, 2015 - permalink - http://guides.rubyonrails.org/association_basics.html#has-many-association-reference
    active_record orm rails
  • Debugging memory leaks in Ruby
    June 29, 2015 - permalink - http://samsaffron.com/archive/2015/03/31/debugging-memory-leaks-in-ruby
    debug memory rails
  • What Are the Most Popular HTPC Components? | My Media Experience | My Media Experience
    June 29, 2015 - permalink - http://mymediaexperience.com/best-htpc-awards-what-our-readers-have-purchased/
    htpc kodi xbmc
  • Community | GitLab

    gitlab a racheté gitorious il y a un moment, donc on a pour résumer :
    - gitlab
    - gogs

    June 25, 2015 - permalink - https://about.gitlab.com/community/
    github
  • Proactively Handling Certificate Expiration With ssl-cert-check
    June 24, 2015 - permalink - http://prefetch.net/articles/checkcertificate.html
    ssl
  • http://www.mattermost.org/
    June 24, 2015 - permalink - http://www.mattermost.org/
    irc opensource slack
  • Insérer de l'ascii dans vim

    en mode insert : ^V et le code ascii

    exemple :ctrl V 003

    June 19, 2015 - permalink - https://links.infomee.fr/shaare/a268SQ
    ascii vim
  • How To Use DM-Crypt to Create an Encrypted Volume on an Ubuntu VPS | DigitalOcean
    June 19, 2015 - permalink - https://www.digitalocean.com/community/tutorials/how-to-use-dm-crypt-to-create-an-encrypted-volume-on-an-ubuntu-vps
    backup dmcrypt
  • irssi activity

    /set activity_hide_targets #channel #channel2 #channel3
    /set activity_hide_level QUITS JOINS PARTS KICKS MODES TOPIC NICKS

    /IGNORE -network FREEN * PARTS
    /IGNORE -network FREEN * QUIT
    /IGNORE -network FREEN * JOIN

    http://www.irssi.org/documentation/manual

    voir 10.

    June 19, 2015 - permalink - https://links.infomee.fr/shaare/SuKgDQ
    ignore irssi
  • Installed gnome extensions

    Message notifier
    Panel osd
    taskbar
    topicons

    June 17, 2015 - permalink - https://links.infomee.fr/shaare/cZmXZg
    extensions gnome
  • Brubeck, a statsd-compatible metrics aggregator - GitHub Engineering

    github releases Brubeck, a statsd compatible metric aggregator!!

    A quick look at the /proc/net/dev-generated graphs on the machine made the situation very obvious: slowly but steadily over time, the percentage of UDP packets that were being dropped in our monitoring server was increasing. From 3% upwards to 40%. We were dropping almost half of our metrics!

    :-)

    June 16, 2015 - permalink - http://githubengineering.com/brubeck/
    drop github statsd udp
  • kilimchoi/engineering-blogs
    June 16, 2015 - permalink - https://github.com/kilimchoi/engineering-blogs
    blog company github
  • boycott docker
    June 15, 2015 - permalink - http://www.boycottdocker.org/
    docker
  • Logstash Grok Speed and Performance Improvements
    June 15, 2015 - permalink - http://ghost.frodux.in/logstash-grok-speeds/
    fix logstash perf
  • Removing Turbolinks from Rails 4 - Literate Programming
    June 15, 2015 - permalink - http://blog.steveklabnik.com/posts/2013-06-25-removing-turbolinks-from-rails-4
    rails turbolink
  • rsync fichier transférés

    rsync -ai source/ dest/ | grep -vE '^.'

    L'option -i ajoute des informations pour chaque fichier (voir man)
    Ici on filtre tout ce qui commence par un point == les fichiers/dossier qui n'ont pas été transférés

    June 15, 2015 - permalink - https://links.infomee.fr/shaare/ZVn1zw
    rsync
  • Gogs: Go Git Service - A self-hosted Git service written in Go

    Un github like

    June 15, 2015 - permalink - http://gogs.io/
    git github
  • httpbin(1): HTTP Client Testing Service

    Peut etre utile

    • https://github.com/vcr/vcr
    • https://github.com/kevin1024/vcrpy
    June 12, 2015 - permalink - http://httpbin.org/
    api http service test
▼ Load 50 more