I hereby claim:
- I am jmara on github.
- I am jmara (https://keybase.io/jmara) on keybase.
- I have a public key ASCMoX95KuWI-ZhFqWia4hn7Iz1UZPnUhTfmlcae8sHFOQo
To claim this, I am signing this object:
import hudson.util.RemotingDiagnostics; | |
script = 'def proc = "ls -1 /media".execute(); proc.waitFor(); println proc.in.text'; | |
for (slave in Jenkins.instance.slaves) { | |
println slave.name; | |
try { | |
println RemotingDiagnostics.executeGroovy(script, slave.getChannel()); | |
} catch (all) { | |
all.printStackTrace(); |
varnishtest "Long vcl/backend names" | |
server s1 { | |
rxreq | |
txresp -status 301 -hdr "Location: http://bar.example.com/bar" | |
expect req.http.host == "foo.example.com" | |
expect req.url == "/foo" | |
} -start |
Use folowing steps to repackage dep package: | |
1: Extract deb package | |
# dpkg-deb -x <package.deb> <dir> | |
2: Extract control-information from a package | |
# dpkg-deb -e <package.deb> <dir/DEBIAN> | |
3. After completed to make changes to the package, repack the deb | |
# dpkg-deb -b <dir> <new-package.deb> |
I hereby claim:
To claim this, I am signing this object:
import javax.net.ssl.SSLSocket; | |
import javax.net.ssl.SSLSocketFactory; | |
import java.io.*; | |
/** Establish a SSL connection to a host and port, writes a byte and | |
* prints the response. See | |
* http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services | |
*/ | |
public class SSLPoke { | |
public static void main(String[] args) { |
<?php | |
// quick and dirty argument parsing | |
foreach ($argv as $arg) { | |
if ($arg == '-f') { | |
define('FOLLOW', true); | |
} | |
if ($arg == '-h') { | |
define('HISTOGRAM', true); | |
} |
Control a VIP based on a location constrain but not the actual resource ... | |
node $id="55f27a97-c277-4287-997e-79da9ebfe879" node-1 | |
node $id="bd7d0d7a-4e5a-43f7-9065-24ee3da8617d" node-2 | |
primitive apache lsb:apache2 \ | |
meta is-managed="false" \ | |
op monitor interval="60s" |
wget http://labs.consol.de/wp-content/uploads/2011/08/check_mysql_health-2.1.7.tar.gz | |
tar xfz check_mysql_health-2.1.7.tar.gz | |
cd check_mysql_health-2.1.7/ | |
./configure | |
make && make install | |
Depends on Perl MySQL DBI / DBD | |
English docs: http://labs.consol.de/lang/en/nagios/check_mysql_health/ |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: varnishncsa | |
# Required-Start: $local_fs $remote_fs $network | |
# Required-Stop: $local_fs $remote_fs $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start HTTP accelerator log daemon | |
# Description: This script provides logging for varnish |
#!/bin/bash | |
# | |
# Bash script to setup headless Selenium (uses Xvfb and Chrome) | |
# (Tested on Ubuntu 12.04) | |
# Add Google Chrome's repo to sources.list | |
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee -a /etc/apt/sources.list | |
# Install Google's public key used for signing packages (e.g. Chrome) | |
# (Source: http://www.google.com/linuxrepositories/) |