Skip to content

Instantly share code, notes, and snippets.

View hferentschik's full-sized avatar

Hardy Ferentschik hferentschik

View GitHub Profile
Vagrant.configure('2') do |config|
config.vm.box = 'debian/jessie64'
config.vm.hostname = 'snafu.foo.bar'
config.vm.network :private_network, type: 'dhcp'
config.vm.synced_folder '.', '/vagrant', disabled: true
config.landrush.enabled = true
config.landrush.tld = 'foo.bar'
if Vagrant.has_plugin?('landrush')
cdk.landrush.enabled = true
tld = 'openshift.cdk'
cdk.landrush.tld = tld
cdk.landrush.host tld, "#{PUBLIC_ADDRESS}"
cdk.vm.provision :shell, inline: <<-SHELL
sed -i.orig -e "s/OPENSHIFT_SUBDOMAIN=.*/OPENSHIFT_SUBDOMAIN='#{tld}'/g" /etc/sysconfig/openshift_option
SHELL
end
import java.io.*;
import java.util.Map;
class StreamGobbler extends Thread {
InputStream is;
String type;
StreamGobbler(InputStream is, String type) {
this.is = is;
this.type = type;
@hferentschik
hferentschik / gist:fe9dbb3bc28f56940f165061befab6b2
Created March 31, 2016 11:48
sftp-server not found error
==> cdk: Mounting SSHFS shared folders...
==> cdk: Mounting folder via SSHFS: C:/DeveloperPlatform/cygwin/home/hardy => C:DeveloperPlatformcygwinhomehardy
==> cdk: Checking Mount..
Warning: Permanently added '[127.0.0.1]:2222' (ECDSA) to the list of known hosts.
==> cdk: Checking Mount..
==> cdk: Checking Mount..
==> cdk: Checking Mount..
==> cdk: Checking Mount..
==> cdk: Checking Mount..
==> cdk: Checking Mount..
@hferentschik
hferentschik / Vagrantfile
Created March 22, 2016 14:16
Default CDK Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# The private network IP of the VM. You will use this IP to connect to OpenShift.
PUBLIC_ADDRESS="10.1.2.2"
# Number of virtualized CPUs
VM_CPU = ENV['VM_CPU'] || 2
# Amount of available RAM
Bringing machine 'cdk' up with 'virtualbox' provider...
==> cdk: Importing base box 'cdk_v2'...
Progress: 10%
Progress: 20%
Progress: 30%
Progress: 40%
Progress: 50%
Progress: 90%
==> cdk: Matching MAC address for NAT networking...
==> cdk: Setting the name of the VM: openshift.cdk-2-ose-3-2
cdk.vm.provision :shell, inline: <<-SHELL
/opt/adb/openshift/add_insecure_registry -ip #{REGISTRY_HOST}
systemctl enable openshift
systemctl start openshift
# https://github.com/projectatomic/adb-utils/issues/32
export KUBECONFIG=/var/lib/openshift/openshift.local.config/master/admin.kubeconfig
oadm policy add-cluster-role-to-user cluster-admin admin
import java.util.List;
import java.util.Map;
import acme.Film;
import org.hibernate.HibernateException;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
404 - GroupItemNotFoundException
Path /org/hibernate/hibernate-search-engine/5.0.0.Beta2/ not found in group repository "Public JBoss Repository Group" [id=public-jboss].
org.sonatype.nexus.proxy.repository.GroupItemNotFoundException: Path /org/hibernate/hibernate-search-engine/5.0.0.Beta2/ not found in group repository "Public JBoss Repository Group" [id=public-jboss].
at org.sonatype.nexus.proxy.repository.AbstractGroupRepository.doRetrieveItem(AbstractGroupRepository.java:301)
at org.sonatype.nexus.proxy.maven.maven2.M2GroupRepository.doRetrieveItem(M2GroupRepository.java:154)
at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:765)
at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:608)
at org.sonatype.nexus.proxy.router.DefaultRepositoryRouter.retrieveItem(DefaultRepositoryRouter.java:155)
After some time in the making, we are happy to announce the first Hibernate Validator release of
the 5.2 series - 5.2.0.Alpha1.
This release focuses mainly on Java 8 support, but we will get to this in a bit.
First a big thank you to [Khalid Alqinyah=>https://github.com/khalidq] who, as part of a
[Google Summer of Code=>https://www.google-melange.com/gsoc/homepage/google/gsoc2014] project,
implemented many of these new features.
So what's in it for you?