- Use Digest.hexencode
require 'digest'
Digest.hexencode(string)
- Use String#unpack
string.unpack('H*').firstHex to String
- Use Array#pack
[hex].pack('H*')Credit: http://stackoverflow.com/a/17223012
require 'digest'
Digest.hexencode(string)
string.unpack('H*').firstHex to String
[hex].pack('H*')Credit: http://stackoverflow.com/a/17223012
I couldn't find this link when searching with google https://www.collectd.org/documentation/manpages/collectd.conf.html#plugin-postgresq...
No comments:
Post a Comment