Skip to content

Instantly share code, notes, and snippets.

View jtuberville's full-sized avatar

Joshua Tuberville jtuberville

View GitHub Profile
@jtuberville
jtuberville / ElasticEmailClient.java
Created May 11, 2012 01:39
How to urlencode using HttpClient
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)
@jtuberville
jtuberville / policy.xml
Last active May 11, 2016 20:45
Recommended ImageMagick file to patch vulnerability
<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>

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: