Skip to content

Instantly share code, notes, and snippets.

@benoitvidis
benoitvidis / Dockerfile
Last active December 13, 2023 08:06
systemd & cgroupv2 in docker
FROM archlinux
COPY docker-entrypoint.sh /usr/local/bin/
RUN set -x \
&& pacman -Syu --noconfirm \
&& pacman -S --noconfirm \
systemd \
&& curl -SLo /usr/local/bin/install-earnapp https://brightdata.com/static/earnapp/install.sh \
&& chmod a+x /usr/local/bin/install-earnapp
@benoitvidis
benoitvidis / radio-fr.m3u
Last active October 20, 2021 11:12
Radio
#EXTM3U
#EXTINF:-1, FIP
https://stream.radiofrance.fr/fip/fip.m3u8?id=radiofrance
#EXTINF:-1, FIP electro
https://stream.radiofrance.fr/fipelectro/fipelectro.m3u8?id=radiofrance
#EXTINF:-1, FIP groove
https://stream.radiofrance.fr/fipgroove/fipgroove_hifi.m3u8?id=radiofrance
#EXTINF:-1, FIP jazz
https://stream.radiofrance.fr/fipjazz/fipjazz.m3u8?id=radiofrance
#EXTINF:-1, FIP nouveautes
@benoitvidis
benoitvidis / README.md
Last active August 11, 2021 10:13
armbian on X96 max plus
@benoitvidis
benoitvidis / nvidia-dkms-rebuild.sh
Created February 2, 2020 09:55
Force nvidia dkms build and install
#!/bin/sh
# Sometimes, NVidia proprietary drivers do not install themselves after a kernel upgrade.
# This happens to me with 440.33.xx version from CUDA repositories on Ubuntu 18.04.
# This script forces a build and install of the driver
if [ $(id -u) -ne 0 ]; then
echo "this script must be run as root"
exit 1
fi
#!/bin/sh
# Build ffmpeg with nvenc support
#
# ffmpeg 4.2.2
# cuda 10.2
# nvidia driver 440
#
# NVidia dependencies:
# cf: https://developer.nvidia.com/ffmpeg
@benoitvidis
benoitvidis / Pipfile
Last active January 12, 2025 10:36
Download torrents on freebox from command line
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
pyyaml = "*"
requests = "*"
@benoitvidis
benoitvidis / vpn.sh
Last active March 17, 2018 08:50
vpn
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
CONF="AirVPN_France_UDP-443.ovpn"
[ -z "$1" ] || CONF="$1"
stop shill
start shill BLACKLISTED_DEVICES=tun0
@benoitvidis
benoitvidis / vidz
Last active May 4, 2024 09:34
vidz
#!/bin/sh
# -----------------------------------------------------------------------------
#
# Copyright © 2016-2023 Benoît Vidis
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
/.idea
/venv
/update.sh
/deploy.sh
@benoitvidis
benoitvidis / pdf2cbz.sh
Last active May 9, 2024 14:56
pdf 2 cbz
#!/bin/bash
# -----------------------------------------------------------------------------
#
# Copyright © 2016-2024 Benoît Vidis
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0