This file contains 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
diff <(kubectl get deployments deployment1 -n ns1 -o jsonpath='{range .spec.template.spec.containers[*].env[*]}{@.name}{"\n"}{end}'|sort) <(kubectl get deployments deployment2 -n ns2 -o jsonpath='{range .spec.template.spec.containers[*].env[*]}{@.name}{"\n"}{end}'|sort) |
This file contains 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
input { | |
file { | |
path => "/path/to/tomcat/logs/localhost_access_log*.txt" | |
} | |
} | |
filter { | |
grok { | |
match => { | |
"message" => "%{COMBINEDAPACHELOG} %{IPORHOST:serverip} %{NUMBER:serverport} %{NUMBER:elapsed_millis} %{NOTSPACE:sessionid} %{QS:proxiedip} %{QS:loginame}" |
This file contains 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/python | |
import subprocess | |
import re | |
import sys | |
from sys import argv | |
# Class Declaration | |
class VIPDICT(list): | |
def __init__(self, name): |
This file contains 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
<?php | |
class Processor { | |
public function execute($targetFile) { | |
$data = sprintf( | |
"%s %s %s \n\nHTTP headers:\n", | |
$_SERVER['REQUEST_METHOD'], | |
$_SERVER['REQUEST_URI'], | |
$_SERVER['SERVER_PROTOCOL'] | |
); | |
foreach ($this->getHeaderList() as $name => $value) { |
This file contains 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
connect('weblogic','weblogic1','t3://localhost:17001') | |
myapps=cmo.getAppDeployments() | |
outputbuffer=[] | |
outputbuffer.append("--"*40) | |
outputbuffer.append(" \t\t\tAPPLICATION STATUS WEBLOGIC\t\t") | |
outputbuffer.append("--"*40) | |
outputbuffer.append (" %-50s%20s" %("APPLICATION NAME","STATUS")) | |
outputbuffer.append("--"*40) | |
for app in myapps: | |
bean=getMBean('/AppDeployments/'+app.getName()+'/Targets/') |
This file contains 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
connect('weblogic','weblogic1','t3://web.mwinventory.in:33011') | |
myapps=cmo.getAppDeployments() | |
print "--"*40 | |
print " \t\t\tAPPLICATION STATUS WEBLOGIC\t\t" | |
print "--"*40 | |
print " %-50s%20s" %("APPLICATION NAME","STATUS") | |
print "--"*40 | |
for app in myapps: | |
bean=getMBean('/AppDeployments/'+app.getName()+'/Targets/') | |
targetsbean=bean.getTargets() |
This file contains 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/python | |
# | |
# | |
# Author: [email protected] | |
# Name: SecureCLI-Curl.py | |
# Date: 27-March-2018 | |
# | |
# | |
import os | |
import sys |
This file contains 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 | |
# | |
# NodeManager Start/Stop NM | |
# | |
# | |
# chkconfig: 35 99 01 | |
# description: Script for Starting/Stopping Admin Server | |
# source function library | |
. /etc/rc.d/init.d/functions |
This file contains 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 | |
# Name : WLS-TMPCACHELOGS-PURGE.sh | |
# Author : SaravAK | |
# Date : 4-21-2017 | |
## DECLARATION SECTION | |
if [ "$(whoami)" != "weblogic" ]; then | |
echo "Script must be run as user: weblogic" |
This file contains 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/python | |
# | |
# | |
import os | |
import sys | |
import getpass | |
import time | |
import base64 | |
import subprocess | |
import re |
NewerOlder