Skip to content

Instantly share code, notes, and snippets.

View gilou's full-sized avatar
🏠
Working from home

Gilles Pietri gilou

🏠
Working from home
View GitHub Profile
@gilou
gilou / Dockerfile
Last active November 7, 2018 22:57
Dockerfile arch systemd
FROM base/archlinux:latest
RUN \
# First, update everything (start by keyring and pacman)
pacman -Sy && \
pacman -S archlinux-keyring --noconfirm --noprogressbar --quiet && \
pacman -S pacman --noconfirm --noprogressbar --quiet && \
pacman-db-upgrade && \
pacman -Su --noconfirm --noprogressbar --quiet && \
@gilou
gilou / ipfo.yaml
Last active March 25, 2021 05:04
netplan ip failover OVH
routes:
- to: 0.0.0.0/0
via: GW_IPV4
on-link: true
- to: IPV6_RAN:GEff:ff:ff:ff:ff
scope: link
- to: ::/0
via: IPV6_RAN:GEff:ff:ff:ff:ff
on-link: true
@gilou
gilou / norepeat.liq
Created May 24, 2021 20:39
Liquidsoap function to avoid repetitions of tracks based on the filename
# Compare two pairs, according to snd value
def compare_snd(a, b)
if snd(a) == snd(b) then
0
else
if snd(a) > snd(b) then
1
else
-1
end