blog
Table des matières
- 2026:
- 2025:
5 billet(s) pour octobre 2026
| Trouver tous les process 32bits en cours d’exécution | 2026/10/30 12:07 | Jean-Baptiste |
| Notes segmentation fault | 2026/10/27 22:12 | Jean-Baptiste |
| Falsifier la date et l heure avec faketime | 2026/10/13 14:43 | Jean-Baptiste |
| Notes podman system connection | 2026/10/12 21:52 | Jean-Baptiste |
| Notes podman quadlet | 2026/10/12 21:48 | Jean-Baptiste |
Notes conversion JSON YAML
Voir :
Voir aussi :
# Source - https://stackoverflow.com/a/60585911 # Posted by Richard Gomes, modified by community. See post 'Timeline' for change history # Retrieved 2026-11-13, License - CC BY-SA 4.0 function yaml_validate { python -c 'import sys, yaml, json; yaml.safe_load(sys.stdin.read())' } function yaml2json { python -c 'import sys, yaml, json; print(json.dumps(yaml.safe_load(sys.stdin.read())))' } function yaml2json_pretty { python -c 'import sys, yaml, json; print(json.dumps(yaml.safe_load(sys.stdin.read()), indent=2, sort_keys=False))' } function json_validate { python -c 'import sys, yaml, json; json.loads(sys.stdin.read())' } function json2yaml { python -c 'import sys, yaml, json; print(yaml.dump(json.loads(sys.stdin.read())))' }
Git commit perdu
git reflog git checkout dev git checkout 5559d8a . # git reset --hard 5559d8a
Notes mojo lang
Voir :
uv pip install mojo
hello.mojo
def main(): print("Hello world !")
mojo format hello.mojo mojo run hello.mojo mojo build hello.mojo
Notes rust lang compilation
Voir :
sudo apt-get install cargo
cargo new hello-world cd hello-world/
src/main.rs
fn main() { println!("Hello, world!"); }
Compilation
Compilation basique
rustc src/main.rs
Compilation statique
sudo apt-get install librust-rustup-dev rustup rustup default stable rustup target add x86_64-unknown-linux-musl cargo build --target=x86_64-unknown-linux-musl
$ ldd ./target/x86_64-unknown-linux-musl/debug/hello-world
statically linked
Compilation 32bits pour windows
rustup target add i686-pc-windows-gnu cargo build --target=i686-pc-windows-gnu # cargo build --release --target=i686-pc-windows-gnu wine target/i686-pc-windows-gnu/debug/hello-world.exe
Compilation 32bits statique pour GNU/Linux
rustup target add i686-unknown-linux-musl
cargo build --target i686-unknown-linux-musl
blog.txt · Dernière modification : de 127.0.0.1
