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.
noname:~ muescha$ port install ruby19 | |
noname:~ muescha$ sudo ln -s /opt/local/bin/ruby1.9 /opt/local/bin/ruby | |
noname:~ muescha$ rails | |
Rails requires Ruby version 1.8.7 or later. | |
You're running 1.8.6 (2008-08-11); please upgrade to continue. | |
noname:~ muescha$ which rails |
<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.
https://github.com/idapgroup/IDPCastable
i like the idea of Castable. but i don't like to have too much public functions without an "Namespace" aka Class flying around like cast
, castable
, match
.
i prefer it more encapsulated in one class and also to prefix the first closure also with match
to get it uniform with the other match
es
i rewrite the class like this:
protocol LocationProtocol { | |
// func address() -> String | |
} | |
extension LocationProtocol { | |
} | |
enum Cities{} |
import Foundation | |
extension String { | |
func isFirstLetters(count: Int, of characterSet: CharacterSet) -> Bool { | |
guard characters.count >= count else { | |
return false | |
} | |
let firstLetters = substring(to: index(startIndex, offsetBy: count)) |
😉.) | |
‘gatsby-node.js | |
“Deployment. | |
“Html.js | |
“Next. | |
“Online. | |
“Production. | |
“and. | |
“out-of-the-box. | |
[ | |
{ | |
"Command": [], | |
"Constant": [ | |
{ | |
"def": "hs.configdir", | |
"desc": "A string containing Hammerspoon's configuration directory. Typically `~/.hammerspoon/`", | |
"doc": "A string containing Hammerspoon's configuration directory. Typically `~/.hammerspoon/`", | |
"file": "extensions/_coresetup/_coresetup.lua", | |
"lineno": "44", |