This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Gitorious config/authentication.yml with Active Directory support | |
# This is based on https://gitorious.org/gitorious/mainline/merge_requests/181 | |
production: | |
# Disable database authentication altogether | |
#disable_default: true | |
# additional methods, an array of hashes | |
methods: | |
- adapter: Gitorious::Authentication::LDAPAuthentication |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# von http://vagubunt.wordpress.com | |
# | |
##### ENVIRONMENT | |
export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin | |
export EDITOR=vim | |
export PAGER=less | |
export BROWSER=links | |
export LESS=-cex3M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A simple PowerShell script for retrieving the RAID status of volumes with help of diskpart. | |
# The nicer solution would be using WMI (which does not contain the RAID status in the Status field of Win32_DiskDrive, Win32_LogicalDisk or Win32_Volume for unknown reason) | |
# or using the new PowerShell API introduced with Windows 8 (wrong target system as our customer uses a Windows 7 architecture). | |
# | |
# diskpart requires administrative privileges so this script must be executed under an administrative account if it is executed standalone. | |
# check_mk has this privileges and therefore this script must only be copied to your check_mk/plugins directory and you are done. | |
# | |
# Christopher Klein <ckl[at]neos-it[dot]de> | |
# This script is distributed under the GPL v2 license. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################# | |
################### OFFICIAL UBUNTU REPOS ################### | |
############################################################# | |
###### Ubuntu Main Repos | |
deb http://de.archive.ubuntu.com/ubuntu/ quantal main restricted universe multiverse | |
deb-src http://de.archive.ubuntu.com/ubuntu/ quantal main restricted universe multiverse | |
###### Ubuntu Update Repos | |
deb http://de.archive.ubuntu.com/ubuntu/ quantal-security main restricted universe multiverse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package roboguice.config; | |
import android.app.*; | |
import android.content.ContentResolver; | |
import android.content.Context; | |
import android.content.SharedPreferences; | |
import android.content.pm.PackageInfo; | |
import android.content.pm.PackageManager; | |
import android.content.res.AssetManager; | |
import android.content.res.Resources; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package de.neosit.spring.context; | |
import java.io.IOException; | |
import javax.servlet.ServletContext; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.context.ApplicationContextInitializer; | |
import org.springframework.context.ConfigurableApplicationContext; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.ejb.Singleton; | |
import javax.enterprise.context.ApplicationScoped; | |
import org.springframework.context.ApplicationContext; | |
/** | |
* Global {@link ApplicationContext} holder which can be referenced inside any | |
* EJB/interceptor. This context is annotated with {@link Singleton} so there | |
* can only one application wide context be defined. Additionally, this class is | |
* marked as {@link ApplicationScoped}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.annotation.PostConstruct; | |
import javax.ejb.EJB; | |
import javax.faces.bean.ApplicationScoped; | |
import javax.faces.bean.ManagedBean; | |
import javax.faces.context.FacesContext; | |
import javax.servlet.ServletContext; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.web.context.ContextLoader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.ejb.EJB; | |
import org.springframework.beans.factory.BeanFactory; | |
import org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor; | |
import de.ckl.ejb.SpringContextBean; | |
/** | |
* {@link SpringContextInterceptor} can be used for autowiring Spring beans | |
* inside EJBs. Unlike {@link SpringBeanAutowiringInterceptor} the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashMap; | |
import java.util.Map; | |
import javax.persistence.EntityManagerFactory; | |
import javax.persistence.spi.PersistenceProvider; | |
import javax.persistence.spi.PersistenceUnitInfo; | |
import org.hibernate.ejb.Ejb3Configuration; | |
import org.hibernate.ejb.HibernatePersistence; |