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.
// ==UserScript== | |
// @name webWincPartnernetChart | |
// @namespace webWinc | |
// @include https://partnernet.amazon.de/* | |
// @version 1 | |
// @grant GM_setValue | |
// @grant GM_getValue | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js | |
// @require https://code.highcharts.com/stock/highstock.js | |
// ==/UserScript== |
{ | |
"AWSEBDockerrunVersion": "1", | |
"Image": { | |
"Name": "<AWS_ACCOUNT_ID>.dkr.ecr.us-east-1.amazonaws.com/<NAME>:<TAG>", | |
"Update": "true" | |
}, | |
"Ports": [ | |
{ | |
"ContainerPort": "443" | |
} |
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.
# Add these two gems | |
gem 'ice_cube', '0.9.3' | |
gem 'squeel', '1.0.16' |
package org.tempura.console.util; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; | |
/** | |
* Usage: | |
* <li>String msg = Ansi.Red.and(Ansi.BgYellow).format("Hello %s", name)</li> | |
* <li>String msg = Ansi.Blink.colorize("BOOM!")</li> |
<IfModule mod_fastcgi.c> | |
AddHandler fastcgi-script .fcgi | |
</IfModule> | |
<IfModule mod_fcgid.c> | |
AddHandler fcgid-script .fcgi | |
</IfModule> | |
Options +FollowSymLinks +ExecCGI | |
RewriteEngine On |
require 'gherkin/parser/parser' | |
require 'gherkin/formatter/json_formatter' | |
require 'stringio' | |
require "active_support/core_ext/hash/conversions" | |
require 'nokogiri' | |
class XMLFormatter < Gherkin::Formatter::JSONFormatter | |
def done | |
@io.write(@feature_hashes.to_xml) | |
end |
<set-property name="compiler.emulatedStack" value="true, false" /> | |
<property-provider name="compiler.emulatedStack"> | |
<![CDATA[return (location.search.indexOf("debug=true") != -1) ? "true" : "false";]]> | |
</property-provider> | |
<set-configuration-property name="compiler.emulatedStack.recordFileNames" value="true" /> | |
<set-configuration-property name="compiler.emulatedStack.recordLineNumbers" value="true" /> |
#!/usr/bin/env ruby | |
def get_values(string, expression) | |
regex = Regexp.new(expression.gsub(/\{([^\}]+)\}/) { "(?<#{$1}>\\S+)" }) | |
(match = regex.match(string)) ? Hash[match.names.zip(match.captures)] : {} | |
end | |
p get_values "Alice is 23 years old", "{name} is {age} years old" #=> {"name"=>"Alice", "age"=>"23"} |