Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / nginx-install.sh
Last active February 17, 2019 01:26
Nginx Install
sudo yum install pcre pcre-devel zlib zlib-devel gcc openssl-devel
sudo groupadd nginx
sudo useradd -g nginx -s /bin/false nginx
./configure --user=nginx \
--group=nginx \
--prefix=/usr/local/nginx \
--with-http_stub_status_module \
--with-http_ssl_module \
--with-http_gzip_static_module \
--with-stream
@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 / activemq.xml
Last active July 19, 2018 03:05
ActiveMQ Configurations
<!--
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 "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@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