Skip to content

Instantly share code, notes, and snippets.

View NicolasGoeddel's full-sized avatar

NicolasGoeddel

  • open*i
  • Saarbrücken
View GitHub Profile
@NicolasGoeddel
NicolasGoeddel / easy-php-fpm.conf
Last active August 20, 2020 21:06
Easy to use configuration for php-fpm
# Example:
# Use PHPHandler php-fpm-matomo.sock
#
<Macro PHPHandler $socket>
<IfModule setenvif_module>
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
</IfModule>
<FilesMatch ".+\.ph(p[3457]?|t|tml)$">
<If "-f %{SCRIPT_FILENAME}">
@NicolasGoeddel
NicolasGoeddel / install.sh
Last active November 7, 2023 15:53
Installation script for facebookresearch / pifuhd
#!/bin/bash
minVersion="$(python3 -V 2>&1 | grep -Po '(?<=Python 3\.)([0-9]+)')"
if (( "$minVersion" <= 5 )); then
echo "You're python version is too old. You need at least Python 3.6.x" >&2
echo "Try the following: "
echo " sudo add-apt-repository ppa:deadsnakes/ppa"
echo " sudo apt update"
echo " sudo apt upgrade"