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 class WicketJaasSession extends AuthenticatedWebSession { | |
| public static final String ROLES_GROUP_NAME = "ROLES"; | |
| public static final String ROLES_PREFIX = "ROLE_"; | |
| public static final String APPLICATION_POLICY_NAME = "blog"; | |
| private Subject subject; | |
| private Roles roles = new Roles(); | |
| @SuppressWarnings("deprecation") | |
| public WicketJaasSession(AuthenticatedWebApplication app, Request request) { |
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
| // Gremlin user-defined defined tree steps | |
| // inTree() and outTree() | |
| // by James Thornton, http://jamesthornton.com | |
| // see https://groups.google.com/d/topic/gremlin-users/iCPUifiU_wk/discussion | |
| // closure can't have the same name as the defined step | |
| tree = { vertices -> | |
| def results = [] |
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 boto | |
| from boto.route53.record import ResourceRecordSets | |
| import logging | |
| conn = boto.connect_ec2() | |
| DNS_EXCLUSION_TAG = 'ExcludeFromDNS' # If this tag exists on an instance, no DNS values will be populated | |
| DNS_TAGS = ['ShortName', 'Name'] # This is the list of instance tags we want to populate DNS entries from | |
| DNS_SUFFIX = 'YOUR_SUBDOMAIN_HERE' # Suffix under which to create DNS records | |
| ROUTE53_ZONE_ID = 'YOUR_ZONE_ID_HERE' # The zone id from route53 of the zone we will be adding these entries under |
NewerOlder