Skip to content

Instantly share code, notes, and snippets.

View pskopek's full-sized avatar

Peter Skopek pskopek

  • Red Hat
  • Somewhere in Slovakia
  • 11:11 (UTC +02:00)
View GitHub Profile
@pskopek
pskopek / distrobox_fedora_playwright.md
Created April 2, 2025 13:16
Playwright compatible distrobox setup on Fedora 41

Setup on Fedora 41 (or other not supported Linux distro)

Playwright doesn't support Fedora distribution. Following is a description how to run the tests using Ubuntu 22.04 image using distrobox which is fairy supported on various Linux distributions.

Install distrobox and podman packages

sudo dnf install distrobox podman

Ako sprevádzkovať prihlasovanie a elektronický podpis pre portál Slovensko.sk a ďalšie vládne portály na Fedore 41

Note

Last updated: January 12, 2025

Inštalácia aplikácie eID KLient + Autogram + Disig Web Signer

Posledná verzia eID Klient je 5.0. K dispozícií je ako AppImage, teda inštalácia pre Fedoru je bez problémov.

Tu je rýchly spôsob, vrátane stiahnutia súboru. Je potrebné aby užívateľ inštalujúci aplikáciu mal možnosť sudo.

@pskopek
pskopek / galleon_pack_test.sh
Last active October 22, 2024 14:23
Shell Script to install Keycloak SAML Adapter using WildFly Galleon
export PATH_GALLEON=/home/pskopek/tmp/galleon/galleon-6.0.3.Final
# usage ./galleon_pack_test.sh <dir_name> <keycloak_saml_adapter_version> <wildfy_version>
rm -rf $1
java -jar $PATH_GALLEON/bin/galleon-cli.jar install wildfly:current#${3:-33.0.2.Final} --dir=$1 --layers=ee-core-profile-server,jaxrs-server,datasources-web-server,deployment-scanner,embedded-activemq,ejb,webservices,undertow-https
java -jar $PATH_GALLEON/bin/galleon-cli.jar install org.wildfly:wildfly-datasources-galleon-pack:9.0.0.Final --dir=$1 --layers=postgresql-driver
java -jar $PATH_GALLEON/bin/galleon-cli.jar install org.keycloak:keycloak-saml-adapter-galleon-pack:$2 --dir=$1 --layers=keycloak-client-saml,keycloak-client-saml-ejb
@pskopek
pskopek / postgres_how_to.md
Last active July 19, 2022 10:48
How to setup PostgreSQL Database on Fedora 36 for use with Keycloak

How to setup PostgreSQL Database on Fedora 36 for use with Keycloak

  1. Install postgresql-server package: sudo dnf install postgresql-server
  2. Switch to postgres user using: sudo su - postgres
  3. Initialize the PostgreSQL Data Cluster: initdb
  4. Start PostgreSQL DB instance: pg_ctl -D /var/lib/pgsql/data -l logfile start
  5. Create user 'keycloak' with password: createuser keycloak -d -P
  6. Created database for use with keycloak: createdb -O keycloak keycloak
  7. Exit the postgres user shell: exit

Keybase proof

I hereby claim:

  • I am pskopek on github.
  • I am pskopek (https://keybase.io/pskopek) on keybase.
  • I have a public key whose fingerprint is 7210 0BAB 5172 D7E3 1549 F1A7 34A3 7A8D C93E 65E9

To claim this, I am signing this object:

@pskopek
pskopek / PasswordStorageSpi.java
Created May 18, 2015 15:48
Password Storage SPI proposal.
/*
* JBoss, Home of Professional Open Source
* Copyright 2015 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0