Skip to content

Instantly share code, notes, and snippets.

@ethnchao
ethnchao / sonobuoy-test-image-pull-push.sh
Last active June 14, 2019 05:58
sonobuoy test image on Docker
#!/bin/bash
set -o errexit
IMAGE_LIST="gcr.io/google-containers/conformance:v1.14.3
gcr.io/heptio-images/sonobuoy:v0.14.2
gcr.io/kubernetes-e2e-test-images/dnsutils:1.1
gcr.io/kubernetes-e2e-test-images/jessie-dnsutils:1.0
gcr.io/kubernetes-e2e-test-images/mounttest:1.0
gcr.io/kubernetes-e2e-test-images/test-webserver:1.0
@ethnchao
ethnchao / kube-pull-images.sh
Last active January 22, 2022 10:33
Kubernetes k8s.gcr.io images pull & retag & remove
#!/bin/bash
K8S_VERSION=v1.15.0
PAUSE_VERSION=3.1
ETCD_VERSION=3.3.10
COREDNS_VERSION=1.3.1
docker pull registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver:${K8S_VERSION} && \
docker pull registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager:${K8S_VERSION} && \
docker pull registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler:${K8S_VERSION} && \
@ethnchao
ethnchao / after
Created August 9, 2018 13:07 — forked from myst3k/after
enable on boot nodemanager and adminserver weblogic 12c
#enable each service for boot
systemctl enable nodemanager
systemctl enable adminserver
#then reboot and test
@ethnchao
ethnchao / ifcfg-wlp4s0
Last active July 31, 2018 01:46
CentOS 7 Laptop wifi setup
ESSID=SSID
MODE=Managed
KEY_MGMT=WPA-PSK
MAC_ADDRESS_RANDOMIZATION=default
TYPE=Wireless
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
@ethnchao
ethnchao / hbase-site.xml
Last active June 11, 2018 09:07
HBase Standalone Configurations
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
/**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
@ethnchao
ethnchao / oracle-sysctl.conf
Created May 30, 2018 08:01
Oracle Sysctl Configurations
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
@ethnchao
ethnchao / oracle-limits.conf
Created May 30, 2018 08:00
Oracle RAC user system limits
# /etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#
#<domain> <type> <item> <value>
#
#Where:
#<domain> can be:
# - an user name
# - a group name, with @group syntax
@ethnchao
ethnchao / oracle-bash_profile
Created May 30, 2018 07:58
Oracle RAC user Bash profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
export ORACLE_SID=PROD1
export ORACLE_BASE=/u01/app/oracle
@ethnchao
ethnchao / smb.conf
Created May 30, 2018 07:54
Linux Samba Configurations
# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
[global]
workgroup = SAMBA
security = user
passdb backend = tdbsam