4345 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
◄Older
page 40 / 218
Newer►
  • Learn just enough Linux to get things done — petralia

    for beginners ;)

    17 novembre 2017 à 08:41:29 UTC+1 - permalink - archive.org - http://alexpetralia.com/posts/2017/6/26/learning-linux-bash-to-get-things-done
    linux
  • JoliCode - Devez-vous migrer vers Elasticsearch 6 ?

    Vous le savez peut-être, Algolia trie les documents lors de l’indexation, et non lors de la recherche. La raison est simple : c’est beaucoup plus rapide lors des recherches si les documents sont déjà triés sur le disque dur ! Cela permet, entre autre, de s’arrêter dès les dix premiers résultats trouvés – plutôt que de récupérer les 4 millions de hits et de les trier en mémoire juste pour remonter le top 10…

    17 novembre 2017 à 08:41:14 UTC+1 - permalink - archive.org - https://jolicode.com/blog/devez-vous-migrer-vers-elasticsearch-6
    elasticsearch
  • Creating a persistent ssh tunnel in Ubuntu |

    autossh

    15 novembre 2017 à 09:06:12 UTC+1 - permalink - archive.org - https://erik.torgesta.com/2013/12/creating-a-persistent-ssh-tunnel-in-ubuntu/
    ssh tunnel
  • thumbnail
    Des packs d'icones pour vos projets de développement - Korben
    7 novembre 2017 à 14:03:27 UTC+1 - permalink - archive.org - https://korben.info/icones-pour-developpement-web.html
    icon
  • Note: rebase edit commit delete file

    git rebase -i $parent_hash
    git rm file
    git commit --amend
    git rebase --continue

    1 novembre 2017 à 10:29:01 UTC+1 - permalink - archive.org - https://links.infomee.fr/?13Rz2Q
    git
  • The Symfony 3.3 DI Container Changes Explained (autowiring, _defaults, etc) (Symfony Docs)
    31 octobre 2017 à 12:01:54 UTC+1 - permalink - archive.org - http://symfony.com/doc/current/service_container/3.3-di-changes.html
    service symfony
  • How Merkle trees enable the decentralized Web • Tara Vancil
    31 octobre 2017 à 07:31:30 UTC+1 - permalink - archive.org - https://taravancil.com/blog/how-merkle-trees-enable-decentralized-web/
    merkle tree
  • PragmataPro coding font designed by Fabrizio Schiavi
    20 octobre 2017 à 11:13:08 UTC+2 - permalink - archive.org - https://www.fsd.it/shop/fonts/pragmatapro/
    font
  • thumbnail
    Vim After 15 Years | Ian Langworth’s Things of Variable Interest

    https://github.com/junegunn/fzf
    https://vimawesome.com/plugin/ack-vim
    https://vimawesome.com/plugin/unimpaired-vim

    20 octobre 2017 à 10:09:59 UTC+2 * - permalink - archive.org - https://statico.github.io/vim3.html
    vim
  • Pencil and Paper Games

    Via sebsauvage

    13 octobre 2017 à 17:43:49 UTC+2 - permalink - archive.org - http://www.papg.com/
    game jeu papier
  • thumbnail
    shell - bash / sh script to replace text between some tags/strings in a text file - Unix & Linux Stack Exchange

    Use

    sed '/#start/,/#end/replace_command'

    For example, if the file is called myconfig, and you want to replace "allow" with "deny" in that section, you could say

    sed '/#start/,/#end/s/allow/deny/' myconfig

    example

    sed -i -r "/<elasticConfig>/,/<\/elasticConfig>/s,<enabled>.+</enabled>,<enabled>false</enabled>," file.xml

    12 octobre 2017 à 11:03:01 UTC+2 * - permalink - archive.org - https://unix.stackexchange.com/questions/272061/bash-sh-script-to-replace-text-between-some-tags-strings-in-a-text-file
    awk replace sed
  • Using systemd to control the Docker daemon - Docker, Inc.

    The nice thing about the command above is that it shows a unified view of all options and takes into consideration any overrides that may have been applied.
    To change the value of an option, ExecStart in this case, do the following:

    [ec2-user@ip-10-0-46-113 ~]$ sudo systemctl edit docker

    This will create the necessary directory structure under /etc/systemd/system/docker.service.dand open an editor (using the default editor configured for the user) to the override file. Add the section below into the editor:

    [Service]
    ExecStart=
    ExecStart=/usr/bin/docker daemon -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock

    It was necessary to clear out ExecStart using ExecStart= before setting it to the override value. This is only required for some options and most options in the configuration file would not need to be cleared like this

    10 octobre 2017 à 11:21:10 UTC+2 - permalink - archive.org - https://success.docker.com/KBase/Using_systemd_to_control_the_Docker_daemon
    docker systemd
  • A couple words on Arrays in Ruby - Ruby Blog

    <3

    7 octobre 2017 à 07:53:30 UTC+2 - permalink - archive.org - http://rubyblog.pro/2017/09/couple-words-on-arrays
    array ruby
  • Note:

    SYNOPSIS
    get-login
    [--registry-ids <value> [<value>...]]
    [--include-email | --no-include-email]

    OPTIONS
    --registry-ids (string) A list of AWS account IDs that correspond to
    the Amazon ECR registries that you want to log in to.

       --include-email | --no-include-email (boolean) Specify if the '-e' flag
       should  be  included in the 'docker login' command. The '-e' option has
       been deprecated and is removed in docker version 17.06 and  later.  You
       must specify --no-include-email if you're using docker version 17.06 or
       later. The default behavior is to include the '-e' flag in the  'docker
       login' output.
    6 octobre 2017 à 14:34:21 UTC+2 - permalink - archive.org - https://links.infomee.fr/?ECje8g
    aws ecr
  • Note: bash get random element from string "elem1;elem2;elem3"
    #!/bin/bash
    
    servers="server1;server2;server3"
    
    IFS=';' read -r -a array <<< "$servers"
    
    rand=$[ $RANDOM % ${#array[@]} ]
    
    echo ${array[$rand]}
    5 octobre 2017 à 16:32:08 UTC+2 * - permalink - archive.org - https://links.infomee.fr/?wfMNvw
    bash random
  • thumbnail
    Reset properties inherited from parent image · Issue #3465 · moby/moby

    t also adds complexity to the Dockerfile language when there are clear workarounds. Don't push so much config in the parent Dockerfile and leave if for the inheriting images instead. (aka: stop sourcing random images on docker hub :D)

    Since docker 17.05 there is also a new way to do multi-stage builds that removes most of the need for this issue (this is a single Dockerfile):

    First import the original image

    FROM nginx AS source-image

    Second step of the build, start with an empty image

    FROM scratch

    Copy the data from the original image

    COPY --from=source-image / /

    Re-define all the config

    EXPOSE 80
    STOPSIGNAL SIGTERM
    CMD ["nginx", "-g", "daemon off;"]

    EDIT: Forgot to say, the second solution squashes all previous layers. I don't think it's a big deal but it's good to know.

    5 octobre 2017 à 15:18:20 UTC+2 - permalink - archive.org - https://github.com/moby/moby/issues/3465#issuecomment-313549657
    docker
  • thumbnail
    jpetazzo/critmux: Docker + CRIU + tmux = magic!
    5 octobre 2017 à 15:15:00 UTC+2 - permalink - archive.org - https://github.com/jpetazzo/critmux
    criu docker tmux
  • thumbnail
    How to find/identify large files/commits in Git history? - Stack Overflow

    he Base Script

    This bash "one-liner" displays all blob objects in the repository, sorted from smallest to largest.
    For my sample repo, it ran about 100 times faster than the other ones found here.

    git rev-list --objects --all \
    | git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \
    | awk '/^blob/ {print substr($0,6)}' \
    | sort --numeric-sort --key=2 \
    | cut --complement --characters=13-40 \
    | numfmt --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest

    This will generate nice human-readable output like this:

    ...
    0d99bb931299 530KiB path/to/some-image.jpg
    2ba44098e28f 12MiB path/to/hires-image.png
    bd1741ddce0d 63MiB path/to/some-video-1080p.mp4

    Filtering

    To achieve further filtering, insert any of the following lines before the sort line.

    To exclude files that are present in HEAD, insert the following line:

    | grep -vF "$(git ls-tree -r HEAD | awk '{print $3}')" \

    To show only files exceeding given size (e.g. 1 MiB = 220 B), insert the following line:

    | awk '$2 >= 2^20' \

    Output for Computers

    To generate output that's more suitable for further processing by computers, omit the last two lines of the base script. They do all the formatting. This will leave you with something like this:

    ...
    0d99bb93129939b72069df14af0d0dbda7eb6dba 542455 path/to/some-image.jpg
    2ba44098e28f8f66bac5e21210c2774085d2319b 12446815 path/to/hires-image.png
    bd1741ddce0d07b72ccf69ed281e09bf8a2d0b2f 65183843 path/to/some-video-1080p.mp4

    27 septembre 2017 à 11:53:28 UTC+2 - permalink - archive.org - https://stackoverflow.com/questions/10622179/how-to-find-identify-large-files-commits-in-git-history
    blob git
  • Note: List users and their inline attached policies

    for user in $(aws iam list-users|jq '.Users|.[]|.UserName' -r); do echo $user;aws iam list-user-policies --user-name $user; done

    22 septembre 2017 à 10:19:31 UTC+2 - permalink - archive.org - https://links.infomee.fr/?xhJZ2g
    aws iam
  • How Do I Create a Lifecycle Policy for an S3 Bucket? - Amazon Simple Storage Service

    To apply this lifecycle rule to all objects in the bucket, choose Next.

    That's why wildcard was not working :D

    22 septembre 2017 à 10:14:20 UTC+2 - permalink - archive.org - http://docs.aws.amazon.com/AmazonS3/latest/user-guide/create-lifecycle.html
    aws policy s3
Links per page: 20 50 100
◄Older
page 40 / 218
Newer►
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation