response = RestClient.post "http://api.sendcloud.net/apiv2/mail/send", :attachments => File.new('all.sql','rb'),:apiUser => 'metalist',:apiKey => 'key',:from => "[email protected]",:fromName => "noname",:to => "[email protected]",:subject => "users assets",:html => 'users assets: attachments'
Last active
August 30, 2020 05:57
-
-
Save googya/e52e4407536bb463a0ce9760e81ff885 to your computer and use it in GitHub Desktop.
code snippets
Author
googya
commented
Jul 29, 2020
# find files created 5 days ago
find . -mindepth 1 -mtime +5
ruby bin/console
非常方便调试一些代码
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'bundler/setup'
require_relative '../aws_email.rb'
begin
require 'pry-byebug'
binding.pry
rescue LoadError
require 'irb'
binding.irb
end
puts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment