View gist:6ec89060307f8b5d15c0b245e378fbd4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
test_file = open("my_file.txt", "rb") | |
test_url = "https://zillow-com1.p.rapidapi.com/resolveAddressToZpid" | |
headers = { | |
"X-RapidAPI-Key": "", | |
"X-RapidAPI-Host": "zillow-com1.p.rapidapi.com", | |
} | |
test_response = requests.post(test_url, files = {"file": test_file}, headers = headers) |
View debug bash script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
trap 'echo "# $BASH_COMMAND";read' DEBUG | |
echo codeLine1 | |
echo codeLine2 | |
echo codeLine3 |
View gist:3c25b554f8ef36ae42cee99527d40b9d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var endpoint = 'https://zillow-com1.p.rapidapi.com/property'; | |
var key = ''; | |
function _getValue(obj, path){ | |
var keys = path.split('.'); | |
var key = keys.shift(); | |
var value = null; | |
if (obj.hasOwnProperty(key)){ | |
var value = obj[key]; | |
View openSSL_certificate_verify_failed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PHP, OpenSSL and certificate verify failed error + cURL error 60 | |
Some times you may receive this error: | |
stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed | |
How to fix: | |
Download https://curl.haxx.se/ca/cacert.pem | |
In php.ini add openssl.cafile="/path/to/cacert.pem". |