Guest User

Untitled

a guest
Aug 11th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.13 KB | None | 0 0
  1. Hash[*IO.read('/proc/meminfo').scan(/(.*):\s+(\d+).*\n/).map { |key, val| [ key.downcase.gsub(/[^[:alnum:]]/, ''), val] }.to_a.flatten]
Add Comment
Please, Sign In to add comment