����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
require 'tmpdir'
require 'fileutils'
module PhusionPassenger
module Utils
# some versions of Ruby had a broken Tempfile which didn't work
# well with unlinked files. This one is much shorter, easier
# to understand, and slightly faster.
class TmpIO < File
# creates and returns a new File object. The File is unlinked
# immediately, switched to binary mode, and userspace output
# buffering is disabled
def self.new(namespace, options = nil)
if options
mode = options[:mode] || RDWR
binary = options.fetch(:binary, true)
suffix = options[:suffix]
unlink_immediately = options.fetch(:unlink_immediately, true)
else
mode = RDWR
binary = true
suffix = nil
unlink_immediately = true
end
fp = begin
super("#{Dir::tmpdir}/#{namespace}-#{rand(0x100000000).to_s(36)}#{suffix}", mode | CREAT | EXCL, 0600)
rescue Errno::EEXIST
retry
end
unlink(fp.path) if unlink_immediately
fp.binmode if binary
fp.sync = true
fp
end
# for easier env["rack.input"] compatibility with Rack <= 1.1
def size
stat.size
end unless File.method_defined?(:size)
end
# Like Dir.mktmpdir, but creates shorter filenames.
def self.mktmpdir(prefix_suffix=nil, tmpdir=nil)
case prefix_suffix
when nil
prefix = "d"
suffix = ""
when String
prefix = prefix_suffix
suffix = ""
when Array
prefix = prefix_suffix[0]
suffix = prefix_suffix[1]
else
raise ArgumentError, "unexpected prefix_suffix: #{prefix_suffix.inspect}"
end
tmpdir ||= Dir.tmpdir
begin
path = "#{tmpdir}/#{prefix}#{rand(0x100000000).to_s(36)}"
path << suffix
Dir.mkdir(path, 0700)
rescue Errno::EEXIST
retry
end
if block_given?
begin
yield path
ensure
FileUtils.remove_entry_secure path
end
else
path
end
end
end # module Utils
end # module PhusionPassenger
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| ansi_colors.rb | File | 4.87 KB | 0644 |
|
| download.rb | File | 8.13 KB | 0644 |
|
| file_system_watcher.rb | File | 6.3 KB | 0644 |
|
| hosts_file_parser.rb | File | 3.95 KB | 0644 |
|
| json.rb | File | 4.95 KB | 0644 |
|
| lock.rb | File | 1.91 KB | 0644 |
|
| native_support_utils.rb | File | 2.43 KB | 0644 |
|
| progress_bar.rb | File | 1.97 KB | 0644 |
|
| shellwords.rb | File | 856 B | 0644 |
|
| strscan.rb | File | 1.97 KB | 0644 |
|
| tee_input.rb | File | 6.88 KB | 0644 |
|
| terminal_choice_menu.rb | File | 6.1 KB | 0644 |
|
| tmpio.rb | File | 1.87 KB | 0644 |
|
| unseekable_socket.rb | File | 8.7 KB | 0644 |
|