Skip to content

Instantly share code, notes, and snippets.

🇹🇼
o p e n

Phil Huang pichuang

🇹🇼
o p e n
Block or report user

Report or block pichuang

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pichuang
pichuang / etc_sysconfig_gitlab
Created Dec 20, 2019
Running GitLab Container with podman and systemd
View etc_sysconfig_gitlab
IMAGE=docker.io/gitlab/gitlab-ce:12.2.0-ce.0
HOSTNAME=gitlab.pichuang.local
NAME=gitlab-ce
View rate_limit-advanced,yaml
apiVersion: "config.istio.io/v1alpha2"
kind: rule
metadata:
name: quota
namespace: istio-system
spec:
actions:
- handler: handler.memquota
instances:
- requestcount.quota
View br0.xml
<network>
<name>br0</name>
<forward mode="bridge" />
<bridge name="br0" />
</network>
View s3cmd
Usage: s3cmd [options] COMMAND [parameters]
S3cmd is a tool for managing objects in Amazon S3 storage. It allows for
making and removing "buckets" and uploading, downloading and removing
"objects" from these buckets.
Options:
-h, --help show this help message and exit
--configure Invoke interactive (re)configuration tool. Optionally
use as '--configure s3://some-bucket' to test access
@pichuang
pichuang / tuned.conf
Created May 3, 2019 — forked from likid0/tuned.conf
RHCS on All Flash Cluster : Performance Blog Series : tuned.conf profile for ceph nodes
View tuned.conf
cat /usr/lib/tuned/ceph-tuned/tuned.conf
[main]
summary=ceph_perf
[cpu]
governor=performance
energy_perf_bias=performance
min_perf_pct=100
force_latency=1
View ansible.cfg
[defaults]
forks = 20
host_key_checking = False
roles_path = roles/
gathering = smart
fact_caching = jsonfile
fact_caching_connection = $HOME/ansible/facts
fact_caching_timeout = 600
log_path = ./ansible.log
nocows = 1
@pichuang
pichuang / redhat-10y.sh
Last active Jan 21, 2019
Red Hat #10yearchallenge + #10yearchallenge
View redhat-10y.sh
#!/bin/bash
# 10 Years ago
for i in {1..10};
do
ssh ${i}.redhat.taiwan "echo before #10yearchallenge ";
done
# On-going
ansible -i redhat all -m command -a "echo next #20yearchallenge "
@pichuang
pichuang / ansible.cfg
Last active Aug 30, 2018
Recommended Ansible Configuration
View ansible.cfg
[defaults]
forks = 20
host_key_checking = False
roles_path = roles/
gathering = smart
fact_caching = jsonfile
fact_caching_connection = /tmp/ansible/facts
fact_caching_timeout = 600
log_path = /tmp/ansible.log
nocows = 1
View Create PV
mkdir -p /var/lib/docker/pv/{01..10}
chmod g+w /var/lib/docker/pv/{01..10}
chcon -Rt svirt_sandbox_file_t /var/lib/docker/pv/
@pichuang
pichuang / gist:8986b88405f51b03fd46bdc8af539c35
Created Apr 13, 2017 — forked from timdream/gist:5968469
Github 發 Pull Request & 貢獻流程速查
View gist:8986b88405f51b03fd46bdc8af539c35

Github 發 Pull Request & 貢獻流程速查

前言

此文目標讀者需先自行學會

  • 開 Github 帳號
  • 會 fork 程式 repository
  • 會在自己的電腦使用命令列 git
  • 會 clone 自己的 repository
You can’t perform that action at this time.