Skip to content

Instantly share code, notes, and snippets.

@mirosval
mirosval / redshift.log
Created Jan 8, 2018
Doobie Redshift Performance Logs
View redshift.log
==> RedshiftJDBC_connection_0.log <==
Jan 08 08:45:07.790 DEBUG 30 com.amazon.jdbc.communications.InboundMessagesThread.run: Select triggered, no keys given.
Jan 08 08:45:08.205 TRACE 29 com.amazon.redshift.client.PGClient.isValid(): +++++ enter +++++
Jan 08 08:45:08.206 TRACE 29 com.amazon.redshift.client.PGClient.isConnected(): +++++ enter +++++
Jan 08 08:45:08.206 TRACE 29 com.amazon.support.channels.AbstractSocketChannel.isClosed(): +++++ enter +++++
Jan 08 08:45:08.206 TRACE 29 com.amazon.support.channels.AbstractSocketChannel.isClosed(): +++++ enter +++++
Jan 08 08:45:08.206 DEBUG 29 com.amazon.support.channels.TLSSocketChannel.write: WriteMessages:WRAP:BEFORE:0:writeBuffer.remaining:50:writeBuffer.pos:0:writeBuffer.limit:50
Jan 08 08:45:08.206 DEBUG 29 com.amazon.support.channels.TLSSocketChannel.write: WriteMessages:WRAP:AFTER:0:writeBuffer.remaining:0:writeBuffer.pos:50:writeBuffer.limit:50:produced:133:consumed:50
Jan 08 08:45:08.206 DEBUG 29 com.amazon.support.channels.TLSSocketChannel.write: Write
@mirosval
mirosval / Dockerfile
Created Sep 27, 2016
Tensorflow Javacpp-presets Linux Build
View Dockerfile
FROM centos:7
RUN yum install epel-release -y && \
yum install -y \
clang \
gcc-c++ \
gcc-gfortran \
java-devel \
maven \
python \
@mirosval
mirosval / gist:dda218a0ae7cb1ab9449
Created Jul 10, 2014
Roulette "hack" simulation
View gist:dda218a0ae7cb1ab9449
{
"metadata": {
"name": "roulette"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@mirosval
mirosval / gist:9169921
Created Feb 23, 2014
Calibration for Hue-based blob detector OpenCV
View gist:9169921
import numpy as np
import cv2
import freenect
cv2.namedWindow("Image")
cv2.moveWindow("Image", 0, 30)
cv2.namedWindow("Tresh")
cv2.moveWindow("Tresh", 800, 30)
View 003-iris-unwrap.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mirosval
mirosval / 001-pupil-detection.ipynb
Created Feb 1, 2014
001 Pupil Detection using OpenCV
View 001-pupil-detection.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mirosval
mirosval / videomotion.ipynb
Last active Dec 27, 2015
Video Motion Magnification
View videomotion.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.