Skip to content

Instantly share code, notes, and snippets.

@jesgeerts
jesgeerts / start.sh
Created April 24, 2020 09:06
Starting a minecraft server on raspi 4
#!/bin/bash
while true
do
java -Xmx1G -Xms1G -jar server.jar
echo "Waiting 2 seconds to restart server"
sleep 2
done
@jesgeerts
jesgeerts / .bashrc
Created October 14, 2018 18:04
Hetzner default bashrc, a lot nicer unlike the default white colored shell
# ~/.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
auto vmbr2
iface vmbr2 inet static
address 10.0.0.254
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.0.0.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.0.0.0/24' -o vmbr0 -j MASQUERADE
#The config thinks that the custom.jar is in the server's base directory
[config]
name = Custom jar
source =
configSource =
category = Mods
[encoding]
#encode = system
#decode = system
@jesgeerts
jesgeerts / .htaccess
Created May 2, 2017 11:02
Xenforo default .htaccess
# Mod_security can interfere with uploading of content such as attachments. If you
# cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
# SecFilterEngine Off
# SecFilterScanPOST Off
#</IfModule>
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
# Use & for color codes.
# %p is where the player name will get inserted.
# %v is where the vault number will get inserted.
# %price is the price.
# %number is the vault number
# %converted is the number of vaults converted (where applicable)
# Made with love :)
title-name: "&4[&fPlayerVaults&4]:"
open-vault: "&fVault &a%v openen"
@jesgeerts
jesgeerts / phpmyadmin.conf
Created November 6, 2016 07:52
this version is for php7.0-fpm users with nginx
server {
listen 80;
listen [::]80;
server_name YOURPHPMYADMIN.example.com;
index index.php
root /usr/share/phpmyadmin;
location ~ \.php$ {
@jesgeerts
jesgeerts / phpmyadmin.conf
Created November 6, 2016 07:51
This is for a nginx virtualhost block if you have phpmyadmin installed
server {
listen 80;
listen [::]80;
server_name YOURPHPMYADMIN.example.com;
index index.php
root /usr/share/phpmyadmin;
location ~ \.php$ {
@jesgeerts
jesgeerts / spigot.yml
Created July 23, 2016 11:25
A optimized spigot.yml
# This is the main configuration file for Spigot.
# As you can see, there's tons to configure. Some options may impact gameplay, so use
# with caution, and make sure you know what each option does before configuring.
# For a reference for any variable inside this file, check out the Spigot wiki at
# http://www.spigotmc.org/wiki/spigot-configuration/
#
# If you need help with the configuration or have any questions related to Spigot,
# join us at the IRC or drop by our forums and leave a post.
#
# IRC: #spigot @ irc.spi.gt ( http://www.spigotmc.org/pages/irc/ )
<div class="container">
<br /><br />
{$SESSION_FLASH}
<div class="jumbotron jumbotron-homepage">
<h1>{$SITENAME}</h1>
<p>{$PLAYERS_ONLINE}</p>
<p>{$CONNECT_WITH}</p>
</div>
<div class="row">
<div class="col-md-9">