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.io.BufferedReader; | |
import java.io.DataOutputStream; | |
import java.io.InputStreamReader; | |
import java.io.ObjectStreamClass; | |
import java.io.ObjectStreamConstants; | |
import java.lang.reflect.Field; | |
// This class assembles a serialization description into a byte blob. | |
// "//" comment can appear anywhere (hopefully not in a string); | |
// A line can be "string" or 'A' (byte); |
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 | |
if [ "$1" = "" ]; then | |
cat <<___ | |
Usage: $(basename $0) relations+ | |
Each relation is a string describing a trusted path. This command | |
creates all KDCs with the relations and basic principals | |
including a user and a service, and starts them up. |
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 | |
if [ "$3" = "" ]; then | |
cat <<EOF | |
Usage: `basename $0` realm-name kdc-host port-number | |
This command will create necessary files for a new KDC instance | |
in the current directory. This includes a kdc.conf, a krb5.conf | |
and a startup script to use KDC each time. The command itself | |
does not make any environment changes. |
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
/* | |
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. | |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
* | |
* This code is free software; you can redistribute it and/or modify it | |
* under the terms of the GNU General Public License version 2 only, as | |
* published by the Free Software Foundation. | |
* | |
* This code is distributed in the hope that it will be useful, but WITHOUT | |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
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
#! /usr/bin/perl | |
$stage = 1; | |
while (<STDIN>) { | |
if ($stage == 1) { | |
if (/TRACE (\d+)/) { | |
if ($line ne '') { | |
$cpu{$id} = $line; | |
} |
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.lang.reflect.Method; | |
import java.nio.charset.Charset; | |
import java.security.Provider; | |
import java.security.Security; | |
import java.text.DateFormat; | |
import java.util.*; | |
class Listing { | |
public static void main(String[] args) throws Exception { |