This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error_page 400 /400.html; | |
error_page 401 /401.html; | |
error_page 403 /403.html; | |
error_page 404 /404.html; | |
error_page 500 /500.html; | |
error_page 501 /501.html; | |
error_page 502 /502.html; | |
error_page 503 /503.html; | |
error_page 520 /520.html; | |
error_page 521 /521.html; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: jguyomard/hugo-builder:latest | |
stages: | |
- test | |
- deploy | |
test: | |
stage: test | |
script: | |
- hugo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Description: | |
# removes the 'No valid Subscription' warning in the webinterface | |
sed -i.bak "s/data.status !== 'Active'/false/g" /usr/share/pve-manager/js/pvemanagerlib.js | |
sed -i.bak "s/data.status === 'Active'/true/g" /usr/share/pve-manager/js/pvemanagerlib.js | |
sed -i.bak "s/data.status !== 'Active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js | |
sed -i.bak "s/data.status.toLowerCase() !== 'active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Jonas Boegle - https://github.com/irgendwr | |
:- use_module(library(pce)). | |
% draw(+Width, +Height, +Xoffset, +Yoffset, +Scale) | |
% Draws a mandelbrot set with a given size, x-/y-offset and Scale factor. | |
draw(Width, Height, Xoffset, Yoffset, Scale) :- | |
% create a new display and open it | |
new(Display, window('mhh, lecker Mandelbrot - Jonas @irgendwr :)')), | |
send(Display, size, size(Width, Height)), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Requires rsvg-convert, pdfunite and ocrmypdf | |
echo "This script will convert all *.svg files in the current directory to *.pdf files and merge them into a single PDF file called all.pdf and then apply OCR to create all_ocr.pdf. Existing files with the same names will be overwritten." | |
read -p "Do you want to proceed? [Y/n] " -n 1 -r | |
echo | |
if [[ $REPLY =~ ^([Yy]| ) ]] || [[ -z $REPLY ]]; then | |
# Convert all svg files to pdf files | |
for i in *.svg; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is part of our config for the Minecraft server plugin 'Item Chest Sorter' | |
# see https://www.spigotmc.org/resources/item-chest-sorter.75964/ | |
# Define sets if you want similar items to be moved to just one chest | |
# Look at the examples below if you want to add a new set. | |
# Define a new array by beginning the line with - [] | |
# Separate the items by commas. | |
# You have to use the so called 'namespaced IDs'. You can find those in the minecraft wiki for almost all items. | |
# Example namespaced IDs: https://minecraft.gamepedia.com/Flower#Data_values | |
sets: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Bitwise Operator implementations in native Lua. | |
-- Play around with it here: https://replit.com/@irgendwr/lua-bitwise-operators | |
-- Lua only has native support for bitwise operators since 5.3+ | |
-- see https://www.lua.org/manual/5.3/manual.html#3.4.2 | |
-- and http://lua-users.org/wiki/BitwiseOperators | |
--[[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python | |
# This script lists all devices known to a FritzBox router. | |
# pip install fritzconnection | |
# Change this: | |
ADDRESS = '192.168.178.1' | |
USER = 'YOUR USER HERE' | |
PASS = 'YOUR PASSWORD HERE' |
OlderNewer