Skip to content

Instantly share code, notes, and snippets.

View ilyakava's full-sized avatar

Ilya Kavalerov ilyakava

View GitHub Profile
Oct 01, 2014 11:25:43 AM com.amazonaws.http.AmazonHttpClient executeHelper
INFO: Unable to execute HTTP request: Invalid argument
java.net.SocketException: Invalid argument
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:152)
at java.net.SocketInputStream.read(SocketInputStream.java:122)
at sun.security.ssl.InputRecord.readFully(InputRecord.java:442)
at sun.security.ssl.InputRecord.read(InputRecord.java:480)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927)
at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:884)
Oct 01, 2014 3:24:18 PM com.amazonaws.http.AmazonHttpClient executeHelper
INFO: Unable to execute HTTP request: Invalid argument
java.net.SocketException: Invalid argument
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:152)
at java.net.SocketInputStream.read(SocketInputStream.java:122)
at sun.security.ssl.InputRecord.readFully(InputRecord.java:442)
at sun.security.ssl.InputRecord.read(InputRecord.java:480)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927)
at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:884)
@ilyakava
ilyakava / flare-up-makefile
Created November 14, 2014 22:12
while working on the gem, a quick way to remake the gem and test it out in production env
clean:
rm -f flare-up-0.8.gem
build: clean flare-up.gemspec
git add --a
gem build flare-up.gemspec
install: build
gem install flare-up-0.8.gem
@ilyakava
ilyakava / jebara.sublime-build
Created November 16, 2014 16:34
Sublime build settings for pandoc
// Build with: Command+B, outputs into same directory as source
// /Users/artsyinc/Library/Application\ Support/Sublime\ Text\ 2/Packages/User/jebara.sublime-build
{
"cmd": ["/usr/local/bin/pandoc", "$file", "-o", "writeup-ik2356.pdf", "--latex-engine", "/usr/texbin/pdflatex"]
}
@ilyakava
ilyakava / fulcrum_jenkins_ssh_lessons.sh
Created November 21, 2014 18:00
sshing lessons into jenkins - fulcrum
### sshing lessons into jenkins - fulcrum
# the file with the sources list
less /etc/apt/sources.list
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bkup
# delete mirror info and update
sudo sed -i 's/us-east-1\.ec2\.//g' /etc/apt/sources.list
sudo apt-get update
# search for what we need, find it, and install succeeds
@ilyakava
ilyakava / pom_csv.rb
Created February 23, 2015 22:17
ruby parser for scala dependency xmls
# input is an default-*-build-compile.xml generated by scala/sbt
# output is a csv with headers: name version homepage summary license license_url org
require 'nokogiri'
require 'csv'
infile = ARGV[0]
infile_name = infile.split('.')[0..-2].join('.')
f = File.open(ARGV[0])
@ilyakava
ilyakava / ima_image_links
Created March 5, 2015 21:15
Ima images links
#include <stdio.h>
__global__ void cube(float * d_out, float * d_in){
// Todo: Fill in this function
int idx = threadIdx.x;
float f = d_in[idx];
d_out[idx] = f * f * f;
}
int main(int argc, char ** argv) {
# On: Ubuntu 14.10 (Utopic Unicorn), used with opencv 2.4.11 and cuda-7.0 for Quadro NVS 510
# Also successfuly tested On: Ubuntu 14.10 (Utopic Unicorn), used with opencv 3.0.0 and cuda-7.0 for Tesla K40c
set -o errexit
echo "Removing any pre-installed ffmpeg and x264"
sudo apt-get -qq remove ffmpeg x264 libx264-dev libavcodec-dev libavformat-dev libavdevice-dev libavutil-dev
echo "Installing ffmpeg from source"
sudo apt-get -qq install git
git clone git://source.ffmpeg.org/ffmpeg.git
cd ffmpeg
#include "opencv2/core/core_c.h"
#include "opencv2/core/core.hpp"
#include "opencv2/flann/miniflann.hpp"
#include "opencv2/imgproc/imgproc_c.h"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/video/video.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/objdetect/objdetect.hpp"
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/ml/ml.hpp"