Skip to content

Instantly share code, notes, and snippets.

Jay Satiro jay

  • New Rochelle, New York, United States
Block or report user

Report or block jay

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jay
jay / test-schannel-ciphers.pl
Last active Mar 20, 2019
Test which Schannel (Windows SSL) ciphers work for curl --ciphers
View test-schannel-ciphers.pl
#!/usr/bin/env perl
=begin comment
README
./test-schannel-ciphers.pl <CIPHERS.md> <curl> <host | ssl-url>
Test which Schannel (Windows SSL) ciphers work for curl --ciphers
Written in response to https://github.com/curl/curl/issues/3389
@jay
jay / FixPEChecksum.cpp
Last active Mar 27, 2018
FixPEChecksum fixes the PE checksum in 32-bit and 64-bit PE files.
View FixPEChecksum.cpp
/* FixPEChecksum fixes the PE checksum in 32-bit and 64-bit PE files.
Usage: FixPEChecksum [--no-csv-header] [--dryrun] [--] <file> [[file]...]
cl /W4 FixPEChecksum.cpp
Copyright (C) 2018 Jay Satiro <raysatiro@yahoo.com>
All rights reserved. License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
@jay
jay / ShowIPPort.c
Last active Dec 14, 2017
Use libcurl to show the local port and IP address in the progress function.
View ShowIPPort.c
/* Use libcurl to show the local port and IP address in the progress function.
Usage: ShowIPPort <URL> [filename]
If filename is specified then the data received is saved to filename.tmp which
is then renamed to filename if the download was successful (2xx) or deleted if
not.
If filename is not specified then the data received is sent to stdout. If
stdout is attached to a tty and the data received appears to be binary data
@jay
jay / setbrightness.bat
Last active Nov 10, 2017
Set the AC & DC brightness in the current power scheme.
View setbrightness.bat
:: Set the AC & DC brightness in the current power scheme.
::
:: Usage: "setbrightness.bat" <brightness-level>
::
:: Based on https://stackoverflow.com/a/26766798
:: Also see https://github.com/HubKing/LinkBrightness
::
:: Public Domain: No License. Written by Jay Satiro <raysatiro@yahoo.com>
::
:: https://gist.github.com/jay/2c4ca23314f1ed31c24da390d86c2b23
@jay
jay / ParseStream.c
Last active May 7, 2017
Parse a stream received by libcurl into sections.
View ParseStream.c
/* Parse a stream received by libcurl into sections.
Usage: ParseStream
This program is the same as libcurl example getinmemory.c except that it also
parses the received data into sections.
A data section refers to attributes and data and is received in this format:
[[<4 bytes: attribute size><attributes><8 bytes: data size><data>]...]
@jay
jay / getargs.c
Last active Apr 27, 2017
Display how arguments are parsed in Windows
View getargs.c
/*
Display how arguments are parsed in Windows.
VS 2010 x86:
cl /nologo /W4 getargs.c /MD /Fegetargs-cl && getargs-cl
VS 2010 x86, for win2k compatibility build against the WinDDK:
cl /nologo /W4 getargs.c /MD /Fegetargs-cl C:\WinDDK\7600.16385.1\lib\win7\i386\msvcrt_win2000.obj /IC:\WinDDK\7600.16385.1\inc\crt /link /SUBSYSTEM:CONSOLE,5.00 /OSVERSION:5.00 /LIBPATH:C:\WinDDK\7600.16385.1\lib\Crt\i386 && getargs-cl
mingw x86:
@jay
jay / Test-DLL-atexit-handler
Last active Oct 24, 2016
Test whether or not a DLL's atexit handler is called on FreeLibrary
@jay
jay / checkout-curl-release.pl
Last active Apr 3, 2018
fetch and checkout a curl release from the canonical repo
View checkout-curl-release.pl
#!/usr/bin/env perl
=begin comment
README
./checkout-curl-release.pl <"latest" | tag | version>
This script fetches and checks out the release tag marked as "latest" (or
a user-specified release tag or version) from the canonical curl repo on
github, and then modifies the curl/libcurl version includes to use the version
@jay
jay / GitHub-Ignore-Segoe-UI.css
Last active Jul 12, 2016
Revert some of GitHub's font changes made on 2016-07-11
View GitHub-Ignore-Segoe-UI.css
@-moz-document domain("github.com") {
@font-face {
font-family: "Segoe UI";
font-weight: normal;
font-style: normal;
src: local("Arial");
}
@font-face {
@jay
jay / ListEasyHandles.c
Last active Apr 10, 2019
Use libcurl to add some easy handles to a multi handle, then list them.
View ListEasyHandles.c
/* Use libcurl to add some easy handles to a multi handle, then list them.
Usage: ListEasyHandles
curl-library mailing list thread:
'How to list easy handles from a multi handle'
https://curl.haxx.se/mail/lib-2016-06/0000.html
* Copyright (C) 2016 Jay Satiro <raysatiro@yahoo.com>
http://curl.haxx.se/docs/copyright.html
You can’t perform that action at this time.