4337 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
◄Older
page 40 / 217
Newer►
  • 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

    October 20, 2017 at 10:09:59 AM GMT+2 * - permalink - archive.org - https://statico.github.io/vim3.html
    vim
  • Pencil and Paper Games

    Via sebsauvage

    October 13, 2017 at 5:43:49 PM GMT+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

    October 12, 2017 at 11:03:01 AM GMT+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

    October 10, 2017 at 11:21:10 AM GMT+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

    October 7, 2017 at 7:53:30 AM GMT+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.
    October 6, 2017 at 2:34:21 PM GMT+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]}
    October 5, 2017 at 4:32:08 PM GMT+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.

    October 5, 2017 at 3:18:20 PM GMT+2 - permalink - archive.org - https://github.com/moby/moby/issues/3465#issuecomment-313549657
    docker
  • thumbnail
    jpetazzo/critmux: Docker + CRIU + tmux = magic!
    October 5, 2017 at 3:15:00 PM GMT+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

    September 27, 2017 at 11:53:28 AM GMT+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

    September 22, 2017 at 10:19:31 AM GMT+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

    September 22, 2017 at 10:14:20 AM GMT+2 - permalink - archive.org - http://docs.aws.amazon.com/AmazonS3/latest/user-guide/create-lifecycle.html
    aws policy s3
  • thumbnail
    Redirect HTTP Traffic to HTTPS Using ELB

    Un peu fatiguant de ne pas pouvoir configurer ce genre de chose sur l'ELB directement...

    Redirect http call to https

    RewriteEngine On
    RewriteCond %{HTTP:X-Forwarded-Proto} ^http$
    RewriteRule . https://%{HTTP:Host}%{REQUEST_URI} [L,R=permanent]

    September 18, 2017 at 2:36:53 PM GMT+2 * - permalink - archive.org - https://aws.amazon.com/premiumsupport/knowledge-center/redirect-http-https-elb/
    apache elb https rewrite
  • library/php - Docker Hub

    Quand on utilise une image comme celle là, il ne faut pas faire n'importe quoi comme installer des packages php5-extensions, ce n'est pas du tout prévu... Il faut suivre la doc et utiliser les outils mis à dispo sinon on se retrouve un Dockerfile qui n'a aucun sens...

    Dans ma todo : migrer ces "choses" pour utiliser une image debian de base

    September 6, 2017 at 9:49:42 AM GMT+2 - permalink - archive.org - https://hub.docker.com/_/php/
    docker php
  • thumbnail
    How to list all tags for a Docker image on a remote registry? - Stack Overflow

    wget -q https://registry.hub.docker.com/v1/repositories/debian/tags -O - | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | tr '}' '\n' | awk -F: '{print $3}'

    September 6, 2017 at 9:00:07 AM GMT+2 - permalink - archive.org - https://stackoverflow.com/questions/28320134/how-to-list-all-tags-for-a-docker-image-on-a-remote-registry
    docker remote tag
  • GitHub - abutaha/aws-es-proxy: aws-es-proxy is a small web server application sitting between your HTTP client (browser, curl, etc...) and Amazon Elasticsearch service.

    Amazon Elasticsearch access control may be based on IAM account with signed request mechanism
    One way not to rewrite all applications is using such a proxy

    September 5, 2017 at 5:35:53 PM GMT+2 * - permalink - archive.org - https://github.com/abutaha/aws-es-proxy
    aws elasticsearch es
  • thumbnail
    How to Configure Symfony to Work behind a Load Balancer or a Reverse Proxy (current)
    August 30, 2017 at 11:23:47 AM GMT+2 - permalink - archive.org - http://symfony.com/doc/current/request/load_balancer_reverse_proxy.html
    header lb proxy symfony
  • How-to Debug a Running Docker Container from a Separate Container – Medium
    August 25, 2017 at 1:35:42 PM GMT+2 - permalink - archive.org - https://medium.com/@rothgar/how-to-debug-a-running-docker-container-from-a-separate-container-983f11740dc6
    debug docker
  • Passbolt | Open source password manager for teams
    August 25, 2017 at 8:52:38 AM GMT+2 - permalink - archive.org - https://www.passbolt.com/
    manager password
  • Formation VueJS 2 | Grafikart.fr

    Une bonne intro en Fr et en vidéo de VueJS

    August 24, 2017 at 2:19:13 PM GMT+2 - permalink - archive.org - https://www.grafikart.fr/formations/vuejs
    js vuejs
Links per page: 20 50 100
◄Older
page 40 / 217
Newer►
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation