4349 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
◄Older
page 38 / 218
Newer►
  • thumbnail
    javascript - Is a list/array valid JSON? - Stack Overflow

    31
    down vote
    accepted

    Both forms are valid. However, for an API, I would recommend the second form. The reason is that it gives you a path for expansion of your API.

    For example, if you have an API getUsersInGroup which returns an array of user objects, and later you decide you want to include, say, some aggregate statistics about the users being returned, there's no easy way to do that without breaking existing clients (or including lots of redundant data in each user object). If you use an object, you simply add another field to the object which is silently ignored by clients on a previous version of the API.

    In short, try to avoid top-level primitives wherever possible in your API, and you'll find it easier to expand in the future.

    26 mars 2018 à 09:35:40 UTC+2 - permalink - archive.org - https://stackoverflow.com/questions/19623339/is-a-list-array-valid-json
    api json
  • SELECT – Redis

    Today I worked with an app storing its key not into the default 'database/namespace' in redis.

    (default is 0)

    The app stores into 12. So I had to 'select 12' before being able to query keys

    24 mars 2018 à 10:33:44 UTC+1 - permalink - archive.org - https://redis.io/commands/select
    redis
  • Conférence sur l’analyse de malwares – Korben

    interessant, ça a l'air sympa comme job!

    TIL : strings command

    23 mars 2018 à 11:38:49 UTC+1 - permalink - archive.org - https://korben.info/conference-sur-lanalyse-de-malwares.html
    conf ovh security
  • EC2 Instance Types & Pricing
    20 mars 2018 à 09:27:45 UTC+1 - permalink - archive.org - http://ec2pricing.net/beta/
    compare ec2 list price
  • thumbnail
    Configure HAProxy for userlists

    Create SHA512 passwords

    # make sure to use a leading space so that the command is not stored in your bash history!!
     mkpasswd -m sha-512 password1
    # generates -> $6$yMgsow58.g/Z$mBjHfdVzqcF/LN.iwV23Eyqg.yGPTsp9pOwaStsJ6c4I4zL7BhucVVAkv5guf7OVRr8Pw0mHF4NrWBRCG5ci7/
     mkpasswd -m sha-512 password2
    # generates -> $6$RZ86vRkQ$aRKN1HOsk6bDHBbMhS7jSo/p1NGFl4PvwY3KpU.72i./LvITi41nL84EkxOFXl.6Bmhynj/L7pYbfF0rUHtOB0

    Edit /etc/haproxy/haproxy.cfg

    userlist UsersFor_Ops
      group AdminGroup users userone,usertwo
      user userone password $6$yMgsow58.g/Z$mBjHfdVzqcF/LN.iwV23Eyqg.yGPTsp9pOwaStsJ6c4I4zL7BhucVVAkv5guf7OVRr8Pw0mHF4NrWBRCG5ci7/
      user usertwo password $6$RZ86vRkQ$aRKN1HOsk6bDHBbMhS7jSo/p1NGFl4PvwY3KpU.72i./LvITi41nL84EkxOFXl.6Bmhynj/L7pYbfF0rUHtOB0


    ...


    backend myserver
        mode    http
        server  myserver   1.1.1.1:80
        acl AuthOkay_Ops http_auth(UsersFor_Ops)
        http-request auth realm MyAuthRealm if !AuthOkay_Ops

    16 mars 2018 à 11:56:12 UTC+1 * - permalink - archive.org - https://gist.github.com/Iristyle/5005653
    haproxy
  • Pourquoi je laisse tomber un emploi payé plus de 5.000 Euros net / mois - Pas de Stress
    14 février 2018 à 05:31:51 UTC+1 - permalink - archive.org - https://www.pas-de-stress.com/pourquoi-je-laisse-tomber-un-emploi-paye-plus-de-5-000-euros-net-mois/
    business job
  • thumbnail
    Git push rejected after feature branch rebase - Stack Overflow

    Instead of using -f or --force developers should use

    --force-with-lease

    Why? Because it checks the remote branch for changes which is absolutely a good idea. Let's imagine that James and Lisa are working on the same feature branch and Lisa has pushed a commit. James now rebases his local branch and is rejected when trying to push. Of course James thinks this is due to rebase and uses --force and would rewrite all Lisa's changes. If James had used --force-with-lease he would have received a warning that there are commits done by someone else. I don't see why anyone would use --force instead of --force-with-lease when pushing after a rebase.

    25 janvier 2018 à 10:50:40 UTC+1 - permalink - archive.org - https://stackoverflow.com/questions/8939977/git-push-rejected-after-feature-branch-rebase
    git push rebase
  • 4 AJAX Patterns For Vue.js Apps
    17 janvier 2018 à 16:47:57 UTC+1 - permalink - archive.org - https://vuejsdevelopers.com/2017/08/28/vue-js-ajax-recipes/
    pattern vue xhr
  • Quickstart — Requests 2.18.4 documentation

    Good to know because it hurts me so bad:
    When doing a put/post request with requests library, if the response is a redirect, request do the request again BUT with GET method...

    -,-

    11 janvier 2018 à 10:58:59 UTC+1 - permalink - archive.org - http://docs.python-requests.org/en/master/user/quickstart/#redirection-and-history
    python redirect requests
  • thumbnail
    A Masscan Tutorial and Primer
    6 janvier 2018 à 09:13:11 UTC+1 - permalink - archive.org - https://danielmiessler.com/study/masscan/
    nmap port scan
  • Note: Docker space disk

    My /var/lib/docker folder was non empty (12GB) event after big cleanup (containers, images, volumes..)

    It's a known issue with some layers not removed when you do docker rm -f (force)

    Solution : service docker stop; rm -rf /var/lib/docker/*; service docker start

    :-/

    5 janvier 2018 à 15:25:27 UTC+1 * - permalink - archive.org - https://links.infomee.fr/?22DTwA
    docker
  • thumbnail
    Is there an easy way to "restart" a tmux pane? - Unix & Linux Stack Exchange

    respawn-pane -k

    better than kill-pane

    5 janvier 2018 à 14:30:56 UTC+1 - permalink - archive.org - https://unix.stackexchange.com/questions/88392/is-there-an-easy-way-to-restart-a-tmux-pane
    pane tmux
  • thumbnail
    unicode - grepping binary files and UTF16 - Stack Overflow

    The easiest way is to just convert the text file to utf-8 and pipe that to grep:

    iconv -f utf-16 -t utf-8 file.txt | grep query

    5 janvier 2018 à 09:59:26 UTC+1 - permalink - archive.org - https://stackoverflow.com/questions/3752913/grepping-binary-files-and-utf16
    grep utf
  • Thunderbolt 3, USB-C, USB 3.1 : ce qu'il faut savoir | MacGeneration
    4 janvier 2018 à 21:40:19 UTC+1 - permalink - archive.org - https://www.macg.co/mac/2015/06/thunderbolt-3-usb-c-usb-31-ce-quil-faut-savoir-89268
    usb
  • thumbnail
    How To Build A Simple Single Page Application Using Vue 2 (Part 1) ― Scotch
    2 janvier 2018 à 21:04:10 UTC+1 - permalink - archive.org - https://scotch.io/tutorials/how-to-build-a-simple-single-page-application-using-vue-2-part-1
    js spa vue
  • ldapsearch for operational attribute | CA Communities

    The operational attributes contained in an entry can be returned by ldapsearch by:

    Explicitly listing them

    ldapsearch -x -h host:port -b c=au "(oc=*)" createTimestamp modifyTimestamp

    Or by returning all of them with the special + character

    ldapsearch -x -h host:port -b c=au "(oc=*)" +

    Or all attributes including operational attributes can be returned by including "*" +

    ldapsearch -x -h host:port -b c=au "(oc=*)" "*" +
    28 décembre 2017 à 14:11:26 UTC+1 - permalink - archive.org - https://communities.ca.com/thread/241762082-ldapsearch-for-operational-attribute
    ldap
  • mod_log_config - Apache HTTP Server Version 2.4

    %{VARNAME}o The contents of VARNAME: header line(s) in the reply.
    %{VARNAME}i The contents of VARNAME: header line(s) in the request sent to the server.

    22 décembre 2017 à 14:37:08 UTC+1 - permalink - archive.org - http://httpd.apache.org/docs/current/mod/mod_log_config.html#logformat
    apache header log
  • Note: Escape game Annecy

    https://secretroom.fr/
    https://www.laclefdeschampsannecy.com/
    http://www.mysteresdulac.com/escape-games-annecy
    https://www.latelierdesenigmes.fr/en/

    21 décembre 2017 à 11:23:13 UTC+1 - permalink - archive.org - https://links.infomee.fr/?pSrqmQ
    escape game
  • Performance (Symfony 3.4 Docs)
    17 décembre 2017 à 14:51:37 UTC+1 - permalink - archive.org - http://symfony.com/app.php/doc/3.4/performance.html
    perf php symfony
  • DevOps, Docker, and Empathy

    from ifttt pocket

    14 décembre 2017 à 09:19:39 UTC+1 * - permalink - archive.org - http://jpetazzo.github.io/2017/10/31/devops-docker-empathy/
    devops docker
Links per page: 20 50 100
◄Older
page 38 / 218
Newer►
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation