4259 links
  • Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
newest first
  • jazzband/pip-tools: A set of tools to keep your pinned Python dependencies fresh.

    python dependency management with lock file

    May 12, 2021 - permalink - https://github.com/jazzband/pip-tools
    pip python
  • Note: haproxy

    Ces derniers jours je suis en train de voir pour remplacer mon reverse proxy perso qui était resté en haproxy, déplacé dans un container à la va vite..

    J'ai donc commencé à expérimenter traefik et ça semble faire le boulot. J'aime beaucoup le côté dynamique avec les labels sur les containers.

    Il remplit tous les rôles de mon haproxy :
    - offloading ssl
    - basic auth http pour certains backend
    - et puis voilà c'est tout en fait

    Autre avantage, il intègre la génération/renouvellement des certificats ssl ce qui va me permettre de virer un vieux script en bash (qui faisait ça très bien, mais au moins ce sera + clean)

    Seule contrainte, je me demande si je peux reverse vers un backend qui ne serait pas du docker. Peut être en mettant de la conf en dur.

    May 12, 2021 - permalink - https://links.infomee.fr/shaare/P8uckQ
    docker haproxy traefik
  • OBS.Ninja
    May 12, 2021 - permalink - https://obs.ninja/
    games obs twitch
  • Welcome to cert-manager | cert-manager
    May 11, 2021 - permalink - https://cert-manager.io/docs/
    cert docker k8s letsencrypt tls
  • Collect Amazon CloudWatch Metrics Faster With Datadog Using CloudWatch Metric Streams | Datadog

    Intéressant pour rapatrier plus vite les metrics aws cloudwatch dans datadog

    May 10, 2021 - permalink - https://www.datadoghq.com/blog/amazon-cloudwatch-metric-streams-datadog/?mkt_tok=ODc1LVVWWS02ODUAAAF85oycJAszSM9iHzDSr4C0X29JUnHtE1fmtLO0QEfzsn1WTY0rME_PzPJgZsYhP7KRjF4XxG0qga9nbVIcB1bzkued2ix_pJfImXlrE2AkUr6gu6o
    aws datadog
  • Home - BuildTheEarth

    Crazy!

    May 9, 2021 - permalink - https://buildtheearth.net/
    games minecraft
  • Homebridge
    May 7, 2021 - permalink - https://homebridge.io/
    domotique
  • Email Delivery Service | SendGrid

    presta pour envoyer du mail

    à voir aussi Mailgun, Sendinblue

    May 4, 2021 - permalink - https://sendgrid.com/
    mail presta service
  • https://markodenic.com/css-tips/
    May 3, 2021 - permalink - https://markodenic.com/css-tips/
    css
  • CovidTracker - Suivez l'épidémie de Covid19 en France et dans le monde
    April 22, 2021 - permalink - https://covidtracker.fr/
    covid tracker
  • Wormhole - Simple, private file sharing
    April 21, 2021 - permalink - https://wormhole.app/
    file share
  • Introducing OpenSearch | AWS Open Source Blog

    they did it

    April 15, 2021 - permalink - https://aws.amazon.com/fr/blogs/opensource/introducing-opensearch/
    aws elasticsearch es opensearch
  • Configuring Docker to not use the 172.17.0.0 range - Server Fault

    Pour changer les subnets utilisés par les network bridge users

    nano /etc/docker/daemon.json

    Add lines:

    {
    "default-address-pools":
    [
    {"base":"10.10.0.0/16","size":24}
    ]
    }

    April 12, 2021 - permalink - https://serverfault.com/questions/916941/configuring-docker-to-not-use-the-172-17-0-0-range
    docker nomarkdown
  • Add to Home screen - Progressive web apps (PWAs) | MDN
    April 8, 2021 - permalink - https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Add_to_home_screen
    pwa
  • NEW – Using Amazon ECS Exec to access your containers on AWS Fargate and Amazon EC2 | Containers

    docker exec into fargate container

    April 6, 2021 - permalink - https://aws.amazon.com/blogs/containers/new-using-amazon-ecs-exec-access-your-containers-fargate-ec2/
    aws ecs fargate
  • joeyespo/grip: Preview GitHub README.md files locally before committing them.
    March 29, 2021 - permalink - https://github.com/joeyespo/grip
    markdown preview
  • The M1 Mac write issue: What's going on with Apple's SSDs? | ZDNet

    Soucis sur la gestion de la durée de vie des SSD sur les nouveaux mac m1

    March 26, 2021 - permalink - https://www.zdnet.com/article/the-m1-mac-write-issue/
    mac
  • Using an IAM role in the AWS CLI - AWS Command Line Interface

    To run a CLI command from within an Amazon Elastic Compute Cloud (Amazon EC2) instance or an Amazon Elastic Container Service (Amazon ECS) container, you can use an IAM role attached to the instance profile or the container. If you specify no profile or set no environment variables, that role is used directly. This enables you to avoid storing long-lived access keys on your instances. You can also use those instance or container roles only to get credentials for another role. To do this, you use credential_source (instead of source_profile) to specify how to find the credentials. The credential_source attribute supports the following values:

    Environment – Retrieves the source credentials from environment variables.
    
    Ec2InstanceMetadata – Uses the IAM role attached to the Amazon EC2 instance profile.
    
    EcsContainer – Uses the IAM role attached to the Amazon ECS container.
    
    March 22, 2021 - permalink - https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-role.html
    aws credentials profile
  • GitHub - sbstp/kubie: A more powerful alternative to kubectx and kubens
    March 21, 2021 - permalink - https://github.com/sbstp/kubie
    k8s tools
  • GitHub - kubermatic/fubectl: Reduces repetitive interactions with kubectl
    March 21, 2021 - permalink - https://github.com/kubermatic/fubectl
    k8s tools wrapper
  • Welcome to Invoke! — Invoke documentation
    March 17, 2021 - permalink - http://www.pyinvoke.org/
    cli invoke python tools
  • Application load balancing on Amazon EKS - Amazon EKS
    March 5, 2021 - permalink - https://docs.aws.amazon.com/eks/latest/userguide/alb-ingress.html
    alb eks subnet tag
  • cloudposse/eks-node-group/aws | Terraform Registry

    vs https://registry.terraform.io/modules/cloudposse/eks-workers/aws/latest

    cluster : https://registry.terraform.io/modules/cloudposse/eks-cluster/aws/latest

    March 2, 2021 - permalink - https://registry.terraform.io/modules/cloudposse/eks-node-group/aws/latest
    aws eks k8s terraform
  • cloudposse/eks-cluster/aws | Terraform Registry
    March 1, 2021 - permalink - https://registry.terraform.io/modules/cloudposse/eks-cluster/aws/latest?tab=inputs
    eks module terraform
  • Creating Lambda container images - AWS Lambda

    Packaging docker pour lambda

    February 23, 2021 - permalink - https://docs.aws.amazon.com/lambda/latest/dg/images-create.html
    aws docker lambda
  • Note: debug python terminal

    ++++++++++++++++++++++
    Version avec interface cmd
    ++++++++++++++++++++++

    Prérequis :

    pip install pudb

    Pour docker, dans le docker compose ajouter

    stdin_open: true
    tty: true
    Faire docker attach container_name

    Comment break/debug :

    Là où on veut break, il suffit de coller cette ligne : import pudb; pu.db

    Dans le terminal où on a fait docker attach on doit voir l'interface de pudb

    ++++++++++++++++++++++
    Version + simple
    ++++++++++++++++++++++
    Prérequis : python 3.7

    Pour docker, dans le docker compose ajouter

    stdin_open: true
    tty: true
    Faire docker attach container_name

    Comment break/debug :

    breakpoint()

    Dans le terminal où on a fait docker attach on doit voir un prompt

    On peut print les variables
    "continue" pour continuer

    February 12, 2021 - permalink - https://links.infomee.fr/shaare/lTcZoA
    debug pudb python terminal
  • GitHub - zestyping/q: Quick and dirty debugging output for tired programmers. ⛺
    January 30, 2021 - permalink - https://github.com/zestyping/q
    debug lazy python
  • Coronavirus : visualisez l’évolution de l’épidémie en France et dans le monde
    January 26, 2021 - permalink - https://www.lemonde.fr/les-decodeurs/article/2020/05/05/coronavirus-age-mortalite-departements-pays-suivez-l-evolution-de-l-epidemie-en-cartes-et-graphiques_6038751_4355770.html
    covid19
  • Automating rollback of failed Amazon ECS deployments | AWS Compute Blog
    January 21, 2021 - permalink - https://aws.amazon.com/blogs/compute/automating-rollback-of-failed-amazon-ecs-deployments/
    ecs rollback
  • Note: OVH et renouvellement automatique

    Attention, si vos services sont en renouvellement automatique, même si vous n'avez pas de moyen de paiement enregistré dans votre compte OVH, vous devez payer si vous arrivez à terme.
    Si vous voulez annuler, il faut le faire avant la date de renouvellement ou bien c'est trop tard, vous devez payer, vous ne pouvez plus vous désengager. (TIL : et si vous ignorez les 1er mails, vous recevrez des mails qui font peur)

    Chère cliente, cher client,

    Malgré nos précédentes relances, nous n'avons constaté aucun règlement de votre part concernant la facture xxxx, d'un montant de xxxx €.
    Pour rappel, vous pouvez consulter celle-ci en cliquant sur ce lien : xxxx

    Afin de régulariser votre situation, vous disposez d'un délai supplémentaire de huit (8) jours pour procéder au paiement de la facture mentionnée ci-dessus.
    Pour cela, veuillez cliquer sur le lien suivant :
    https://www.ovh.com/manager/#/billing/history/debt/all/pay

    À défaut de règlement dans le délai indiqué, votre facture sera transmise à notre cabinet de recouvrement Intrum.
    Ce dernier sera chargé de prendre toutes les mesures nécessaires afin de recouvrer ce dossier à l'amiable.

    En cas d'échec, le cabinet accomplira les démarches utiles au recouvrement judiciaire de cette créance.
    Nous attirons votre attention sur le fait qu'en cas de condamnation, tous les frais relatifs à ces démarches seront à votre charge et s'ajouteront au montant réclamé initialement.

    Cordialement,
    Le service Recouvrement OVH

    January 18, 2021 - permalink - https://links.infomee.fr/shaare/vpb7jA
    ovh wtf
  • colorama · PyPI
    January 8, 2021 - permalink - https://pypi.org/project/colorama/
    color python
  • Terragrunt | Terraform wrapper
    January 6, 2021 - permalink - https://terragrunt.gruntwork.io/
    terraform wrapper
  • Advanced usage of Python requests - timeouts, retries, hooks
    December 13, 2020 - permalink - https://findwork.dev/blog/advanced-usage-python-requests-timeouts-retries-hooks/
    python requests retry
  • Tailwind CSS - Rapidly build modern websites without ever leaving your HTML.
    December 8, 2020 - permalink - https://tailwindcss.com/
    css
  • django-bootstrap-datepicker-plus · PyPI
    December 6, 2020 - permalink - https://pypi.org/project/django-bootstrap-datepicker-plus/
    datetime django widget
  • julienblitte/qwerty-fr: Qwerty keyboard layout with french accents
    December 2, 2020 - permalink - https://github.com/julienblitte/qwerty-fr
    fr qwerty
  • Python logging - under the hood
    November 30, 2020 - permalink - https://blog.urbanpiper.com/understanding-python-logging-library/
    log python
  • GitHub - jazzband/django-axes: Keep track of failed login attempts in Django-powered sites.
    November 30, 2020 - permalink - https://github.com/jazzband/django-axes
    django security
  • psql command line tutorial and cheat sheet | postgres
    November 26, 2020 - permalink - https://tomcam.github.io/postgres/
    postgresql psql tuto
  • Tailwind CSS v2.0 – Tailwind CSS

    À tester pour changer de bootstrap!

    November 26, 2020 - permalink - https://blog.tailwindcss.com/tailwindcss-v2
    css framework
  • Smallstep SSH — Single Sign-On SSH With Zero Key Management
    November 26, 2020 - permalink - https://smallstep.com/sso-ssh/?utm_campaign=Cronweekly
    ssh
  • Dev Fonts
    November 26, 2020 - permalink - https://devfonts.gafi.dev/
    compare dev font
  • Rate limiting using Python and Redis
    November 14, 2020 - permalink - https://www.hackdoor.io/articles/rate-limiting-using-python-and-redis-9b7dbce8c7a5
    python rate ratelimiter
  • 73 Examples to Help You Master Python's f-strings
    November 14, 2020 - permalink - https://miguendes.me/73-examples-to-help-you-master-pythons-f-strings
    python string
  • Disk Usage - PostgreSQL wiki
    WITH RECURSIVE pg_inherit(inhrelid, inhparent) AS
        (select inhrelid, inhparent
        FROM pg_inherits
        UNION
        SELECT child.inhrelid, parent.inhparent
        FROM pg_inherit child, pg_inherits parent
        WHERE child.inhparent = parent.inhrelid),
    pg_inherit_short AS (SELECT * FROM pg_inherit WHERE inhparent NOT IN (SELECT inhrelid FROM pg_inherit))
    SELECT table_schema
        , TABLE_NAME
        , row_estimate
        , pg_size_pretty(total_bytes) AS total
        , pg_size_pretty(index_bytes) AS INDEX
        , pg_size_pretty(toast_bytes) AS toast
        , pg_size_pretty(table_bytes) AS TABLE
      FROM (
        SELECT *, total_bytes-index_bytes-COALESCE(toast_bytes,0) AS table_bytes
        FROM (
             SELECT c.oid
                  , nspname AS table_schema
                  , relname AS TABLE_NAME
                  , SUM(c.reltuples) OVER (partition BY parent) AS row_estimate
                  , SUM(pg_total_relation_size(c.oid)) OVER (partition BY parent) AS total_bytes
                  , SUM(pg_indexes_size(c.oid)) OVER (partition BY parent) AS index_bytes
                  , SUM(pg_total_relation_size(reltoastrelid)) OVER (partition BY parent) AS toast_bytes
                  , parent
              FROM (
                    SELECT pg_class.oid
                        , reltuples
                        , relname
                        , relnamespace
                        , pg_class.reltoastrelid
                        , COALESCE(inhparent, pg_class.oid) parent
                    FROM pg_class
                        LEFT JOIN pg_inherit_short ON inhrelid = oid
                    WHERE relkind IN ('r', 'p')
                 ) c
                 LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
      ) a
      WHERE oid = parent
    ) a
    ORDER BY total_bytes DESC;
    
    November 13, 2020 - permalink - https://wiki.postgresql.org/wiki/Disk_Usage
    postgresql size
  • Postgres Observability
    November 12, 2020 - permalink - https://pgstats.dev/
    postgresql
  • Time zones | Django documentation | Django
    November 6, 2020 - permalink - https://docs.djangoproject.com/en/3.1/topics/i18n/timezones/
    django python timezone
  • Creating a new file or directory in Vim using NERDTree - Kevin Sookocheff
    November 6, 2020 - permalink - https://sookocheff.com/post/vim/creating-a-new-file-or-directoryin-vim-using-nerdtree/
    vim
  • restic · Backups done right!

    via Doo

    October 29, 2020 - permalink - https://restic.net/
    backup tools
  • python - Displaying a timedelta object in a django template - Stack Overflow

    Here's my filter code

    from django import template

    register = template.Library()

    @register.filter()
    def smooth_timedelta(timedeltaobj):
    """Convert a datetime.timedelta object into Days, Hours, Minutes, Seconds."""
    secs = timedeltaobj.total_seconds()
    timetot = ""
    if secs > 86400: # 60sec * 60min * 24hrs
    days = secs // 86400
    timetot += "{} days".format(int(days))
    secs = secs - days*86400

    if secs > 3600:
        hrs = secs // 3600
        timetot += " {} hours".format(int(hrs))
        secs = secs - hrs*3600
    
    if secs > 60:
        mins = secs // 60
        timetot += " {} minutes".format(int(mins))
        secs = secs - mins*60
    
    if secs > 0:
        timetot += " {} seconds".format(int(secs))
    return timetot
    

    Then in my template I did

    {% load smooth_timedelta %}

    {% timedeltaobject|smooth_timedelta %}

    October 29, 2020 - permalink - https://stackoverflow.com/questions/16348003/displaying-a-timedelta-object-in-a-django-template
    django filter python
▼ Load 50 more