This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Gistson - Embedded Gist WP Plugin | |
Plugin URI: http://arin.me/blog/tag/gistson | |
Description: Use a shortcode [gist id="12345"] to embed A Gist from http://gist.github.com into your blog | |
Version: 0.1 | |
Author: Arin Sarkissian | |
Author URI: http://arin.me | |
Copyright 2009 Arin Sarkissian |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function redirectDefault(url, urls) { | |
var iframe = document.createElement("iframe"); | |
iframe.style.border = "none"; | |
iframe.style.width = "1px"; | |
iframe.style.height = "1px"; | |
iframe.onload = function() { | |
redirect(redirectDefault, urls); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.jeraff.sell.net.apiclient.sentry; | |
import javax.net.ssl.*; | |
import java.security.KeyStore; | |
import java.security.cert.CertificateException; | |
import java.security.cert.X509Certificate; | |
import java.util.Collection; | |
import java.util.List; | |
public class TrustSentry { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2013-07-30 11:15:35,926 WARN net.kencochrane.raven.connection.AbstractConnection - An exception due to the connection occurred, a lockdown will be initiated. | |
net.kencochrane.raven.exception.ConnectionException: An exception occurred while submitting the event to the sentry server. | |
at net.kencochrane.raven.connection.HttpConnection.doSend(HttpConnection.java:111) | |
at net.kencochrane.raven.connection.AbstractConnection.send(AbstractConnection.java:78) | |
at net.kencochrane.raven.Raven.sendEvent(Raven.java:59) | |
at com.jeraff.sell.website.server.handler.MainHandler.handle(MainHandler.java:87) | |
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1085) | |
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1021) | |
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:136) | |
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:258) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-Xms384m | |
-Xmx1200m | |
-XX:MaxPermSize=350m | |
-XX:ReservedCodeCacheSize=96m | |
-XX:+UseCodeCacheFlushing | |
-XX:+UseCompressedOops |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" | |
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.mongodb.mongod</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/mongodb/bin/mongod</string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StringSomethingTypeConverter extends JeraffTypeConverter<String> { | |
@Override | |
public String convert(String input, Class<? extends String> targetType, Collection<ValidationError> errors) { | |
if (StringUtils.isBlank(input)) { | |
boolean paramSent = getBean().getContext().getRequest().getParameterMap().containsKey(FIELD_NAME) | |
if (paramSent) { | |
} else { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
var tumblr_link_url = "http://www.example.com/permalink/my-article"; | |
var tumblr_link_name = "My Awesome Article"; | |
var tumblr_link_description = "<" + "script type='text/javascript'>alert('9');<" + "/script>"; | |
</script> | |
<!-- Put this code at the bottom of your page --> | |
<script type="text/javascript"> | |
var tumblr_button = document.createElement("a"); | |
tumblr_button.setAttribute("href", "http://www.tumblr.com/share/link?url=" + encodeURIComponent(tumblr_link_url) + "&name=" + encodeURIComponent(tumblr_link_name) + "&description=" + encodeURIComponent(tumblr_link_description)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nixtime () { | |
curl http://nixti.me/$* -d tz=`date +%Z` -d json=1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alert("hey this is pretty cool"); | |
var x = 9; | |
x++; |
NewerOlder