Skip to content

Instantly share code, notes, and snippets.

View schube's full-sized avatar

Bernhard Schulz schube

  • schubec GmbH
  • Salzburg
View GitHub Profile
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.List;
import javax.naming.Context;
import javax.naming.NamingEnumeration;
import javax.naming.directory.SearchControls;
import javax.naming.directory.SearchResult;
import javax.naming.ldap.ExtendedRequest;
header("Content-Type: application/json");
$data=array();
$data['success']=false;
try {
$fm = new \FileMaker ( \Schubec\Config\FmApiConfig::DATABASE, \Schubec\Config\FmApiConfig::URL, \Schubec\Config\FmApiConfig::USERNAME, \Schubec\Config\FmApiConfig::PASSWORD );
$command = $fm->newAddCommand ( 'www_NewsletterTracking' );
@schube
schube / Apache vHost Config
Created March 27, 2021 16:53
Gitlab Registry on docker with reverse proxy
<VirtualHost *:443>
ServerAdmin info@mydomain.com
ServerName registry.mydomain.com
SSLEngine on
SSLCompression Off
SSLProtocol all -SSLv2 -SSLv3
SSLCertificateFile /etc/letsencrypt/live/registry.mydomain.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/registry.mydomain.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/registry.mydomain.com/fullchain.pem
@schube
schube / fmlog.log
Created June 30, 2020 08:46
FileMaker Log
09:47:56.555 +0200 94 Client "MEINCLIENT (PC089) [10.50.xx.xx]" öffnet Datenbank "Meine-FM-Datenbank 1" als "USER".
09:47:56.820 +0200 730 SICHERHEIT: Single-Sign-on-Authentifizierung von Client "MEINCLIENT (PC089) [10.50.xx.xx]" an Datenbank "Meine-FM-Datenbank 2.fmp12" unter Verwendung von "USER [fmapp]" fehlgeschlagen.
09:47:56.836 +0200 94 Client "MEINCLIENT (PC089) [10.50.xx.xx]" öffnet Datenbank "Meine-FM-Datenbank 2" als "USER".

Keybase proof

I hereby claim:

  • I am schube on github.
  • I am schubec (https://keybase.io/schubec) on keybase.
  • I have a public key ASDo7YpvE6YOagXfg1WUzkXzlzgE99xsgSRqdONX7uB1EQo

To claim this, I am signing this object:

@schube
schube / Paypal.js
Created August 8, 2019 08:39
Paypal Buttons SDK with Customer Data
<!DOCTYPE html>
<head>
<!-- Add meta tags for mobile and IE -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
</head>
<body>
package com.schubec.bingooo.client.rest.dispatcher;
import org.fusesource.restygwt.client.Method;
import org.fusesource.restygwt.client.MethodCallback;
import org.gwtproject.event.shared.SimpleEventBus;
import com.google.gwt.core.client.GWT;
import com.google.gwt.http.client.Request;
import com.google.gwt.http.client.RequestCallback;
import com.google.gwt.http.client.RequestException;
@schube
schube / boxstarter1.txt
Created April 16, 2019 12:22
Install sbt / Eclipse for development with Boxstarter
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
cinst jdk8
cinst sbt
cinst eclipse
cinst git-credential-winstore
cinst console-devel
cinst notepadplusplus
cinst git
@schube
schube / .classpath
Created February 20, 2019 09:26
Broken classpath
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/test/java" output="target/test-classes" including="**/*.java"/>
<classpathentry kind="src" path="src/main/java" including="**/*.java"/>
<classpathentry kind="output" path="target/Aioc-1.0-SNAPSHOT/WEB-INF/classes"/>
<classpathentry kind="var" path="M2_REPO/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar" sourcepath="M2_REPO/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar" sourcepath="M2_REPO/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2.jar" sourcepath="M2_REPO/javax/annotation/javax.annotation-ap
image: maven:latest
stages:
- build
build:
stage: build
script:
- mvn --batch-mode clean package compile gwt:compile