This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Analyse des trames RTP (G.711) d'une capture .pcap / .pcapng. | |
| Aucune dependance externe : les formats pcap (classique) et pcapng sont | |
| decodes directement, ainsi que les couches Ethernet/VLAN/IPv4/IPv6/UDP. | |
| Hypothese de travail (cf. cahier des charges) : tout paquet UDP de la capture | |
| est cense transporter une trame RTP. L'entete RTP est malgre tout validee ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # Download the last Visual Studio Code extension compatible with a given version | |
| import argparse | |
| import hashlib | |
| import html | |
| import json | |
| import logging | |
| import os | |
| import re |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # ============================================================ | |
| # build_litellm_portable_macos.sh | |
| # Construit LiteLLMPortable\ (cible Windows x64) DEPUIS macOS. | |
| # Resolution des dependances pour la PLATEFORME CIBLE via | |
| # uv pip compile --python-platform windows (les marqueurs | |
| # sys_platform/platform_system sont evalues pour Windows, | |
| # pas pour macOS : uvloop exclu, colorama inclus, etc.), | |
| # puis pip download/install en --no-deps sur le lockfile. | |
| # Prerequis : uv, python3 + pip, curl, unzip. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| setlocal EnableExtensions | |
| :: ============================================================ | |
| :: build_litellm_portable.bat -- 100%% OFFLINE | |
| :: Construit .\LiteLLMPortable\ a partir de C:\wheels | |
| :: La version de Python est lue dans C:\wheels\PYVER.txt | |
| :: (ecrit par prep_wheels.bat) : une seule source de verite. | |
| :: ============================================================ | |
| set "WHEELS=C:\wheels" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import tabulate | |
| from pathlib import Path | |
| import json | |
| import base64 | |
| import sys | |
| from urllib.parse import urlparse | |
| import mimetypes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import os | |
| import typing as t | |
| from dataclasses import dataclass | |
| from pathlib import Path | |
| import gpxpy.gpx | |
| import matplotlib.pyplot as plt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Command-line tool to write a disk image on a USB device with macOS. | |
| Exactly like [etcher](https://etcher.balena.io), [rpi-imager](https://github.com/raspberrypi/rpi-imager), | |
| [rufus.ie](https://rufus.ie), [UNetbootin](https://unetbootin.github.io), etc. | |
| No frills, no freaks, much simple and so more efficient. | |
| Unix has the right tool for over 50 years: [`dd`](https://en.wikipedia.org/wiki/Dd_(Unix)). Sorry folks and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # https://en.wikipedia.org/wiki/ANSI_escape_code | |
| print_colors() | |
| { | |
| # Print column headers. | |
| printf "%-4s " '' ${bgs[@]} | |
| echo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| from curses import wrapper | |
| from math import pi, sin, cos | |
| def bresenham(x0, y0, x1, y1): | |
| """ | |
| Bresenham's line algorithm. | |
| Yield integer coordinates on the line from (x0, y0) to (x1, y1). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Read terminal properties and imgcat in Python. | |
| References: | |
| https://en.wikipedia.org/wiki/ANSI_escape_code | |
| https://iterm2.com/documentation-escape-codes.html | |
| https://iterm2.com/documentation-images.html | |
| """ |
NewerOlder