Skip to content

Instantly share code, notes, and snippets.

kubectl get services # List all services
kubectl get pods # List all pods
kubectl get nodes -w # Watch nodes continuously
kubectl version # Get version information
kubectl cluster-info # Get cluster information
kubectl config view # Get the configuration
kubectl describe node <node> # Output information about a node
kubectl get pods # List the current pods
kubectl describe pod <name> # Describe pod <name>
kubectl get rc # List the replication controllers
@bassista
bassista / certificates.txt
Created September 27, 2018 12:37 — forked from jnwelzel/certificates.txt
Client authentication through SSL certificate in JBoss AS 7.1.1.Final. This configuration will make sure that only clients whose certificates are trusted by the server may have access to the application (standalone.xml line 272)
PASSWORD
changethis
SERVER KEYSTORE - used by the server to establish a secure connection (HTTPS)
c:\eclipse\jdk1.7.0_05\jre\bin\keytool.exe -genkey -keyalg RSA -alias localhost -keystore localhost.jks -validity 365 -keysize 2048
CLIENT KEYSTORE - used to generate ".cer" file that wil be used in the server's trustore and in the browser to identify the client with the server
c:\eclipse\jdk1.7.0_05\jre\bin\keytool.exe -genkey -keyalg RSA -alias jonwelzel -keystore jonwelzel.jks -validity 365 -keysize 2048

Zeroth step(There is no certificate.)

Download certification:

openssl s_client -showcerts -connect example.com:443 </dev/null 2>/dev/null|openssl x509 -outform PEM >certfile.pem

Convert PEM to DER:

openssl x509 -outform der -in certfile.pem -out certificate.der

# This script must be executed in WLST OFFLINE mode. Restart the ADMIN SERVER
# post script execution for the changes to take effect.
#-------------------------------------------------------------------------------
# Purpose: Python Script to configure SOA TLogs to use JDBC Persistent Store
#
# Usage : config-soa-tlogs-jdbcstore.py <soa_domain_homepath>
#-----------------------------------------------------------------------------
import sys
#
# The script must be executed in WLST offline mode. Restart the ADMIN SERVER
# post script execution for the changes to take effect.
#
#-------------------------------------------------------------------------------
# Purpose: Sample Python Script to rewire SOA Suite 11g PS6 JDBC data sources
# to use Active GridLink for RAC
#
# Usage : soa-agl-ds-rewire.py <domain_path>
// from my https://github.com/joshlong/a-walking-tour-of-all-of-springdom project
import org.apache.commons.logging.*;
import org.springframework.batch.core.*;
import org.springframework.batch.core.configuration.annotation.*;
import org.springframework.batch.core.step.builder.StepBuilder;
import org.springframework.batch.item.*;
import org.springframework.batch.item.database.*;
import org.springframework.batch.item.file.FlatFileItemReader;
import org.springframework.batch.item.file.mapping.*;
/**
* <p>This will be picked up in a Servlet 3 environment like Apache Tomcat 7.
*
* <p>This replaces <code>web.xml</code>.
*
*/
public class MvcRestApplicationInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {
@Override protected Class<?> [] getRootConfigClasses() {
@bassista
bassista / build.xml
Created March 8, 2012 14:32 — forked from biemond/build.xml
Generate Axis2 ADB client
<?xml version="1.0" encoding="UTF-8" ?>
<project default="wsdl2java">
<path id="classpath.libraries" description=" 3rd party and Axis libs">
<fileset dir="C:/java/axis2-1.6.0/lib">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="wsdl2java">
@bassista
bassista / connection.java
Created March 8, 2012 14:31 — forked from biemond/connection.java
BPM SOA humanworkflow connection
private String wlsserver = "HumanWorkFlow";
private String soaserver = null;
private String wsurl = null;
private String t3url = null;
private String contextFactory = "weblogic.jndi.WLInitialContextFactory";
private String identityDomain = "jazn.com";
private String identityUsername = null;
private String identityPassword = null;
private IWorkflowContext context = null;