This file contains hidden or 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
| <security-domain name="idp" cache-type="default"> | |
| <authentication> | |
| <login-module code="org.jboss.security.auth.spi.LdapExtLoginModule" flag="required"> | |
| <module-option name="java.naming.provider.url" value="ldap://localhost:389"/> | |
| <module-option name="java.naming.security.authentication" value="simple"/> | |
| <module-option name="bindDN" value="cn=XXXXX"/> | |
| <module-option name="bindCredential" value="XXXXXX"/> | |
| <module-option name="baseCtxDN" value="ou=People,dc=XXXXX,dc=XXX"/> | |
| <module-option name="baseFilter" value="(uid={0})"/> | |
| <module-option name="rolesCtxDN" value="ou=groups,dc=XXXXX,dc=XXX"/> |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # | |
| # log_format traffic '$http_host|$status|$bytes_sent|$msec|$remote_addr|$request_uri'; | |
| import sys | |
| import itertools, operator | |
| from datetime import datetime | |
| access_log = '/var/log/nginx/access.log' |
This file contains hidden or 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 | |
| # save the file as <git_directory>/.git/hooks/pre-commit | |
| echo "Running Maven clean test for errors" | |
| # retrieving current working directory | |
| CWD=`pwd` | |
| MAIN_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| # go to main project dir | |
| cd $MAIN_DIR/../../ |
This file contains hidden or 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 | |
| ARCH='' | |
| DESCRIPTION='' | |
| GROUP='Applications' | |
| LICENSE='Restricted' | |
| NAME='' | |
| PRINTSPEC=false | |
| RELEASE=$(date +%Y.%m.%d+%S) | |
| SUMMARY='' |
This file contains hidden or 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
| public abstract class Memory { | |
| private static Runtime runtime = Runtime.getRuntime(); | |
| private static int mb = 1024*1024; | |
| public static long getFree() { | |
| return runtime.freeMemory() / mb; | |
| } |
This file contains hidden or 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 nl.techop.AccountControl.utils | |
| /** | |
| * @author arnobroekhof | |
| * | |
| */ | |
| class FileContentUtils { | |
| /** | |
| * Return the content of the given file |
This file contains hidden or 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
| log4j.rootLogger=WARN, syslog | |
| log4j.appender.syslog=org.apache.log4j.net.SyslogAppender | |
| log4j.appender.syslog.facility=LOCAL0 | |
| log4j.appender.syslog.layout.ConversionPattern=%-5p [%t] [%c]: %m%n | |
| log4j.appender.syslog.layout=org.apache.log4j.PatternLayout | |
| log4j.appender.syslog.SyslogHost=my.syslog.server.fqdn |
This file contains hidden or 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
| # description "start and stop the bamboo-agent" | |
| # | |
| start on runlevel [2345] | |
| stop on runlevel [^2345] | |
| console log | |
| chdir /opt/bamboo | |
| setuid bamboo | |
| setgid bamboo |
This file contains hidden or 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
| Sub PasswordBreaker() | |
| 'Breaks worksheet password protection. | |
| Dim i As Integer, j As Integer, k As Integer | |
| Dim l As Integer, m As Integer, n As Integer | |
| Dim i1 As Integer, i2 As Integer, i3 As Integer | |
| Dim i4 As Integer, i5 As Integer, i6 As Integer | |
| On Error Resume Next | |
| For i = 65 To 66: For j = 65 To 66: For k = 65 To 66 | |
| For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66 | |
| For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66 |
This file contains hidden or 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
| #!/usr/bin/env python | |
| import ldap | |
| import os, sys | |
| import ConfigParser | |
| import logging | |
| config_file = '/etc/sysconfig/ssh-ldap' | |
| def parse_config(config_file): |