Skip to content

Instantly share code, notes, and snippets.

@bydga
bydga / query.json
Last active December 31, 2015 18:49
{
"filter": {
"nested": {
"path": "parameters",
"filter": {
"and": [
{
"bool": {
"must": [
public class MyInterceptor extends EmptyInterceptor {
@Resource
private SampleExperimentRepository sampleExperimentRepository;
@Override
public boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types) {
boolean res = super.onFlushDirty(entity, id, currentState, previousState, propertyNames, types);
if (entity instanceof Experiment) {
Experiment e = (Experiment) entity;
$result = $this->getTimeline( $job->id, $min, $max, $job->startTime->format( 'U' ) );
$fromTms = time() - 14 * self::DAY;
if ( count( $result ) > 0 ) {
$this->saverInit();
$maxId = 0;
foreach ( $result as $tweet ) {
$id = $tweet['id_str'];
$maxId = max( $maxId, $id );
{
"id": "420561728082964480",
"userId": "78569316",
"type": [
"status",
"video"
],
"message": "\"Embracing Feedback\": @KLM gives advice on Social Customer Care #sociallydevoted http://t.co/xCfOPPkJcb",
"socialId": "420561728082964480",
org.postgresql.util.PSQLException: This connection has been closed.
at org.postgresql.jdbc2.AbstractJdbc2Connection.checkClosed(AbstractJdbc2Connection.java:822)
at org.postgresql.jdbc2.AbstractJdbc2Connection.getAutoCommit(AbstractJdbc2Connection.java:788)
at org.postgresql.fastpath.Fastpath.fastpath(Fastpath.java:74)
at org.postgresql.fastpath.Fastpath.fastpath(Fastpath.java:114)
at org.postgresql.fastpath.Fastpath.getInteger(Fastpath.java:126)
at org.postgresql.largeobject.LargeObject.<init>(LargeObject.java:91)
at org.postgresql.largeobject.LargeObject.copy(LargeObject.java:96)
at org.postgresql.jdbc2.AbstractJdbc2BlobClob.getBinaryStream(AbstractJdbc2BlobClob.java:104)
at org.postgresql.jdbc2.AbstractJdbc2Statement.setBlob(AbstractJdbc2Statement.java:3046)
{
"filter": {
"and": {
"filters": [
{
"nested": {
"query": {
"bool": {
"must": [
{
@bydga
bydga / a.json
Created February 11, 2014 14:44
{
"filtered": {
"query": {},
"filter": {
"bool": {
"must": [
{
"nested": {
"path": "params",
"filter": {
23.02.14 14:17:56,115 Google Chrome Helper[734]: Process unable to create connection because the sandbox denied the right to lookup com.apple.coreservices.launchservicesd and so this process cannot talk to launchservicesd. : LSXPCClient.cp #426 ___ZN26LSClientToServerConnection21setupServerConnectionEiPK14__CFDictionary_block_invoke() q=com.apple.main-thread
23.02.14 14:17:56,115 Google Chrome Helper[734]: Process unable to create connection because the sandbox denied the right to lookup com.apple.coreservices.launchservicesd and so this process cannot talk to launchservicesd.
23.02.14 14:17:56,125 Google Chrome Helper[734]: CGSLookupServerRootPort: Failed to look up the port for "com.apple.windowserver.active" (1100)
23.02.14 14:17:57,000 kernel[0]: IO80211ScanManager::startScanMultiple: Scan request received from 'SystemUIServer' (pid 173) (10 SSIDs, 0 BSSIDs).
23.02.14 14:17:57,000 kernel[0]: IO80211ScanManager::startScanMultiple: Initiating scan.
23.02.14 14:17:58,000 kernel[0]: IO80211ScanManager::getSca
org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor 'public cz.zcu.kiv.eegdatabase.wui.app.Elastic()'. An exception has been thrown during construction!
at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:194)
at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:67)
at org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:133)
at org.apache.wicket.core.request.handler.PageProvider.resolvePageInstance(PageProvider.java:268)
at org.apache.wicket.core.request.handler.PageProvider.getPageInstance(PageProvider.java:166)
at org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:269)
at org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:175)
at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:
#!/bin/bash
USER=bydzovskym
PASS=`security find-internet-password -g -s jenkins.ccl -w`
if [ "$1" = "--jobs" ]
then
cat ~/bin/jenkins.tmp
# json=$(curl -sf -u $USER:$PASS http://jenkins.ccl/api/json)
# echo $json | php -r '$jobs = json_decode(fgets(STDIN));foreach($jobs->jobs as $job) {echo $job->name . " ";};'
exit