Skip to content

Instantly share code, notes, and snippets.

View dsshap's full-sized avatar

Dave Shapiro dsshap

View GitHub Profile
@dsshap
dsshap / output.txt
Created February 8, 2018 05:00
proxy output
2018-02-08T04:52:46.707Z [info] [proxy] ProxyServerMediaSubsession[rtsp://35.171.178.112:39235/img/media.sav/,H264]::createNewStreamSource(session id 0)
2018-02-08T04:52:46.708Z [info] [proxy] Initiated: ProxyServerMediaSubsession[rtsp://35.171.178.112:39235/img/media.sav/,H264]
2018-02-08T04:52:46.708Z [info] ProxyServerMediaSubsession[rtsp://35.171.178.112:39235/img/media.sav/,H264]::createNewRTPSink()
2018-02-08T04:52:46.708Z [info] ProxyServerMediaSubsession[rtsp://35.171.178.112:39235/img/media.sav/,H264]::closeStreamSource()
2018-02-08T04:52:46.708Z [info] ProxyServerMediaSubsession[rtsp://35.171.178.112:39235/img/media.sav/,PCMU]::createNewStreamSource(session id 0)
2018-02-08T04:52:46.708Z [info] Initiated: ProxyServerMediaSubsession[rtsp://35.171.178.112:39235/img/media.sav/,PCMU]
2018-02-08T04:52:46.708Z [info] ProxyServerMediaSubsession[rtsp://35.171.178.112:39235/img/media.sav/,PCMU]::createNewRTPSink()
2018-02-08T04:52:46.708Z [info] ProxyServerMediaSubsession[rts
---
:logfile: /var/log/sidekiq_worker
:concurrency: 40
:queues:
- !ruby/array:Chef::Node::ImmutableArray
- high
- 7
- !ruby/array:Chef::Node::ImmutableArray
- default
- 5
@dsshap
dsshap / logs.txt
Created August 23, 2016 22:57
Yate Startup
root@raspberrypi:/# yate -s
Supervisor (21214) is starting
Yate (21215) is starting Tue Aug 23 22:56:46 2016
Loaded module iSAC floating point - based on WebRTC iSAC library version 4.3.0 (SPL version 1.2.0)
Loaded module RegexRoute
Loaded module Javascript
Loaded module GSM - based on libgsm-1.0.10
Loaded module MUX
Loaded module ToneDetector
Loaded module PBX
@dsshap
dsshap / recusive.rb
Last active September 11, 2015 23:59
def acquire_values_recursively(list_node, val_array=[])
return [] if list_node.nil?
val_array << list_node.value
unless list_node.next_node.nil?
acquire_values_recursively(list_node.next_node, val_array)
end
return val_array
end
- compared to -
Dec 27 11:28:34 dsshap-iPhone someapp[14703] <Error>: assertion failed: 12B411: libxpc.dylib + 71820 [AD580443-238D-3997-8D09-004C210D0C18]: 0x7d
Dec 27 11:28:34 dsshap-iPhone someapp[14703] <Warning>: Pixate Freestyle v2.1.4 (API 2) - Build 2014/06/23
Dec 27 11:28:34 dsshap-iPhone someapp[14703] <Warning>: Warning: sync SCNetworkReachability (by-name) query on main thread
Dec 27 11:28:34 dsshap-iPhone someapp[14703] <Warning>: Flurry: Starting session on Agent Version [Flurry_iOS_140_5.4.0]
Dec 27 11:28:35 dsshap-iPhone someapp[14703] <Warning>: uninitialized constant MenuManager::SWRevealViewController (NameError)
Dec 27 11:28:39 dsshap-iPhone ReportCrash[14705] <Notice>: Formulating crash report for process someapp[14703]

Tinder API documentation

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)

Note: this was written in April/May 2014 and the API may have changed since

API Details

@dsshap
dsshap / gist:5400025
Last active December 16, 2015 07:39
inheritance
module C
root_element self.name.split("::").last.underscore.to_sym
end
class B
include C
*bunch of constant shit
end
@dsshap
dsshap / gist:5205792
Created March 20, 2013 15:50
Sublime Layouts
[{
"id": "view",
"children": [{
"id": "layout",
"children": [{
"command": "set_layout",
"caption" : "1-2 Grid",
"keys": ["super+alt+shift+5"],
"args":
{
@dsshap
dsshap / gist:4225296
Created December 6, 2012 15:25
Sidekiq Autoscaler
autoscaler
sidekiq:
Sidekiq.configure_client do |config|
config.redis = { :size => 1 }
if heroku
config.client_middleware do |chain|
chain.add Autoscaler::Sidekiq::Client, heroku
end
@dsshap
dsshap / gist:4120134
Created November 20, 2012 18:54
Heroku ENV in Dev
heroku_env = File.join(Rails.root, 'config', 'heroku_env.rb')
load(heroku_env) if File.exists?(heroku_env)
//
heroku_ev.rb
ENV['foo'] = "bar"