rbenv/ruby-build don’t use Homebrew-installed versions of OpenSSL — instead, they on OS X's built-in ancient version.
This can throw OpenSSL::SSL::SSLError
s when talking to websites that enforce newer SSL/TLS protocols and ciphersuites.
<IfModule mod_fastcgi.c> | |
AddHandler fastcgi-script .fcgi | |
</IfModule> | |
<IfModule mod_fcgid.c> | |
AddHandler fcgid-script .fcgi | |
</IfModule> | |
Options +FollowSymLinks +ExecCGI | |
RewriteEngine On |
rbenv/ruby-build don’t use Homebrew-installed versions of OpenSSL — instead, they on OS X's built-in ancient version.
This can throw OpenSSL::SSL::SSLError
s when talking to websites that enforce newer SSL/TLS protocols and ciphersuites.
#!/usr/bin/env brew ruby | |
# Related to: https://github.com/Homebrew/brew/pull/16433 | |
sample = Homebrew::API::Formula.all_formulae.keys.sample(25) | |
formulae = sample.map { Formulary.factory(_1) } | |
json = formulae.map(&:to_hash_with_variations) | |
json = json.map { Homebrew::API::Formula.slim_hash(_1) } | |
json_string = JSON.pretty_generate(json) | |
outfile_path = File.expand_path("~/Desktop/slim-formula-sample.json") | |
File.write(outfile_path, json_string) |
import java.time.Duration; | |
import java.time.Instant; | |
import java.util.*; | |
import java.util.function.Function; | |
import java.util.stream.Collectors; | |
import java.util.stream.Gatherer; | |
import java.util.stream.IntStream; | |
import java.util.stream.Stream; | |
/** |