4337 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
◄Older
page 41 / 217
Newer►
  • thumbnail
    How to Set external Parameters in the Service Container (2.7)
    August 23, 2017 at 11:03:46 AM GMT+2 - permalink - archive.org - https://symfony.com/doc/2.7/configuration/external_parameters.html
    env symfony
  • thumbnail
    HTML: Simple Maintenance Page · GitHub

    <!doctype html>
    <title>Site Maintenance</title>
    <style>
    body { text-align: center; padding: 150px; }
    h1 { font-size: 50px; }
    body { font: 20px Helvetica, sans-serif; color: #333; }
    article { display: block; text-align: left; width: 650px; margin: 0 auto; }
    a { color: #dc8100; text-decoration: none; }
    a:hover { color: #333; text-decoration: none; }
    </style>

    <article>
    <h1>We’ll be back soon!</h1>
    <div>
    <p>Sorry for the inconvenience but we’re performing some maintenance at the moment. If you need to you can always <a href="mailto:#">contact us</a>, otherwise we’ll be back online shortly!</p>
    <p>— The Team</p>
    </div>
    </article>

    August 23, 2017 at 10:19:43 AM GMT+2 - permalink - archive.org - https://gist.github.com/pitch-gist/2999707
    maintenance page
  • WINDOWS93
    August 21, 2017 at 4:07:34 PM GMT+2 - permalink - archive.org - http://www.windows93.net/
    joke
  • thumbnail
    linux - tmux: hangs and do not load, and do not respond to any option command - Stack Overflow

    Parfois, après avoir été déco, il arrive que mon tmux 'freeze' : je peux attach, detach, mais je ne peux rien faire dans les window

    Apparement cela vient de mon client qui s'est mal détaché. Pour régler le problème :

    tmux list-clients
    tmux detach-client

    August 21, 2017 at 11:11:36 AM GMT+2 - permalink - archive.org - https://stackoverflow.com/questions/7408068/tmux-hangs-and-do-not-load-and-do-not-respond-to-any-option-command
    bug tmux
  • Afraid of Makefiles? Don't be! | Matthias Endler
    August 20, 2017 at 10:43:36 AM GMT+2 - permalink - archive.org - https://matthias-endler.de/2017/makefiles/
    make makefile
  • thumbnail
    How to Set external Parameters in the Service Container (2.7)

    En gros pour dockeriser une app symfony pre 3.2 (ET 2.7 minimum) :

    • il faut utiliser des env var speciales : SYMFONY__*
    • faire en sorte que apache les passent en contexte à l'application (PassEnv)
    • Bien sur il faut que tout ça soit dynamique... (entrypoint, sed conf apache..)

    sed -i "s/PLACEHOLDER/PassEnv $(env|grep -Po 'SYMFONY__[^=]+'| paste -s -d' ')/" test.file

    A partir de symfony 3.2 c'est beaucoup plus facile car les variables d'environnements sont directement accessibles dans les fichiers de configuration

    August 18, 2017 at 5:33:48 PM GMT+2 * - permalink - archive.org - http://symfony.com/doc/2.7/configuration/external_parameters.html
    docker php symfony
  • http://fakeupdate.net/
    August 18, 2017 at 3:34:44 PM GMT+2 - permalink - archive.org - http://fakeupdate.net/
    joke
  • thumbnail
    phpredis/cluster.markdown at develop · phpredis/phpredis · GitHub

    redis cluster php session handler

    August 18, 2017 at 2:06:35 PM GMT+2 - permalink - archive.org - https://github.com/phpredis/phpredis/blob/develop/cluster.markdown#session-handler
    cluster php redis
  • Note: List item in dynamo db table

    aws dynamodb scan --table-name foo

    August 18, 2017 at 11:10:05 AM GMT+2 - permalink - archive.org - https://links.infomee.fr/?AqSZDA
    aws dynamodb
  • Note: Delete dynamo db item in cmdline

    aws dynamodb delete-item --table-name foo --key "{\"id\":{\"S\":\"$id\"}}"

    August 18, 2017 at 11:08:55 AM GMT+2 - permalink - archive.org - https://links.infomee.fr/?bx3KXg
    aws dynamodb
  • thumbnail
    plexinc/pms-docker: Plex Media Server Docker repo, for all your PMS docker needs.
    July 25, 2017 at 3:26:27 PM GMT+2 - permalink - archive.org - https://github.com/plexinc/pms-docker
    plex streaming
  • upload-server-certificate — AWS CLI 1.11.124 Command Reference

    --path

    July 25, 2017 at 11:07:06 AM GMT+2 - permalink - archive.org - http://docs.aws.amazon.com/cli/latest/reference/iam/upload-server-certificate.html
    aws iam ssl
  • SET – Redis

    Un lock simple avec un seul redis master :

    SET lock_name random_value NX EX 250

    NX : crée seulement si existe
    EX : timeout en seconde

    Retirer le lock seulement en donnant la valeur de creation du lock

    Dans le cas de plusieurs serveurs redis pas du tout synchronisés, c'est plus compliqué (distributed lock) --> https://redis.io/topics/distlock

    M'enfin c'est quand meme plus simple d'utiliser une queue (RMQ, SQS..) quand on peut

    July 17, 2017 at 3:12:40 PM GMT+2 * - permalink - archive.org - https://redis.io/commands/set
    lock redis
  • Is Ruby Too Slow For Web-Scale?
    July 14, 2017 at 8:56:00 AM GMT+2 - permalink - archive.org - https://www.speedshop.co/2017/07/11/is-ruby-too-slow-for-web-scale.html
    perf rails ruby scale
  • SQS — Boto 3 Docs 1.4.4 documentation

    On peut "remettre" ou plutot rendre disponible de nouveau un message SQS en changeant sa visibility timeout à 0

    July 12, 2017 at 11:37:59 AM GMT+2 - permalink - archive.org - http://boto3.readthedocs.io/en/latest/reference/services/sqs.html#SQS.Client.change_message_visibility
    aws sqs
  • Note: Count object in bucket/folder

    aws s3 ls s3://bucket/path/ --recursive --summarize | grep "Total Objects:"

    July 12, 2017 at 10:12:14 AM GMT+2 - permalink - archive.org - https://links.infomee.fr/?rcG0hg
    aws count s3
  • set-repository-policy — AWS CLI 1.11.117 Command Reference

    Truc con : on ne peut pas utiliser le résultat du get-repository-policy dans le set-repository-policy pour cloner.

    Il faut au passage enlever les \n qui trainent dans la réponse

    July 11, 2017 at 5:19:45 PM GMT+2 * - permalink - archive.org - http://docs.aws.amazon.com/cli/latest/reference/ecr/set-repository-policy.html
    aws ecs
  • Logging HOWTO — Python 3.6.2rc2 documentation

    python3 log to file AND stdout
    import logging
    logging.basicConfig(handlers=[logging.FileHandler('/var/log/runner/process1.log'),logging.StreamHandler()],format='%(asctime)s %(levelname)s %(message)s',level=logging.INFO)

    logging.info('foo')

    Encore mieux pour supporter le logrotate sans copytruncate :
    import logging.handlers
    logging.basicConfig(handlers=[logging.handlers.WatchedFileHandler('/var/log/worker/worker1.log'),logging.StreamHandler()],format='%(asctime)s %(levelname)s %(message)s',level=logging.INFO)

    /var/log/worker/*.log {
    monthly
    rotate 12
    compress
    delaycompress
    missingok
    notifempty
    create 644 root root
    }

    Python 2:

    import logging as loggingg

    logging = loggingg.getLogger('simple_example')
    logging.setLevel(loggingg.INFO)

    formatter = loggingg.Formatter('%(asctime)s %(levelname)s %(message)s')

    console_handler = loggingg.StreamHandler()
    console_handler.setLevel(loggingg.INFO)
    console_handler.setFormatter(formatter)

    file_handler = loggingg.FileHandler('/var/log/worker/worker3.log')
    file_handler.setLevel(loggingg.INFO)
    file_handler.setFormatter(formatter)

    logging.addHandler(console_handler)
    logging.addHandler(file_handler)

    July 11, 2017 at 10:05:21 AM GMT+2 * - permalink - archive.org - https://docs.python.org/3/howto/logging.html
    log logrotate python
  • Newer docker client with older Docker host - Server Fault

    :~$ docker -H tcp://10.73.204.73:2375 ps
    Error response from daemon: client is newer than server (client API version: 1.24, server API version: 1.19)

    :~$ DOCKER_API_VERSION=1.19 docker -H tcp://x.x.x.x:xxxx ps
    CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

    July 6, 2017 at 11:01:38 AM GMT+2 - permalink - archive.org - https://serverfault.com/questions/664999/newer-docker-client-with-older-docker-host
    api client dcoker version
  • Which is the fastest method to delete files in Linux

    wtf?

    cd dir
    time perl -e 'for(<*>){((stat)[9]<(unlink))}'

    July 3, 2017 at 4:51:54 PM GMT+2 - permalink - archive.org - http://www.slashroot.in/which-is-the-fastest-method-to-delete-files-in-linux
    delete dir linux perl
Links per page: 20 50 100
◄Older
page 41 / 217
Newer►
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation