Skip to content

Instantly share code, notes, and snippets.

welsh

Block or report user

Report or block welsh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@welsh
welsh / build.gradle
Created Oct 26, 2014
SplitCopyDependenciesPlugin v2
View build.gradle
import java.util.regex.Pattern
apply plugin : SplitCopyDependenciesPlugin
class SplitCopyDependenciesPlugin implements Plugin<Project> {
void apply(Project project) {
project.extensions.create("splitCopyDependencies", SplitCopyDependenciesPluginExtension)
project.task('splitCopyDependencies') << {
def config = project.splitCopyDependencies
def ignoreNonJars = config.ignoreNonJars
View build.gradle
import java.util.regex.Pattern
apply plugin : SplitCopyDependenciesPlugin
class SplitCopyDependenciesPlugin implements Plugin<Project> {
void apply(Project project) {
project.extensions.create("splitCopyDependencies", SplitCopyDependenciesPluginExtension)
project.task('splitCopyDependencies') << {
def frameworkLib = []
def extLib = []
@welsh
welsh / README.md
Last active Jun 5, 2019
Server Status Squares: A Dashing Dashboard Widget to represent a Server Status as a Colored Square.
View README.md

Server Status Squares

A Dashing widget that checks whether a server is responding to either an http or ping request using smaller squares to represent its status.

This is based off of the Server Status widget that willjohnson developed but modified to work across multiple squares rather than be one square with a list.

Description

The widget updates the appropriate squares color upon determining its status. Statuses are as follows:

@welsh
welsh / cookie-buster.py
Last active Aug 29, 2015
Utility script to determine if session sticky with mod_cluster isn't being respected.
View cookie-buster.py
@welsh
welsh / gist:6678788
Created Sep 24, 2013
JBoss AS 7 Commands Cheat Sheet
View gist:6678788
# All Commands are jboss-cli.sh unless indicated
# Stop / Start JBoss Server
/host=master/server-config=server-one:stop
/host=master/server-config=server-one:start
# Check is JBoss is Up
ls -l /host=master/server-config=server-one (SHOULD Work)
Bash = ps -e -o pid -o args | grep java | grep 'server-one' | grep -v 'grep' | awk '{print $1}' (Will return just the PID of the running instance)
You can’t perform that action at this time.