Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Macagare

  • Germany
View GitHub Profile
@noxqsgit
noxqsgit / mail.rb
Created Apr 3, 2014
amazon SES + ruby (Net::SMTP)
View mail.rb
#!/usr/bin/env ruby
require 'net/smtp'
unless (2..3).include? ARGV.length
puts 'Usage: mail.rb SUBJECT TO [FROM]'
exit 1
end
subject, to, from_ = ARGV
@Macagare
Macagare / gist:4603792
Last active Oct 18, 2019
Coldfusion: strip tags from html
View gist:4603792
<!--- strip tags --->
<cfset stripedString = ReReplaceNoCase(source,"<[^>]*>","","ALL") />
You can’t perform that action at this time.