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
<?xml version="1.0" encoding="utf-8"?> | |
<unattend xmlns="urn:schemas-microsoft-com:unattend"> | |
<!-- only relevant information to install Windows 2012 R2 in VirtualBox without hitting 0x80042565 error --> | |
<settings pass="windowsPE"> | |
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<DiskConfiguration> | |
<WillShowUI>OnError</WillShowUI> | |
<Disk wcm:action="add"> | |
<DiskID>0</DiskID> | |
<WillWipeDisk>true</WillWipeDisk> |
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.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 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
<?php | |
/** | |
* decodes the product key and returns it as "-"-seperated string | |
* @param array of bytes | |
* @return string | |
*/ | |
function decodeProductKey($aHexSrc) | |
{ | |
// base24-encoded | |
$arrDigits = array('B', 'C', 'D', 'F', 'G', 'H', 'J', 'K', 'M', 'P', 'Q', 'R', 'T', 'V', 'W', 'X', 'Y', '2', '3', '4', '6', '7', '8', '9'); |
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
#!/bin/bash | |
PATH_svn2git=~/svn2git/svn-all-fast-export | |
# path to account mapping. Must be in format "$svn-username $git-fullname <$git-email>" | |
PATH_account_map=~/svn2git/account-map | |
# layout template | |
PATH_template=~svn2git/standardlayout.rules |