Skip to content

Instantly share code, notes, and snippets.

View juanstiza's full-sized avatar

Juan Stiza juanstiza

  • Venari.ai
  • Santiago, Chile
  • 03:43 (UTC -03:00)
View GitHub Profile
@juanstiza
juanstiza / EmailMessage.scala
Created October 1, 2016 17:01 — forked from PanzerKunst/EmailMessage.scala
Small modification of Raúl Raja's Scala code to sent emails
import scala.concurrent.duration.FiniteDuration
/**
* The email message sent to Actors in charge of delivering email
*
* @param subject the email subject
* @param recipient the recipient
* @param from the sender
* @param text alternative simple text
* @param html html body
@juanstiza
juanstiza / clean
Created January 2, 2015 13:57
Clean nasty php virus with perl
perl -p -i -e 's/\<\?php if\(\!isset\(\$GLOBALS\[\"[\\x0-9]+\"\][\s\S]+[\$a-z\=0-9]; \?\>//g' **/*.php