Skip to content

Instantly share code, notes, and snippets.

@leplatrem
leplatrem / cultural-shift.md
Last active November 6, 2025 12:49
🇺🇸 U.S. vs 🇫🇷 France: Key Cultural Contrasts in the Workplace

🇺🇸 U.S. vs 🇫🇷 France: Key Cultural Contrasts in the Workplace

1. Communication Style

Dimension U.S. France
Directness Americans are friendly but pragmatic; they use a positive, “can-do” tone and prefer concise, action-oriented communication. The French tend to be more intellectual and critical in discussions. Debate and analytical critique are seen as signs of engagement, not negativity.
Tone Emphasis on politeness, optimism, and clarity (“Great job!”, “Love this idea!”). Tone can seem blunt or argumentative to Americans. It’s normal to challenge ideas directly, even in front of others.
Formality Generally informal in speech and hierarchy (using first names quickly, casual dress). More formal in language and behavior (use of vous until invited to use tu; titles and hierarchy respected).
Language style Communication aims to be clear and accessible to everyone. Communication often va
@leplatrem
leplatrem / deploy-qt-app.yml
Created June 18, 2025 21:36 — forked from alex-spataru/deploy-qt-app.yml
Compile & generate build artifacts for Qt Projects with GitHub Actions
#--------------------------------------------------------------------------------
# Workflow configuration
#--------------------------------------------------------------------------------
name: Build
on:
push: # Run on push
pull_request: # Run on pull-request
#--------------------------------------------------------------------------------

🦠 ¿Qué es el SIBO?

SIBO (Small Intestinal Bacterial Overgrowth) significa sobrecrecimiento bacteriano en el intestino delgado. Es una condición en la que hay una cantidad anormal de bacterias (o bacterias equivocadas) en esa parte del intestino, donde normalmente debería haber pocas.

Estas bacterias fermentan los alimentos (especialmente carbohidratos), generando gases y otros compuestos que provocan síntomas digestivos y sistémicos.

@leplatrem
leplatrem / resume.py
Created May 14, 2024 10:14
Resume download with requests
import os
import sys
import time
from urllib.parse import urlparse
import requests
def resume_download(url, filename):
resp = requests.head(url)
@leplatrem
leplatrem / upload.py
Created November 10, 2023 10:11
Upload file to Remote Settings in Python
import json
import os
import sys
import uuid
import mimetypes
import requests
filepath = sys.argv[1]

Github Actions Matrix Debug

Goal: Implement the matrix expansion behaviour in matrix_combinations() function, following the official Github Actions documentation.

Run tests:

pytest main.py
import datetime
import os
from github import Github # pip install --user PyGithub
september_first = datetime.datetime(2021, 9, 1)
def main():
// [dependencies]
// x509-parser = "0.9"
// ring = "0.16"
// oid-registry = "0.1"
use oid_registry;
use ring::signature;
use x509_parser::{self, certificate::X509Certificate, pem::Pem};
fn verify_chain(pem_content: &[u8]) {
import json
import os
from kinto_http import Client, BearerTokenAuth
SERVER = os.getenv("ENV", "prod")
SERVER_URL = {
"prod": "https://settings-writer.prod.mozaws.net/v1/",
"stage": "https://settings-writer.stage.mozaws.net/v1/",
➜ canonicaljson-spec git:(gh-pages) ./test.sh ../canonicaljson-rs/demo/target/debug/demo
malformed/empty OK
malformed/hex_number OK
malformed/invalid_string_character OK
malformed/invalid_string_escape OK
malformed/invalid_string_unicode_escape OK
malformed/leading_plus_number OK
malformed/leading_zero_number OK
malformed/missing_array_element OK
malformed/missing_integer_number OK