Skip to content

Instantly share code, notes, and snippets.

Avatar

Joshua Tuberville jtuberville

  • VirtualTourist
  • El Segundo, CA
View GitHub Profile
@jtuberville
jtuberville / policy.xml
Last active May 11, 2016
Recommended ImageMagick file to patch vulnerability
View policy.xml
<policymap>
<policy domain="coder" rights="none" pattern="EPHEMERAL" />
<policy domain="coder" rights="none" pattern="HTTPS" />
<policy domain="coder" rights="none" pattern="MVG" />
<policy domain="coder" rights="none" pattern="MSL" />
<policy domain="coder" rights="none" pattern="TEXT" />
<policy domain="coder" rights="none" pattern="SHOW" />
<policy domain="coder" rights="none" pattern="WIN" />
<policy domain="coder" rights="none" pattern="PLT" />
</policymap>
View keybase.md

Keybase proof

I hereby claim:

  • I am jtuberville on github.
  • I am jtuberville (https://keybase.io/jtuberville) on keybase.
  • I have a public key whose fingerprint is BF55 ED03 6898 C5FA 17D8 B7BE D48D 8D63 332E 81D3

To claim this, I am signing this object:

@jtuberville
jtuberville / ElasticEmailClient.java
Created May 11, 2012
How to urlencode using HttpClient
View ElasticEmailClient.java
public static String sendViaHttpClient(String userName, String apiKey, String from, String fromName, String subject, String body, String to) {
NameValuePair[] data = {
new BasicNameValuePair("userName", userName),
new BasicNameValuePair("api_key", apiKey),
new BasicNameValuePair("from", from),
new BasicNameValuePair("from_name", fromName),
new BasicNameValuePair("subject", subject),
new BasicNameValuePair("body_html", body),
new BasicNameValuePair("to", to)