mathieu / sauvegarde.md
0 likes
0 forks
1 files
Last active
Stratégie pour sauvegarder des données personnelles (Windows et macOS)
Concept d'ensemble :
- Réplication 3-2-1 :
- 3 copies des données (1 originale + 2 sauvegardes)
- 2 types ou emplacements de stockage différents
- 1 sauvegarde hors site (cloud ou disque dur stocké ailleurs)
- Automatiser : Réduire les interventions humaines au minimum pour éviter les oublis.
- Priorité aux données critiques : Sauvegarder les fichiers personnels importants (documents, photos, etc.), pas tout le système.
mathieu / crawler_output.log
0 likes
0 forks
1 files
Last active
1 | Visiting: https://brasseriebernard.com |
2 | Error when requesting https://brasseriebernard.com: [Errno 104] Connection reset by peer |
3 | Error when making HEAD request to https://brasseriebernard.com: [Errno 104] Connection reset by peer |
4 | ################################################################ |
5 | https://brasseriebernard.com : |
6 | |
7 | {'html_static': set(), |
8 | 'html_dynamic': {'https://brasseriebernard.com'}, |
9 | 'pdf': set(), |
10 | 'images': set(), |
mathieu / gist:2e08852bf3684b8f8afd5bdee9ce2735
0 likes
0 forks
1 files
Last active
1 | import requests |
2 | |
3 | def get_place_id(api_key, query): |
4 | # Google Places API endpoint |
5 | endpoint = "https://maps.googleapis.com/maps/api/place/findplacefromtext/json" |
6 | |
7 | # Parameters |
8 | params = { |
9 | "input": query, # Input can be the name or address |
10 | "inputtype": "textquery", |
mathieu / resto.json
0 likes
0 forks
1 files
Last active
1 | { |
2 | "node": { |
3 | "type": "Restaurant" |
4 | "name": "Le Gourmet", |
5 | "rating": 4.5, |
6 | "cuisine_type": ["French", "Fusion"], |
7 | "open_hours": { |
8 | "monday": "9:00-21:00", |
9 | "tuesday": "9:00-21:00", |
10 | "wednesday": "9:00-21:00", |
mathieu / neo4j-docker-compose
0 likes
0 forks
1 files
Last active
1 | services: |
2 | neo4j: |
3 | ports: |
4 | - 7474:7474 |
5 | - 7687:7687 |
6 | volumes: |
7 | - $HOME/neo4j/data:/data |
8 | image: neo4j |
mathieu / vectorStorIndex.py
0 likes
0 forks
1 files
Last active
1 | class VectorStoreIndex(BaseIndex[IndexDict]): |
2 | """ |
3 | Vector Store Index. |
4 | |
5 | Args: |
6 | use_async (bool): Whether to use asynchronous calls. Defaults to False. |
7 | show_progress (bool): Whether to show tqdm progress bars. Defaults to False. |
8 | store_nodes_override (bool): set to True to always store Node objects in index |
9 | store and document store even if vector store keeps text. Defaults to False |
10 | """ |
mathieu / Obsidian keymap in neovim
0 likes
0 forks
1 files
Last active
1 | -- Obsidian |
2 | -- Move to ~/Notes/all |
3 | vim.api.nvim_create_user_command('MoveNoteToAll', function() |
4 | local file = vim.fn.expand '%:p' -- Obtenir le chemin complet du fichier ouvert |
5 | local target_dir = vim.fn.expand '~/Notes/all/' -- Résoudre le chemin du dossier cible |
6 | |
7 | -- Vérifier si le fichier existe |
8 | if vim.fn.filereadable(file) == 1 then |
9 | -- Utiliser une commande shell pour déplacer le fichier |
10 | local cmd = 'mv ' .. vim.fn.shellescape(file) .. ' ' .. vim.fn.shellescape(target_dir) |
Newer
Older