Skip to content

Instantly share code, notes, and snippets.

View jay's full-sized avatar
🇺🇸

Jay Satiro jay

🇺🇸
  • New Rochelle, New York, United States
View GitHub Profile
@jay
jay / ShowLibcurlResolver.c
Last active December 28, 2015 02:53
Show the name of libcurl's resolver.
/* Show the name of libcurl's resolver.
Usage: ShowLibcurlResolver
"Is there a way to programmatically know if the version being used was compiled
with the threaded resolver?"
curl-library mailing list thread:
'segfaulting in Curl_num_addresses on OS X and Ubuntu'
http://curl.haxx.se/mail/lib-2015-08/0002.html
@jay
jay / ShowGmailFolders.c
Last active January 6, 2026 04:10
Use libcurl to retrieve Gmail folders and labels via IMAP over SSL (IMAPS).
/* Use libcurl to retrieve Gmail folders and labels via IMAP over SSL (IMAPS).
Usage: ShowGmailFolders <username> <password>
curl-library mailing list thread:
'Re: DL curl 7.35 mingw32'
http://curl.haxx.se/mail/lib-2015-05/0037.html
Note: When you attempt to login to Gmail via IMAP they sometimes require a
web login first for security reasons. In that case an error will be shown. Such
@jay
jay / ValidateCert.js
Last active August 29, 2015 14:14
Excerpt from my Fiddler CustomRules.js of ValidateCert. https://groups.google.com/forum/#!topic/httpfiddler/cjGlrTWnnZk
static function Main() {
var today: Date = new Date();
FiddlerObject.StatusText = " CustomRules.js was loaded at: " + today;
// Uncomment to add a "Server" column containing the response "Server" header, if present
// FiddlerObject.UI.lvSessions.AddBoundColumn("Server", 50, "@response.server");
// https://groups.google.com/forum/#!topic/httpfiddler/RIjfLBU58Io
CONFIG.oAcceptedServerHTTPSProtocols = System.Security.Authentication.SslProtocols.Tls
| System.Security.Authentication.SslProtocols.Tls11
| System.Security.Authentication.SslProtocols.Tls12;
@jay
jay / PostJSON.c
Last active May 15, 2025 23:22
Use libcurl to POST JSON data.
/* Use libcurl to POST JSON data.
Usage: PostJSON <name> <value>
curl-library mailing list thread:
'how do i post json to a https ?'
https://curl.haxx.se/mail/lib-2015-01/0049.html
* Copyright (C) 2015 Jay Satiro <raysatiro@yahoo.com>
https://curl.haxx.se/docs/copyright.html
@jay
jay / make_RunAtWinlogon.bat
Last active December 26, 2017 20:27
Build RunAtWinlogon program
:: This batch file builds the RunAtWinlogon program.
:: http://reboot.pro/files/file/255-runatwinlogon/
::
:: BUG: Although this builds both x86 and x64 versions it looks as though
:: ServiceKick.au3 needs to be changed if using x64 version from RunAtWinlogon
:: to RunAtWinlogon64.
::
:: The include and Aut2Exe directories are needed from autoit-v3.zip
:: https://www.autoitscript.com/site/autoit/downloads/
::