Skip to content

Instantly share code, notes, and snippets.

View j4y's full-sized avatar

Jay Prall j4y

  • Massachusetts, USA
  • 17:01 (UTC -04:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am j4y on github.
  • I am j4y (https://keybase.io/j4y) on keybase.
  • I have a public key whose fingerprint is 10D2 A672 20A9 E2B5 7C85 B501 F26A 5FCE 4EF8 9FA1

To claim this, I am signing this object:

@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.7.2')
@Grab(group='org.apache.httpcomponents', module='httpclient', version='4.3.5')
@Grab(group='org.apache.httpcomponents', module='httpmime', version='4.3.5')
import groovyx.net.http.*
import groovyx.net.http.HTTPBuilder
import static groovyx.net.http.Method.POST
import org.apache.http.entity.mime.MultipartEntityBuilder
import org.apache.http.entity.mime.content.ByteArrayBody
@j4y
j4y / gist:9b4541242b69b0b2fe0e
Created June 9, 2015 21:09
frames dumped with ffmpeg
frame,video,1,325,0.325000,325,0.325000,325,0.325000,N/A,N/A,7157,4706,640,480,yuv420p,1:1,I,0,0,0,0,0
frame,video,0,868,0.868000,868,0.868000,868,0.868000,N/A,N/A,11870,3019,640,480,yuv420p,1:1,P,0,0,0,0,0
frame,video,0,1404,1.404000,1404,1.404000,1404,1.404000,N/A,N/A,14896,1560,640,480,yuv420p,1:1,P,0,0,0,0,0
frame,video,0,1658,1.658000,1658,1.658000,1658,1.658000,N/A,N/A,16463,1283,640,480,yuv420p,1:1,P,0,0,0,0,0
frame,video,0,1920,1.920000,1920,1.920000,1920,1.920000,N/A,N/A,17753,1001,640,480,yuv420p,1:1,P,0,0,0,0,0
frame,video,0,2201,2.201000,2201,2.201000,2201,2.201000,N/A,N/A,18761,1293,640,480,yuv420p,1:1,P,0,0,0,0,0
frame,video,0,2318,2.318000,2318,2.318000,2318,2.318000,N/A,N/A,20061,1315,640,480,yuv420p,1:1,P,0,0,0,0,0
frame,video,0,2450,2.450000,2450,2.450000,2450,2.450000,N/A,N/A,21383,1069,640,480,yuv420p,1:1,P,0,0,0,0,0
frame,video,0,2601,2.601000,2601,2.601000,2601,2.601000,N/A,N/A,22459,1084,640,480,yuv420p,1:1,P,0,0,0,0,0
frame,video,0,2720,2.720000,2720,2.720000,2720,2.720000,N/A,N/A,2355
@j4y
j4y / gist:c0883636b45831f97b87
Created June 9, 2015 21:04
WebRTC internals dump
{
"getUserMedia": [
{
"origin": "http://webrtc.example.com:3001",
"pid": 30062,
"rid": 15,
"video": "mandatory: {minWidth:640, maxWidth:640, minHeight:480, maxHeight:480}"
}
],
"PeerConnections": {
@j4y
j4y / connect-landslide-crm-api.php
Created August 13, 2011 16:57
connecting to Landslide CRM's SOAP api using php
#!/usr/bin/env php
<?php
$lsInstanceName = 'jaytest';
$lsUserName = 'XxXxXxXxXx@landslide.com';
$lsSecPwrd = 'XxXxXxXxXxXxXxXxXxXx';
$lsApiPass = md5($lsSecPwrd.$lsInstanceName);
$lsApiEndpointHost = 'api.landslide.com';
$lsApiEndpointURL = "https://${lsInstanceName}.${lsApiEndpointHost}/webservices/SoapService";
$lsApiNamespace = 'http://www.landslide.com/webservices/SoapService';
@j4y
j4y / dbstart.sh
Created July 15, 2011 14:11
oracle db scripts to start and stop
#!/bin/bash
export ORABIN=$ORACLE_HOME/bin
$ORABIN/sqlplus /nolog <<EOF
connect / as sysdba
startup
exit;
EOF
@j4y
j4y / savon-without-wsdl.rb
Created July 9, 2011 01:31
connecting to Landslide CRM's SOAP api using savon 0.9.1 without WDSL introspection
#!/usr/bin/env ruby
require 'rubygems'
require 'savon'
require 'httpclient'
require 'digest/md5'
LS_INSTANCE_NAME = 'jaytest'
LS_USERNAME = 'XxXxXxXxXx@landslide.com'
LS_PASSWORD = 'XxXxXxXxXxXxXxXxXxXx'
LS_API_PASS = Digest::MD5.hexdigest(LS_PASSWORD + LS_INSTANCE_NAME)
@j4y
j4y / build.xml
Created July 8, 2011 18:05
ant script to get a cvs branch name from the CVS tag file
<project name="ant script to get a cvs branch name from the CVS tag file" basedir=".">
<loadfile property="cvs.tag" srcFile="CVS/Tag" failonerror="false">
<filterchain>
<striplinebreaks/>
<tokenfilter>
<replaceregex pattern="^T" replace="" />
<replaceregex pattern="^D.*" replace="HEAD" />
</tokenfilter>
</filterchain>