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
//usr/bin/env jshell | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import java.security.MessageDigest; | |
import java.security.DigestInputStream; | |
/** | |
* A super elegant way to produce a `InputStream` at any size using an iterating | |
* approach (Stream-like). | |
* This was copied from https://www.nurkiewicz.com/2014/07/building-extremely-large-in-memory.html |
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
javascript:(function(p){s=location.search;if(!s.includes("?"+p)&&!s.includes("&"+p))location.search+=s.startsWith("?")?"&"+p:"?"+p})("restartApplication") |
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
@echo off | |
REM http://curl.haxx.se/docs/manpage.html#-F | |
REM http://curl.haxx.se/mail/archive-2010-03/0049.html | |
REM cURL installed with msysgit is used on this batch. | |
REM Output of "curl -V" is below | |
REM curl 7.41.0 (i386-pc-win32) libcurl/7.41.0 OpenSSL/0.9.8zf zlib/1.2.8 | |
REM Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp | |
REM Features: AsynchDNS IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL libz | |
set curlPath="C:\Program Files (x86)\Git\bin\curl.exe" |