Skip to content

Instantly share code, notes, and snippets.

@Ezka77
Ezka77 / compose.yml
Created June 20, 2024 05:15
fedora 39 desktop runner
services:
f39x:
container_name: f39x_runner
build:
dockerfile: f39x.Dockerfile
tags:
- f39x
tty: true
stdin_open: true
command: /bin/bash
@Ezka77
Ezka77 / remove_newline.sh
Created January 11, 2019 09:02
Remove text file newlines with sed
#!/usr/bin/env sh
# How to remove all newlines (\n) from a text file by using sed ? (from stackoverflow)
replace=${1}
file=${2}
sed ':a;N;$!ba;s/\n/${replace}/g' ${file}
# This will read the whole file in a loop, then replaces the newline(s) with a space.
@Ezka77
Ezka77 / mirecam.py
Last active March 13, 2019 10:12
OpenCV camera mire : a simple script to help telescope collimation (secondary alignment)
#!/usr/bin/env python3
import cv2
"""
OpenCV camera mire: a simple script to help telescope collimation (secondary
alignment)
Require OpenCV, binary build are included in this package:
- pip install opencv-python
@Ezka77
Ezka77 / Radio.m3u
Last active October 31, 2024 09:26
RadioFrance m3u playlist
#EXTM3U
#EXTINF:0,France Culture - direct
http://direct.franceculture.fr/live/franceculture-midfi.mp3
#EXTINF:0,France Inter
http://icecast.radiofrance.fr/franceinter-hifi.aac?id=radiofrance
#EXTINF:0,France Musique
http://direct.francemusique.fr/live/francemusique-midfi.mp3
#EXTINF:0,France Info
https://stream.radiofrance.fr/franceinfo/franceinfo_hifi.m3u8
#EXTINF:0,France Culture - alternative link