Skip to content

Instantly share code, notes, and snippets.

Sam svaponi

Block or report user

Report or block svaponi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gitlab-client.html
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.min.js"></script>
<style>
.container>div {
View download-cloudwatch-log-events.sh
#!/bin/bash
# Script per scaricare i log da CloudWatch della AWS Console
home=`pwd`
# creo cartella tmp
mkdir -p .tmp
# scarico tutti i log-groups disponibili in formato JSON
View RegexTester.java
package cucumber.infocert.tests.utils;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Loop in ascolto sullo STDIN per testare le Regex-Java
*
* @author svaponi
View DetectClientInfoUtil.java
package it.miriade.commons.web.utils;
import java.util.Arrays;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
View MappingDetector.java
package it.miriade.commons.web.utils;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.slf4j.Logger;
View ClasspathLoader.java
package it.miriade.commons.web.utils;
import java.io.File;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.Arrays;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.StringUtils;
View AcceptLanguageParser.java
package it.miriade.commons.web.utils;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
public class AcceptLanguageParser {
/**
* Ritorna una lista di Array Object contenent in Object[0] l'oggetto Locale e in Object[1] il valore "q".
View LogbackInitializer.java
package it.miriade.infobus.logging;
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Objects;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
View CustomHeadersCORSFilter.java
package it.miriade.infobus.web.filters;
import java.io.IOException;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
View DateDeserializer.java
package it.miriade.commons.web.resources.utils;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
You can’t perform that action at this time.