SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/ruby
  2.  
  3. # Marc Quinton
  4. # convert string from azerty to qwerty keyboard for entering BIOS password
  5.  
  6. v1 ='azqwAZQW&é"\'(è_çà)$Mù,?;:!§1234567890'
  7. v2 ='qwazQWAZ123456890\-[:\'mM,./?!@#$%\^&*()'
  8.  
  9. _in=ARGF.read
  10.  
  11. puts _in.tr(v2.strip,v1.strip)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top