perl -MMIME::Base64 -ne 'print decode_base64($_)' ./saml_input.txt | xmllint --format - | source-highlight -s xml -f esc
cat ./saml_input.txt | ruby -r Base64 -ne 'puts Base64.decode64($_)' | xmllint --format - | source-highlight -s xml -f esc
| #!/usr/bin/env sh | |
| if [ "$1" != "" ]; then | |
| mkdir "$1" && cd "$1" | |
| if [ "$(type -t curl)" == "file" ]; then | |
| curl -L -s https://www.gitignore.io/api/node,macos >> .gitignore | |
| else | |
| echo "curl not found." | |
| fi |
| private String sanitizeUsername(String name) { | |
| LOGGER.debug("sanitizeUsername(" + name + ")"); | |
| if ( ! StringUtils.containsOnly(name.toUpperCase(), "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789#$_@")) { | |
| name = name.replaceAll("[^A-Za-z0-9\\#\\$\\_\\@]", ""); | |
| } | |
| LOGGER.debug("sanitized to [" + name + "]"); | |
| return name; | |
| } |
| # From http://fahdshariff.blogspot.ca/2011/04/highlighting-command-output-with.html | |
| # this configuration file is suitable for displaying log files | |
| #errors | |
| regexp=^.*(ERROR|Error|Exception).*$ | |
| colours=bold red | |
| ====== | |
| #stack trace | |
| regexp=^\s+at [^:]*:\d*\)$ | |
| colours=red |
| Use the following functions to apply basic transformations to the properties listed below. | |
| f:toUpperCase(property) | |
| f:toLowerCase(property) | |
| f:substringBefore(property, searchString) | |
| f:substringAfter(property, searchString) | |
| f:replace(property, oldValue, newValue) | |
| ${f:toUpperCase(f:substring(user.firstName,0,1))}${f:toUpperCase(f:substring(user.lastName,0,1))}${f:toLowerCase(f:substring(user.lastName,1,99))} |
| <%@page contentType="text/html" pageEncoding="UTF-8"%> | |
| <!DOCTYPE html> | |
| <HTML> | |
| <HEAD> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <title>Snoopster</title> | |
| <%@ page import="javax.servlet.http. | |
| HttpUtils,java.util.Enumeration" %> | |
| </HEAD> |