Skip to content

Instantly share code, notes, and snippets.

import sbt._
import Keys._
import play.Project._
object ApplicationBuild extends Build {
val appName = "depender"
val appVersion = "1.0-SNAPSHOT"
val appDependencies = Seq(
<?php
class ListHelper {
protected $doctrine;
protected $redis;
public function __construct($doctrine, $redis)
{
<div class="container">
<wicket:child />
</div>
location / {
if ($request_method = OPTIONS ) {
add_header Access-Control-Allow-Origin "*";
add_header Access-Control-Allow-Methods "GET, POST, OPTIONS";
add_header Access-Control-Allow-Credentials "true";
add_header Access-Control-Allow-Headers 'Authorization,DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
add_header Content-Length 0;
add_header Content-Type text/plain;
return 200;
@pulse00
pulse00 / nginx reverse proxy with dynamic jolokia backend secured by http basic auth
Created April 19, 2013 13:55
Setup nginx as a reverse proxy for jolokia including http basic auth. You might consider - Restrict the backend URL to your jolokia domains - Restrict the `Allow-Origin` Access-Control header to your domain Example Request: http://yourNginxProxy.com?uri=your.dynamic.jolokia.domain/jolokia/
server {
listen 80;
server_name localhost;
access_log /path/to/jolokia.access.log;
location / {
if ($request_method = OPTIONS ) {
add_header Access-Control-Allow-Origin "*"; # <--- customize this
add_header Access-Control-Allow-Methods "GET, POST, OPTIONS";
hawtioPluginLoader.parseQueryString = function(text) {
var query = (text || window.location.search || '?');
if (query instanceof Array) {
query = query.pop();
}
var map = {};
query.replace(/([^&=]+)=?([^&]*)(?:&+|$)/g, function(match, key, value) {
(map[key] = map[key] || []).push(value);
git@github.com:pulse00/Composer-Java-Bindings.git
git@github.com:pulse00/eclipse-indexing-framework.git
git@github.com:pulse00/Doctrine-Eclipse-Plugin.git
git@github.com:pulse00/osgi-bundles.git
git@github.com:pulse00/osgi-repository.git
git@github.com:pulse00/yedit.git
git@github.com:pulse00/Json-Eclipse-Plugin.git
git@github.com:pulse00/Twig-Eclipse-Plugin.git
git@github.com:pdt-eg/Core-Plugin.git
git@github.com:pulse00/Composer-Eclipse-Plugin.git
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>CFBundleTypeName</key>
<string>PHP Document</string>
<key>CFBundleTypeExtensions</key>
<array>
<string>php</string>
@pulse00
pulse00 / clone and install github maven projects
Created April 12, 2013 16:07
Shell script to clone and build (maven) github projects. Put a `projects.txt` file into the script folder containing.
#!/bin/sh
###########################
## Shell script to clone a list of github repositories and run `mvn clean install` on each one of them
##
## Usage: put a file called `repos.txt` in the folder of the script containing the repository URLs, line by line:
##
##https://github.com/pulse00/Composer-Eclipse-Plugin.git
##git@github.com:pulse00/Symfony-2-Eclipse-Plugin.git
##etc
<?php
# php treats first '..' as "current dir"
require_once __DIR__ . '../../vendor/autoload.php';
require_once __DIR__ . '/../vendor/autoload.php';