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 | |
BUILDDIR=/tmp/php_imap_mavericks | |
mkdir "$BUILDDIR" | |
echo " " | |
echo "= FETCHING AND INSTALLING IMAP" | |
echo " " | |
cd "$BUILDDIR" | |
wget -c ftp://ftp.cac.washington.edu/imap/imap-2007f.tar.gz | |
rm -rf imap-2007f |
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 it.dontesta.lab.jobs.kettle; | |
import org.pentaho.di.core.KettleEnvironment; | |
import org.pentaho.di.core.logging.LogChannel; | |
import org.pentaho.di.core.logging.LogChannelInterface; | |
import org.pentaho.di.core.plugins.PluginRegistry; | |
import org.pentaho.di.core.plugins.RepositoryPluginType; | |
import org.pentaho.di.job.Job; | |
import org.pentaho.di.job.JobMeta; | |
import org.pentaho.di.repository.RepositoriesMeta; |
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 com.eviware.soapui.support.types.StringToStringsMap | |
def authSucceeded = false | |
// Add those custom properties to your mock server | |
def user = mockRunner.mockService.getPropertyValue("httpUsername") | |
def pass = mockRunner.mockService.getPropertyValue("httpPassword") | |
log.info "checking for credentials: $user:$pass" | |
// get the request headers | |
StringToStringsMap headers = mockRequest.getRequestHeaders() |
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
Apache: | |
- Activated 'KeepAlive' connections | |
- Lowered keep alive timeout from 15 seconds to 2 seconds | |
- Increased the number of minimum workers from 8 to 16 | |
- Activated server status page (/server-status) | |
APC (Alternative PHP Cache): | |
- Set cache size to 256MB (ideal for SugarCRM workload) | |
Memcache: |
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 | |
/** | |
* Copyright (c) 2007, Roger Veciana | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* Redistributions of source code must retain the above copyright notice, this |
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
<div> | |
<pre> | |
<#list portletPreferences?keys as preference> | |
<#if portletPreferences[preference] ??> | |
<#assign mapValues = portletPreferences[preference] /> | |
<#list mapValues as value > | |
${preference} = ${value}<br /> | |
</#list> | |
</#if> | |
</#list> |
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 | |
/** | |
* This class can add WSSecurity authentication support to SOAP clients | |
* implemented with the PHP 5 SOAP extension. | |
* | |
* It extends the PHP 5 SOAP client support to add the necessary XML tags to | |
* the SOAP client requests in order to authenticate on behalf of a given | |
* user with a given password. | |
* |
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.sql.Connection; | |
import java.sql.ResultSet; | |
import java.sql.ResultSetMetaData; | |
import java.sql.SQLException; | |
import java.sql.Statement; | |
import com.liferay.portal.kernel.dao.jdbc.DataAccess; | |
Connection con = null; | |
Statement st = null; |
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
export TERM="xterm-256color" # This sets up colors properly | |
# workaround as per https://superuser.com/questions/1222867/zsh-completion-functions-broken | |
FPATH=$HOME/.oh-my-zsh/plugins/git:$HOME/.oh-my-zsh/functions:$HOME/.oh-my-zsh/completions:/usr/share/zsh/site-functions:/usr/share/zsh/$ZSH_VERSION/functions | |
export FPATH | |
# set shell | |
export SHELL=/usr/bin/zsh |
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
<AuthnProviderAlias ldap auth1> | |
AuthLDAPURL "ldaps://auth1.example.com:636/DC=example,DC=com?sAMAccountName?sub?(objectClass=*)" | |
AuthLDAPBindDN "ldap_query" | |
AuthLDAPBindPassword "password" | |
</AuthnProviderAlias> | |
<AuthnProviderAlias ldap auth2> | |
AuthLDAPURL "ldaps://auth2.example.com:636/DC=example,DC=com?sAMAccountName?sub?(objectClass=*)" | |
AuthLDAPBindDN "ldap_query" | |
AuthLDAPBindPassword "password" |
OlderNewer