added shebangs to util scripts

This commit is contained in:
eclipse 2025-03-16 14:10:10 +01:00
parent 5c6ba278ef
commit 66b2002f9d
3 changed files with 9 additions and 3 deletions

3
utils/crop_image_to_bbox.py Normal file → Executable file
View File

@ -1,3 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf8 -*-
from PIL import Image from PIL import Image
import sys import sys

View File

@ -1,4 +1,5 @@
#!/bin/bash #!/usr/bin/env bash
# -*- coding: utf8 -*-
# Source: https://gessel.blackrosetech.com/2020/12/21/favicon-generation-script # Source: https://gessel.blackrosetech.com/2020/12/21/favicon-generation-script
@ -28,8 +29,7 @@ inkscape -o "$out/favicon-310x150.png" -w 310 -h 150 $svg
echo Compressing... echo Compressing...
for f in $out/*.png; do pngquant -f --ext .png "$f" --posterize 4 --speed 1 ; done; for f in $out/*.png; do pngquant -f --ext .png "$f" --posterize 4 --speed 1 ; done;
echo Creating favicon echo Creating favicon...
convert $out/favicon-512.png -define icon:auto-resize=48,32,16 $out/favicon.ico convert $out/favicon-512.png -define icon:auto-resize=48,32,16 $out/favicon.ico
echo Done echo Done

View File

@ -1,3 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf8 -*-
import configparser import configparser
import caldav import caldav
import vobject import vobject