Skip to content

Instantly share code, notes, and snippets.

View flybyray's full-sized avatar

Robert Rettig flybyray

View GitHub Profile
@flybyray
flybyray / _README.md
Created May 11, 2022 23:38
Play!Framework 1 Anwendung mit HTTPS unter Windows starten
  • %COMSPEC% /c "set __COMPAT_LAYER=RUNASINVOKER && start systempropertiesadvanced.exe"

    • prüfen: JAVA_HOME, PLAY_PATH, PYTHONHOME
  • code %PLAY_PATH%\play.bat

    • sicherstellen das funktionierendes PYTHON referenziert wird
      @echo off
      if not defined PYTHONHOME "%~dp0python\python.exe" "%~dp0play" %*
      
@flybyray
flybyray / Dockerfile
Last active May 10, 2022 01:14
HowTo run a Play!Framework 1 application with SSL, creating jks certificate store
####
FROM openjdk:8u332-slim-buster
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
ca-certificates \
curl \
netbase \
python \
Index: hibernate-core/src/main/java/org/hibernate/event/internal/AbstractFlushingEventListener.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- hibernate-core/src/main/java/org/hibernate/event/internal/AbstractFlushingEventListener.java (date 1535476081000)
+++ hibernate-core/src/main/java/org/hibernate/event/internal/AbstractFlushingEventListener.java (date 1536758339169)
@@ -146,6 +146,27 @@
// for ( Map.Entry me : IdentityMap.concurrentEntries( persistenceContext.getEntityEntries() ) ) {
EntityEntry entry = (EntityEntry) me.getValue();
#!/usr/bin/env bash
set -euo pipefail
set -vx
if test ! -d cloud-provisioning;
then
git clone https://github.com/vfarcic/cloud-provisioning.git
fi
cd cloud-provisioning
@flybyray
flybyray / instdocker.sh
Created March 6, 2017 20:46
Install docker tools
curl -sSL https://get.docker.com/ | sh
mkdir -p $HOME/bin
curl -sSL https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 > /tmp/jq &&
chmod +x /tmp/jq &&
cp /tmp/jq $HOME/bin/jq
export PATH="$HOME/bin:$PATH"
curl -sSL $(curl -sSL https://api.github.com/repos/docker/machine/releases/latest | jq -r ".assets[] | select(.name == \"docker-machine-`uname -s`-`uname -m`\") | .browser_download_url") >/tmp/docker-machine &&
chmod +x /tmp/docker-machine &&
cp /tmp/docker-machine $HOME/bin/docker-machine
@flybyray
flybyray / IO.java
Created December 2, 2016 15:54
fixing FileNotFoundException
package play.libs;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import play.exceptions.UnexpectedException;
import play.utils.OrderSafeProperties;
import java.io.*;
import java.nio.file.FileVisitResult;
import java.nio.file.Files;
@flybyray
flybyray / setwarzone.bat
Last active January 1, 2017 21:46
startup file to set environment
CALL d:\develop\CMake\setpath.bat
CALL d:\develop\Qt\5.7\msvc2015\bin\qtenv2.bat
@echo on
CALL "c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
@echo on
SET "QT5DIR=d:\develop\Qt\5.7\msvc2015"
SET "GLC_PATH=d:\develop\quesoglc\0.7.2"
cd d:\warzone\warzone2100\win32
@flybyray
flybyray / my.cnf
Last active October 20, 2016 12:05
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.