Skip to content

Instantly share code, notes, and snippets.

View pichuang's full-sized avatar

Phil Huang pichuang

View GitHub Profile
@pichuang
pichuang / Create PV
Last active July 15, 2018 16:02
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 April 13, 2017 11:39 — forked from timdream/gist:5968469
Github 發 Pull Request & 貢獻流程速查

Github 發 Pull Request & 貢獻流程速查

前言

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

  • 開 Github 帳號
  • 會 fork 程式 repository
  • 會在自己的電腦使用命令列 git
  • 會 clone 自己的 repository
@pichuang
pichuang / Boot_ONL
Last active March 5, 2017 12:43
Install ONL on AS5712-54X
2017-03-05 12:38:43.418 INFO onie-upgrade: ************************************************************
2017-03-05 12:38:43.418 INFO onie-upgrade: * ONIE Upgrade Check
2017-03-05 12:38:43.418 INFO onie-upgrade: ************************************************************
2017-03-05 12:38:43.418 INFO onie-upgrade:
2017-03-05 12:38:43.418 INFO onie-upgrade:
2017-03-05 12:38:43.418 INFO onie-upgrade: No ONIE updater available for the current platform.
2017-03-05 12:38:43.419 INFO onie-upgrade:
2017-03-05 12:38:43.419 INFO onie-upgrade: ************************************************************
2017-03-05 12:38:43.853 INFO firmware-upgrade: ************************************************************
@pichuang
pichuang / rc.boot
Last active January 4, 2017 09:51
OpenNetworkingLinux /mnt/onl/data/rc.boot
#!/bin/bash
ip addr add 192.168.11.2/24 dev ma1
ip route add default via 192.168.11.254
hostname edgecore-5712
echo "nameserver 168.95.1.1" > /etc/resolvconf/resolv.conf.d/base
resolvconf -u
tenant Red
logical-router
interface segment App
ip address 10.0.1.1/24
interface segment Web
ip address 10.0.0.1/24
tenant Green
logical-router
interface segment QA
ip address 10.0.2.1/24
@pichuang
pichuang / 10-input-karaf-jmx.conf
Last active June 25, 2016 08:11
jmx + karaf + logstash
input {
jmx {
path => "/etc/logstash/jmx.conf"
polling_frequency => 15
type => "jmx"
nb_thread => 4
}
}
@pichuang
pichuang / org.ops4j.pax.logging.cfg
Created June 25, 2016 07:46
outpur-log4j-karaf setting
################################################################################
#
# 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
@pichuang
pichuang / About_Accton_SAU5081I-AC.md
Last active September 20, 2016 11:19
About Accton SAU5081I-AC Information
#!/bin/bash
set -x
#
# WIP
# Refs:
# http://www.openswitch.net/documents/dev/step-by-step-guide
#
OPS_VERSION="0.2.0"
MODULE="as5712"
@pichuang
pichuang / onie_installation.sh
Last active February 19, 2016 17:40
ONIE Builder
#!/bin/bash
set -x
#
# WIP
# TODO:
# Ready to change to ansible2.0 => https://github.com/pichuang/openswitch-ansible
# Refs:
# https://github.com/opencomputeproject/onie/wiki/Building-ONIE
#