This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#This script is a magical script to generate jobs for each active branch of a git repo. | |
#Add some randomness to give bitbucket / git a break | |
sleep $(( ( RANDOM % 10 ) + 10 )) | |
cd $WORKSPACE | |
daysToKeep=14 | |
#Jenkins generated configs go in here... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
GIT_SERVER="git.example.com" | |
GITHUB_API_URL="https://$GIT_SERVER/api/v3" | |
# Setup an SSH key | |
if [ ! -f ~/.ssh/id_rsa ]; then | |
ssh-keygen -b 4096 -t rsa -f ~/.ssh/id_rsa -q -N "" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Disabled</key> | |
<false/> | |
<key>KeepAlive</key> | |
<true/> | |
<key>Label</key> | |
<string>jenkins-swarm.job</string> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[connection] | |
id=<<VPNName>> | |
uuid=<<UUID>> | |
type=vpn | |
autoconnect=true | |
permissions= | |
secondaries= | |
timestamp=1450953669 | |
zone=work |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pseudo-random loadbalancing: | |
scope['cdl_logstash::gelf_servers'][ @ipaddress.gsub(/[\D]+/i,'').to_i % scope['cdl_logstash::gelf_servers'].length.to_i ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is managed by Puppet. ANY MANUAL CHANGES WILL BE DESTROYED | |
# Long log messages should be trimmed down to something reasonable (1500 characters) | |
WLS_FORMAT_1 <%{DATA:wls_timestamp} o'clock %{DATA}> <%{WORD:severity}> <%{DATA:wls_topic}> <%{HOST:hostname}> <(%{WORD:server})?>( <(\[%{DATA:thread_status}\] )?ExecuteThread: '%{INT:thread_nr}' for queue: '%{DATA:thread_queue}'>)? (?<log_message>[\w\W]{0,2500}) | |
WLS_FORMAT_2 <%{DATA:wls_timestamp} o'clock %{DATA}> <%{WORD:severity}> <%{DATA:wls_topic}> <%{HOST:hostname}> <(%{WORD:server})?> (?<log_message>[\w\W]{0,2500}) | |
WLS_FORMAT_3 <%{DATA:wls_timestamp} o'clock %{DATA}> <%{WORD:severity}> <%{DATA:wls_topic}> <%{HOST:subsystem}>? (?<log_message>[\w\W]{0,2500}) | |
WLS_FORMAT_4 <%{DATA:wls_timestamp} o'clock %{DATA}> <%{WORD:severity}> <%{DATA:wls_topic}> (?<log_message>[\w\W]{0,2500}) | |
WLS_FORMAT %{WLS_FORMAT_1}|%{WLS_FORMAT_2}|%{WLS_FORMAT_3}|%{WLS_FORMAT_4} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.green-bg { | |
background-color: #84c61c; | |
color: #ffffff; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class::parameter::name: null | |
class::parameter::name: Null | |
class::parameter::name: NULL | |
class::parameter::name: ~ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. On Linux / WLS 12c there is a problem with the TCP unicast work manager blocking, it causes nodes in a cluster to failover. Add: | |
-Dweblogic.unicast.HttpPing=true | |
To server start args. It's a known / documented issue: https://docs.oracle.com/cd/E24329_01/doc.1211/e26593/issues.htm#WLSRN182 | |
2. Memory leaks. If you use RMI which you probably do and suffer from Memory leaks, forget tuning the app code (it's Java, | |
it'll always have memory leaks) Take a heap dump adn run it through jmap or create diffs from 2. If you see this class pop | |
up in retained heap or memory leak suspects: weblogic.rjvm.ConnectionManage Add: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import urllib | |
import urllib2 | |
import json | |
import argparse | |
import ssl | |
import time | |
from urlparse import urlparse |
OlderNewer