Skip to content

Instantly share code, notes, and snippets.

View fivesmallq's full-sized avatar
🎯
Focusing

fivesmallq fivesmallq

🎯
Focusing
View GitHub Profile
@fivesmallq
fivesmallq / StringUtils.java
Created December 29, 2015 10:38
重现 fastjson filter bug
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.parser.deserializer.ExtraProcessor;
import com.alibaba.fastjson.serializer.NameFilter;
import com.alibaba.fastjson.serializer.SerializerFeature;
import org.apache.commons.lang3.Validate;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
/**
* website搜索.
*
* @param id
* @param q
* @param sort
* @param offset
* @param limit
* @return
*/
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x000000011cc38933, pid=2960, tid=5891
#
# JRE version: Java(TM) SE Runtime Environment (8.0_60-b27) (build 1.8.0_60-b27)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.60-b23 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C [libtesseract.dylib+0x12933] _ZN9tesseract9Tesseract15recog_all_wordsEP8PAGE_RESP10ETEXT_DESCPK4TBOXPKci+0xb9
#
@fivesmallq
fivesmallq / response.html
Created July 27, 2015 10:02
js 跳转58.220.228.242:80
<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">
<link rel="SHORTCUT ICON" href="/favicon.ico">
<title>Login</title>
<script language="JavaScript">
@fivesmallq
fivesmallq / response.html
Created July 27, 2015 10:00
58.61.154.244:80 广告
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="BGP服务器托管,电信服务器托管,双线服务器托管,深圳服务器托管,广东服务器托管,香港服务器托管,服务器租用托管">
<meta name="description" content="容大互联,中国领先互联网基础与云服务提供商,国家高新技术企业,13年专业运营经验,为企业提供服务器租用与托管,云服务器,云虚拟主机,VPS主机,企业邮箱,域名注册及其它企业云OA、云CRM服务,咨询电话:400-889-3939">
<link rel="shortcut icon" href="http://web2015.jotop.net/favicon.ico" />
<meta name="robots" content="INDEX,FOLLOW" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<link rel="icon" href="" type="image/x-icon" />
/*
* Copyright © 2005-2012 Amichai Rothman
*
* This file is part of JLHTTP - the Java Lightweight HTTP Server.
*
* JLHTTP is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
2015-06-02 18:16:26 [play-thread-2:Logger:544326 play.Logger.niceThrowable(Logger.java:570)] - [ ERROR ] ³öÖִÎóó!
java.lang.ArrayIndexOutOfBoundsException: 2
at apis.WebsiteAPIHelper.buildWebsiteConfig(WebsiteAPIHelper.java:187)
at apis.WebsiteAPIHelper.saveOrUpdateConfig(WebsiteAPIHelper.java:81)
at controllers.Websites.start(Websites.java:481)
at play.mvc.ActionInvoker.invokeWithContinuation(ActionInvoker.java:557)
at play.mvc.ActionInvoker.invoke(ActionInvoker.java:508)
at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:484)
at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:479)
at play.mvc.ActionInvoker.invoke(ActionInvoker.java:161)
@fivesmallq
fivesmallq / App.java
Last active August 29, 2015 14:21
NovaData API signature demo
package com.novacloud.data;
import org.apache.commons.codec.binary.Base64;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
@fivesmallq
fivesmallq / Base58.java
Created June 8, 2014 14:58
Base58 编码
/**
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software