Skip to content

Instantly share code, notes, and snippets.

View alexkwolfe's full-sized avatar

Alex Wolfe alexkwolfe

  • ActiveProspect, Inc.
  • Austin, TX
View GitHub Profile
@alexkwolfe
alexkwolfe / error.json
Last active August 29, 2015 14:03
LeadConduit Response
{
"outcome": "error",
"reason": "An unexpected error occurred",
"lead": {
"id": "53b0c7c50225eed74cad4227"
}
}
@alexkwolfe
alexkwolfe / keybase.md
Last active August 29, 2015 13:57
keybase.md

Keybase proof

I hereby claim:

  • I am alexkwolfe on github.
  • I am alexkwolfe (https://keybase.io/alexkwolfe) on keybase.
  • I have a public key whose fingerprint is FC01 9D67 DFE1 F3A7 C52C 775A 9932 89C1 EFF8 960B

To claim this, I am signing this object:

{"response"=>
{"success"=>{},
"BZStateID"=>"43",
"BZVendorList"=>
{"vendors"=>
{"vendor"=>
[{"__content__"=>"Mobile Mini - Akron, OH - 162", "id"=>"3498"},
{"__content__"=>"Mobile Mini - Albuquerque, NM - ", "id"=>"3499"},
{"__content__"=>"Mobile Mini - Atlanta, GA - 128", "id"=>"3500"},
{"__content__"=>"Mobile Mini - Austin, TX - 108", "id"=>"3501"},
@alexkwolfe
alexkwolfe / New Claim Call
Last active April 22, 2021 16:42
TrustedForm Claim API Revision
$ curl -X POST -uAPI:YOUR_API_KEY https://cert.trustedform.com/8189d5a77937b27a3d85ca181fc34f2b46a60908 -H 'Accept: application/json' -H 'Content-Type: application/x-www-form-urlencoded' -d'vendor=SuperInstantLeads&reference=ABC123&fingerprint=03685a113a7bf67d146c05d2165c9fccbfd02719&fingerprint=c0c686d4b4c680347df82742250093bbbf361b3b'
> HTTP/1.1 201 Created
> Content-Type: application/json; charset=utf-8
> Location: https://app.trustedform.com/claims/51ddbe9d82d28b8d38000009
>
> {
> "id": "51ddbe9d82d28b8d38000009",
> "page_id": "51de277782d28be89900008a",
> "warnings": [],
@alexkwolfe
alexkwolfe / bundleconfig.sh
Created January 23, 2013 18:24
Prepare bundler config to install ruby-debug-ide19 on Mac OS X under rbenv.
RUBY_VERSION=`rbenv local`
RBENV_SRC=`rbenv root`/sources/`rbenv local`/ruby-`rbenv local`
if [ ! -d $RBENV_SRC ];
then
echo "Failed. Expected ruby source at $RBENV_SRC."
else
echo "Setting bundle config for ruby-debug-ide19 on $RUBY_VERSION"
bundle config --local build.linecache19 --with-ruby-include=$RBENV_SRC
$ dig +trace +all api.trustedform.com [ruby-1.9.3-p125]
; <<>> DiG 9.8.3-P1 <<>> +trace +all api.trustedform.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 49083
;; flags: qr; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;. IN NS
$ dig api.trustedform.com
; <<>> DiG 9.8.3-P1 <<>> api.trustedform.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20619
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;api.trustedform.com. IN A
@alexkwolfe
alexkwolfe / form.html
Created May 1, 2012 20:05
TrustedForm JavaScript Tag
<script type="text/javascript">
(function() {
var field = 'xxTrustedFormCertUrl';
var provideReferrer = false;
var tf = document.createElement('script');
tf.type = 'text/javascript'; tf.async = true;
tf.src = 'http' + ('https:' == document.location.protocol ? 's' : '') +
'://api.trustedform.com/trustedform.js?provide_referrer=' + escape(provideReferrer) + '&field=' + escape(field) + '&l='+new Date().getTime()+Math.random();
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tf, s); }
)();