Skip to content

Instantly share code, notes, and snippets.

@ethnchao
ethnchao / sonobuoy-test-image-pull-push.sh
Last active Jun 14, 2019
sonobuoy test image on Docker
View sonobuoy-test-image-pull-push.sh
#!/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 Jan 22, 2022
Kubernetes k8s.gcr.io images pull & retag & remove
View kube-pull-images.sh
#!/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 Aug 9, 2018 — forked from myst3k/after
enable on boot nodemanager and adminserver weblogic 12c
View after
#enable each service for boot
systemctl enable nodemanager
systemctl enable adminserver
#then reboot and test
@ethnchao
ethnchao / ifcfg-wlp4s0
Last active Jul 31, 2018
CentOS 7 Laptop wifi setup
View ifcfg-wlp4s0
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 Jun 11, 2018
HBase Standalone Configurations
View hbase-site.xml
<?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
Oracle Sysctl Configurations
View oracle-sysctl.conf
# 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
Oracle RAC user system limits
View oracle-limits.conf
# /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
Oracle RAC user Bash profile
View oracle-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
Linux Samba Configurations
View smb.conf
# 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