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 org.json.JSONArray; | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
import java.util.*; | |
public class JsonHelper { | |
public static Object toJSON(Object object) throws JSONException { | |
if (object instanceof Map) { | |
JSONObject json = new JSONObject(); |
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/sh | |
# Script to generate a baseline of known good values for a FreeBSD 10.x server | |
# The outputs should be able to be diff'd later to verify that no changes have occured | |
BASELINE=baseline | |
SUDO=/usr/local/bin/sudo | |
/bin/rm -rf $BASELINE | |
/bin/mkdir $BASELINE | |
/bin/hostname > $BASELINE/hostname |