Skip to content

Instantly share code, notes, and snippets.

@welsh
welsh / gist:6678788
Created September 24, 2013 00:18
JBoss AS 7 Commands Cheat Sheet
# 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)
@welsh
welsh / cookie-buster.py
Last active August 29, 2015 13:57
Utility script to determine if session sticky with mod_cluster isn't being respected.
@welsh
welsh / README.md
Last active November 2, 2020 18:05
Server Status Squares: A Dashing Dashboard Widget to represent a Server Status as a Colored Square.

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:

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 / build.gradle
Created October 26, 2014 16:38
SplitCopyDependenciesPlugin v2
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