Skip to content

Instantly share code, notes, and snippets.

@dovydasvenckus
dovydasvenckus / activemq.service
Created October 31, 2017 15:57
ActiveMQ service file for systemd
# cat activemq.service
[Unit]
Description=Apache ActiveMQ
After=network-online.target
[Service]
Type=forking
WorkingDirectory=/opt/activemq/bin
ExecStart=/opt/activemq/bin/activemq start
ExecStop=/opt/activemq/bin/activemq stop
@rahilwazir
rahilwazir / vmdk_vhdx.md
Last active April 16, 2025 07:49
Convert VMWare to Hyper-V (vmdk to vhdx)
@cheinema
cheinema / wildfly-9.0.2.Final-standalone-full-ha.cli
Created November 29, 2015 19:17
WildFly CLI scripts to build the default configurations
embed-server --server-config=custom-full-ha.xml --empty-config --remove-existing
# Extensions first
batch
/extension=org.jboss.as.clustering.infinispan:add
/extension=org.jboss.as.clustering.jgroups:add
/extension=org.jboss.as.connector:add
/extension=org.jboss.as.deployment-scanner:add
/extension=org.jboss.as.ee:add
/extension=org.jboss.as.ejb3:add
/extension=org.jboss.as.jaxrs:add
@willurd
willurd / web-servers.md
Last active May 14, 2025 19:48
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@gerhard
gerhard / shell.sh
Created June 14, 2012 11:59
nginx upstream fail_timeout not respected
$ time curl -I "$uri" &> /dev/null
# when routed to the host that is up
curl -I "$uri" &> /dev/null 0.00s user 0.00s system 2% cpu 0.299 total
# when routed to the host that is down. Should this be ~3s as per fail_timeout & max_fails?
curl -I "$uri" &> /dev/null 0.00s user 0.00s system 0% cpu 21.304 total