Skip to content

Instantly share code, notes, and snippets.

@calebjonasson
calebjonasson / .htaccess
Created December 16, 2012 02:35
Rewrites everything after the host to a GET variable in the index.php file.
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?page=$1 [L,QSA]
@candoom
candoom / promtail_on_proxmox.txt
Created November 21, 2021 18:32
Howto install Promtail on Proxmox
$ wget https://github.com/grafana/loki/releases/download/v2.4.1/promtail-linux-amd64.zip
$ unzip promtail-linux-amd64.zip
$ mv promtail-linux-amd64 /usr/local/bin/
$ ln -s /usr/local/bin/promtail-linux-amd64 /usr/local/bin/promtail
$ useradd --system promtail
$ gpasswd -a promtail adm
$ nano /etc/systemd/system/promtail.service
$ systemctl daemon-reload
$ systemctl start promtail.service