Skip to content

Instantly share code, notes, and snippets.

View robertoschwald's full-sized avatar

Robert Oschwald robertoschwald

View GitHub Profile
@m1nicrusher
m1nicrusher / ConfigHowdy.sh
Created November 9, 2022 14:23
Config Howdy for Fedora 36 using GNOME
# !/bin/bash
# Reference: https://copr.fedorainfracloud.org/coprs/principis/howdy/
# sudo required
if ! [ $(id -u) = 0 ]; then
echo "Root privilege is needed. Please rerun the script as root." >&2
exit 1
fi
SUDO_CFG="/etc/pam.d/sudo"
@robertoschwald
robertoschwald / grails4_hazelcast_springSession_config_hints.md
Last active May 25, 2021 22:56
Using Grails 4 with Spring-Session, and single-instance Hazelcast for Session-Replication and Hibernate 2nd Level cache

Goals

  • Use Spring-Session-Hazelcast to replicate Http Session between Application Nodes
  • Use Hazelcast Hibernate as Hibernate 2nd Level cache
  • Use only one single Hazelcast instance auto-generated by Spring Boot
  • Support Grails mutable Session objects (Flash messages, etc.)

The problem

  • Spring-Boot automatically configures a 'hazelcastInstance' bean if Hazelcast dependency is found.
  • We can configure hazelcast-hibernate to use an existing HazelcastInstance with hibernate.cache.hazelcast.instance_name config key.
  • Unfortunately, Grails instantiates the hibernateDatastore bean before Spring-Boot generates the hazelcastInstance bean.
@ctron
ctron / user-data.yml
Last active May 4, 2022 04:30
Reserving additional space on Hetzner cloud instances using CentOS 7
#cloud-config
# we need to disable the initial call to "growpart" as otherwise the first partition would consume
# all space on the dist
#
# The final disk layout is:
# #0 0 - 10GB - ext4 on /
# #1 10GB - 100% - lvm
#
# The reason for this approach is that when using CentOS on Hetzner you cannot use