I was able to activate it, if anyone needs, just follow these steps:
1: edit:
sudo vim /usr/local/etc/php-fpm.d/www.conf
2: add to the end of the file:
| #!/usr/bin/env python | |
| import os | |
| def main() -> None: | |
| # Change to the directory where the script is located, | |
| # so that the script can be run from any location. | |
| os.chdir(os.path.dirname(os.path.realpath(__file__))) |
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| # Usage: Place the script in `htdocs/` and run `./static-precompress.sh themes/godotengine/assets`. | |
| echo "Precompressing assets in \"$1\"..." | |
| BROTLICOMMAND="$(readlink -f $(dirname "${BASH_SOURCE[0]}")/brotli)" | |
| #BROTLICOMMAND=$(which brotli) |
| ## Serve precompressed Brotli files if they exist. | |
| ## Adapted from <https://stackoverflow.com/questions/46487635/how-to-serve-precompressed-gzip-brotli-files-with-htaccess> | |
| ## Make sure `RewriteBase /` is present somewhere in your .htaccess file. | |
| # If the web browser accepts Brotli encoding... | |
| RewriteCond %{HTTP:Accept-encoding} br | |
| # ...and the web browser is fetching a probably pre-compressed file... | |
| RewriteCond %{REQUEST_URI} .*\.(css|html|js|svg|wasm) | |
| # ...and a matching pre-compressed file exists... | |
| RewriteCond %{REQUEST_FILENAME}.br -s | |
| # ...then rewrite the request to deliver the Brotli file. |
| // Make the viewmodel take less space on the screen by moving it towards the bottom right corner. | |
| viewmodel_fov 54 | |
| viewmodel_offset_x 2.5 | |
| viewmodel_offset_y -2 | |
| viewmodel_offset_z -2 | |
| // Decrease viewmodel bobbing to be less distracting. | |
| cl_viewmodel_shift_left_amt 0.5 | |
| cl_viewmodel_shift_right_amt 0.25 | |
| cl_bob_lower_amt 5 |
I was able to activate it, if anyone needs, just follow these steps:
1: edit:
sudo vim /usr/local/etc/php-fpm.d/www.conf
2: add to the end of the file:
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" |
| http://localhost:8000 | |
| encode gzip | |
| php_fastcgi unix//var/run/php-fpm/www.sock | |
| file_server |
| #!/bin/bash | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| while sleep 0.1; do | |
| # Use `pacmd list-sources` to get the input source name. | |
| # 65535 is 100% volume. | |
| pacmd set-source-volume alsa_input.pci-0000_00_1f.3.analog-stereo 40000 | |
| done |
| [irc] | |
| [irc.freenode] | |
| Server="irc.freenode.net:6697" | |
| Nick="GDDiscord" | |
| NickServNick="GDDiscord" | |
| NickServPassword="SECRET" | |
| UseTLS=true | |
| UseSASL=true | |
| SkipTLSVerify=false | |
| EditDisable=false |
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| SFTGAN_DIR="/home/hugo/Documents/Git/xinntao/SFTGAN" | |
| print_header() { | |
| echo -e "\n\e[1m[*] $1\e[0m" | |
| } |