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.
    May 15, 2018 at 9:46:01 AM GMT+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

    May 14, 2018 at 11:09:07 AM GMT+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

    May 3, 2018 at 3:11:34 PM GMT+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
    April 21, 2018 at 1:04:56 PM GMT+2 - permalink - archive.org - https://feathersjs.com/
    js rest
  • Understanding how uid and gid work in Docker containers
    April 18, 2018 at 2:48:20 PM GMT+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

    April 18, 2018 at 9:59:55 AM GMT+2 - permalink - archive.org - https://access.redhat.com/solutions/1426263
    dns redhat resolv
  • Routing ( FOS Rest Bundle Docs)

    this is insane

    April 17, 2018 at 2:35:34 PM GMT+2 - permalink - archive.org - https://symfony.com/doc/current/bundles/FOSRestBundle/5-automatic-route-generation_single-restful-controller.html
    rest symfony
  • Symfony Security Monitoring
    April 5, 2018 at 2:52:01 PM GMT+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.

    March 26, 2018 at 9:35:40 AM GMT+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

    March 24, 2018 at 10:33:44 AM GMT+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

    March 23, 2018 at 11:38:49 AM GMT+1 - permalink - archive.org - https://korben.info/conference-sur-lanalyse-de-malwares.html
    conf ovh security
  • EC2 Instance Types & Pricing
    March 20, 2018 at 9:27:45 AM GMT+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

    March 16, 2018 at 11:56:12 AM GMT+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
    February 14, 2018 at 5:31:51 AM GMT+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.

    January 25, 2018 at 10:50:40 AM GMT+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
    January 17, 2018 at 4:47:57 PM GMT+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...

    -,-

    January 11, 2018 at 10:58:59 AM GMT+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
    January 6, 2018 at 9:13:11 AM GMT+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

    :-/

    January 5, 2018 at 3:25:27 PM GMT+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

    January 5, 2018 at 2:30:56 PM GMT+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