4337 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
◄Older
page 37 / 217
Newer►
  • thumbnail
    Unix/Linux find and sort by date modified - Super User

    find . -printf "%T@ %Tc %p\n" | sort -n

    printf arguments from man find:

    %Tk: File's last modification time in the format specified by k.
    
    @: seconds since Jan. 1, 1970, 00:00 GMT, with fractional part.
    
    c: locale's date and time (Sat Nov 04 12:02:33 EST 1989).
    
    %p: File's name.
    15 mai 2018 à 09:46:01 UTC+2 - permalink - archive.org - https://superuser.com/questions/294161/unix-linux-find-and-sort-by-date-modified
    find order
  • Note: docker clean

    docker system df
    docker system prune
    docker system prune --all
    docker volume prune

    14 mai 2018 à 11:09:07 UTC+2 - permalink - archive.org - https://links.infomee.fr/?9wYw4w
    clean df docker
  • thumbnail
    Git Alias to Show Affected Files in Last N Commits (Example)

    Add this to your user's ~/.gitconfig under [alias] to make it globally available:

    lsch = "!f() { git diff --name-status -r "HEAD~$1"; }; f"

    You can invoke this to retrieve all affected files in the last 7 commits like so:

    $ git lsch 7

    3 mai 2018 à 15:11:34 UTC+2 - permalink - archive.org - https://coderwall.com/p/8rtfgg/git-alias-to-show-affected-files-in-last-n-commits
    alias git
  • thumbnail
    Feathers | Instant Realtime and REST APIs for Node.js
    21 avril 2018 à 13:04:56 UTC+2 - permalink - archive.org - https://feathersjs.com/
    js rest
  • Understanding how uid and gid work in Docker containers
    18 avril 2018 à 14:48:20 UTC+2 - permalink - archive.org - https://medium.com/@mccode/understanding-how-uid-and-gid-work-in-docker-containers-c37a01d01cf
    docker gid uid
  • Why option rotate in resolv.conf picks up second nameserver as first every time? - Red Hat Customer Portal

    this is insane

    18 avril 2018 à 09:59:55 UTC+2 - permalink - archive.org - https://access.redhat.com/solutions/1426263
    dns redhat resolv
  • Routing ( FOS Rest Bundle Docs)

    this is insane

    17 avril 2018 à 14:35:34 UTC+2 - permalink - archive.org - https://symfony.com/doc/current/bundles/FOSRestBundle/5-automatic-route-generation_single-restful-controller.html
    rest symfony
  • Symfony Security Monitoring
    5 avril 2018 à 14:52:01 UTC+2 - permalink - archive.org - https://security.symfony.com/
    symfony
  • 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
Links per page: 20 50 100
◄Older
page 37 / 217
Newer►
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation