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
#!/bin/sh | |
#### Installs disque and daemontools for monitoring a disque node as a service | |
#### Dependencies | |
# - git | |
# - build-essential | |
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 HSTSFilter implements Filter{ | |
private static final Logger LOG = LoggerFactory.getLogger(HSTSFilter.class.getName()); | |
@Override | |
public void init(FilterConfig filterConfig) throws ServletException { | |
} | |
@Override |
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
Object rawRequest = RequestCycle.get().getRequest().getContainerRequest(); | |
if (rawRequest instanceof HttpServletRequest) { | |
HttpServletRequest servletRequest = (HttpServletRequest) rawRequest; | |
String proxyHost = servletRequest.getHeader("X-Forwarded-Host"); | |
String proxyPort = servletRequest.getHeader("X-Forwarded-Port"); | |
if (proxyHost != null) { | |
hostname = proxyHost; | |
} |
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
import de.agilecoders.wicket.extensions.markup.html.bootstrap.form.typeaheadV10.Bloodhound; | |
import de.agilecoders.wicket.extensions.markup.html.bootstrap.form.typeaheadV10.DataSet; | |
import de.agilecoders.wicket.extensions.markup.html.bootstrap.form.typeaheadV10.Typeahead; | |
import de.agilecoders.wicket.extensions.markup.html.bootstrap.form.typeaheadV10.TypeaheadConfig; | |
import org.apache.wicket.markup.head.IHeaderResponse; | |
import org.apache.wicket.markup.head.JavaScriptHeaderItem; | |
import org.apache.wicket.markup.html.WebPage; |
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
[core] | |
autocrlf = input | |
[user] | |
name = pulse00 | |
email = [email protected] | |
[alias] | |
# http://durdn.com/blog/2012/11/22/must-have-git-aliases-advanced-examples/ | |
cp = cherry-pick | |
st = status -s | |
cl = clone |
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
var __slice = [].slice; | |
(function($, window) { | |
var MyPlugin; | |
MyPlugin = (function() { | |
MyPlugin.prototype.defaults = { | |
paramA: 'foo', | |
paramB: 'bar' | |
}; |
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
<link rel="import" href="../paper-button/paper-button.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
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
db.getCollectionNames().forEach(function(c) { | |
if(c.indexOf("system.") == -1) { | |
db.getCollection(c).drop(); | |
} | |
}); |
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
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form"> | |
<table width="100%"> | |
<f:entry title="Image ID" field="imageId"> | |
<f:textbox/> | |
</f:entry> | |
<f:entry title="Size ID" field="sizeId"> | |
<f:select /> |
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 | |
use Symfony\Component\HttpKernel\Kernel; | |
use Symfony\Component\Config\Loader\LoaderInterface; | |
// base kernel in app/AppKernel.php | |
class AppKernel extends Kernel | |
{ | |
public function registerBundles() |