Skip to content

Instantly share code, notes, and snippets.

Jonas Bögle irgendwr

Block or report user

Report or block irgendwr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@irgendwr
irgendwr / .gitlab-ci.yml
Last active Apr 6, 2019
GitLab CI file for deploying a hugo page
View .gitlab-ci.yml
image: jguyomard/hugo-builder:latest
stages:
- test
- deploy
test:
stage: test
script:
- hugo
@irgendwr
irgendwr / phpmyadmin.conf
Created Mar 25, 2019
Nginx snippet for serving phpmyadmin in a custom subdirectory
View phpmyadmin.conf
location /pma {
alias /usr/share/phpmyadmin;
try_files $uri $uri/ @pma =404;
location ~ \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock; # <-- change this to fit your installation
}
}
@irgendwr
irgendwr / custom_error_pages.conf
Created Oct 14, 2018
Nginx snippet for custom error pages that searches the root first and falls back to a default location.
View custom_error_pages.conf
error_page 403 /403.html;
error_page 404 /404.html;
error_page 500 /500.html;
error_page 502 /502.html;
error_page 504 /504.html;
location ~* ^/(403|404|500|502|504)\.html$ {
try_files $uri @error;
}
@irgendwr
irgendwr / .bashrc
Last active Apr 20, 2019
Default .bashrc
View .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
You can’t perform that action at this time.