Skip to content

Instantly share code, notes, and snippets.

View nyilmaz's full-sized avatar

Nurettin Yılmaz nyilmaz

View GitHub Profile
package pipe.plug.security.processor;
import org.springframework.security.access.ConfigAttribute;
import org.springframework.security.web.FilterInvocation;
import org.springframework.security.web.access.channel.SecureChannelProcessor;
import org.springframework.util.Assert;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
95.6.94.41 - - [26/Mar/2014:14:00:24 +0200] "GET /embed/uzman-embed-v3.swf?v=prVTAD8eBdZ&no=639&jingle=yeme-ve-icme.mp4&referer=NdrPFWG5V8h&tit=Kol%20b%C3%B6re%C4%9Fi%20nas%C4%B1l%20yap%C4%B1l%C4%B1r?&urltit=kol-boregi-nasil-yapilir&subject=KOL%20B%C3%96RE%C4%9E%C4%B0%20NASIL%20HAZIRLANIR&surltit=kol-boregi-nasil-hazirlanir&ext=mp4 HTTP/1.1" 404 32671 "http://www.lezzetli.com/yemek-tarifleri/hamur-isi/borek/kol-boregi" "Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 10 10
65.55.24.215 - - [26/Mar/2014:14:00:30 +0200] "GET /etiket/haz%C4%B1r-biber-fidesi/e/16890 HTTP/1.1" 404 32671 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)" 13 13
65.55.24.215 - - [26/Mar/2014:14:01:29 +0200] "GET /konu/rahat-bir-hamilelik-icin/3 HTTP/1.1" 404 32671 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)" 9 9
157.56.92.146 - - [26/Mar/2014:14:01:31 +0200] "GET /etiket/lezyon/p4 HTTP/1.1" 404 32671 "-" "Mozilla/5.0 (c
212.156.51.102 - erhan-7142783:329680 [26/Mar/2014:14:00:13 +0200] "GET /arama/k/0Zddddddddd/tarihe-gore/ct/2 HTTP/1.1" 404 32816 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 577 577
212.156.51.102 - - [26/Mar/2014:14:02:38 +0200] "GET /arama/k/0Zddddddddd/tarihe-gore/ct/2 HTTP/1.1" 404 32671 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 788 788
192.168.139.9 - - [26/Mar/2014:14:03:43 +0200] "GET /favicon.ico HTTP/1.1" 404 1278 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36" 2 2
192.168.139.11 - - [26/Mar/2014:14:09:15 +0200] "GET /favicon.ico HTTP/1.1" 404 1278 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36" 1 1
212.156.51.102 - - [26/Mar/2014:14:09:37 +0200] "GET /arama/tango/p3 HTTP/1.1" 404 32671 "-" "Mozilla/5.
02:50:44.802 [main] ERROR o.s.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'visitResource': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.magnet.community.services.ActivityService com.magnet.community.resources.VisitResource.activityService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activityServiceBean': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: magnet.statue.plug.service.RedisStatService com.magnet.community.services.ActivityServiceBean.redisStatService; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool$Config
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProces
1.584333 10.10.140.4 -> 10.10.140.131 HTTP GET / HTTP/1.1 Continuation or non-HTTP traffic
1.618044 10.10.140.5 -> 10.10.140.131 HTTP GET /rest/services/vast/byId/609 HTTP/1.1
2.046138 10.10.140.5 -> 10.10.140.131 HTTP GET /rest/services/vast/byId/591 HTTP/1.1
2.157924 10.10.140.5 -> 10.10.140.131 HTTP GET /rest/services/vast/byId/597 HTTP/1.1
2.635879 10.10.140.5 -> 10.10.140.131 HTTP GET /rest/services/vast/byId/598 HTTP/1.1
2.851998 10.10.140.5 -> 10.10.140.131 HTTP GET /rest/services/v1/videos/featured/rows/6?id=1&t=F156292D292641BD3827CF3DE376FE00 HTTP/1.1
2.860829 10.10.140.5 -> 10.10.140.131 HTTP GET /rest/services/v1/categories/type/s/sortBy/43/offset/0/rows/14?id=1&experts=1&t=445888EB1A70677E47644720F20963C3 HTTP/1.1
2.908798 10.10.140.3 -> 10.10.140.131 HTTP GET / HTTP/1.1 Continuation or non-HTTP traffic
4.375090 10.10.140.5 -> 10.10.140.131 HTTP GET /rest/services/vast/byId/597 HTTP/1.1
4.473771 10.10.140.5 -> 10.10.140.131 HTTP GET /app-restful/services/v1/?id=
var infiniteScroll = {
defaults: {
url: undefined, // ajax requesti yapilacak url
initialOffset: 0, // baslangictaki offset (orn sayfada halihazirda 3 tane gosterilmistir bu durumda initialOffset 3 verilmeli)
offsetIncrement: 5, // her ajax requestinde kac eleman istenecegi
containerSel: undefined, // append edilecek container
loadingElemSel: undefined, // ajax requesti yapilirken cikacak gorsel
allShownElemSel: undefined // butun elemanlar gosterildiginde (ie sayfa sonunda) cikacak gorsel
},
insert into bundle (resource_id,`key`,`value`) values (100, 'metaVerify_v1.', '');
insert into bundle (resource_id,`key`,`value`) values (100, 'googleKey.', '');
insert into bundle (resource_id,`key`,`value`) values (100, 'mainpageMsg1.', '');
insert into bundle (resource_id,`key`,`value`) values (100, 'landingpage_mostCrowdedDatinSite.', '');
insert into bundle (resource_id,`key`,`value`) values (100, 'domain.', '');
insert into bundle (resource_id,`key`,`value`) values (100, 'domainehali.', '');
insert into bundle (resource_id,`key`,`value`) values (100, 'landingpage_onlyForThisCityTitle.', '');
insert into bundle (resource_id,`key`,`value`) values (100, 'landingpage_collageTitle1.', '');
insert into bundle (resource_id,`key`,`value`) values (100, 'landingpage_collageTitle2.', '');
insert into bundle (resource_id,`key`,`value`) values (100, 'landingpage_onlyForThisCityBody.', '');
var infiniteScroll = {
defaults: {
url: undefined, // ajax requesti yapilacak url
initialOffset: 0, // baslangictaki offset (orn sayfada halihazirda 3 tane gosterilmistir bu durumda initialOffset 3 verilmeli)
offsetIncrement: 5, // her ajax requestinde kac eleman istenecegi
containerSel: undefined, // append edilecek container
loadingElemSel: '#ajaxLoading', // ajax requesti yapilirken cikacak gorsel
allShownElemSel: '#allLoaded' // butun elemanlar gosterildiginde (ie sayfa sonunda) cikacak gorsel
},
package match.mycron.web.job.crawler;
import com.google.common.collect.Maps;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpUriRequest;
import org.apache.http.client.methods.RequestBuilder;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
import org.apache.http.util.EntityUtils;
$(function () {
$(document).ajaxSend(function(event, jqxhr, settings) {
if(settings.type === 'POST') {
var _csrf = $('meta[name="_csrf"]').attr('content');
var _csrf_header = $('meta[name="_csrf_header"]').attr('content');
if(_csrf && _csrf_header){
jqxhr.setRequestHeader(_csrf_header, _csrf);
} else {