git fetch all branches and push it to another remote

git fetch all branches and tags from origin, then push it to new remote

git fetch --all
for branch in `git branch -r`; do git branch --track ${branch#origin/} $branch; done
git remote add new https://newrepos.com/new.git
git push new --all
git fetch --tags
git push new tags

VirtualBox에서 4개 이상의 네트워크 인터페이스(NIC) 설정하기

More than 4 NICs in VirtualBox

VirtualBox에서 4개 이상의 네트워크 인터페이스(NIC) 설정하기

VirtualBox에서서 네트워크를 구성하여 테스트환경을 만들다 보면 4개 이상의 NIC 이 필요 할때가 종종 있다. 하지만 UI에서는 4개 까지만 NIC을 설정 가능하기 때문에 Command Line Interface를 통해 NIC을 생성하고 설정 하여야 한다. 설정 방법은 다음과 같다. 각 모드에 대한 자세한 내용은 다음 페이지를 참조 하기 바란다.

VirtualBox Manual: Chapter 6. Virtual Networking

Bridge Mode

VBoxManage modifyvm test-vm --nic5 bridged
VBoxManage modifyvm test-vm --bridgeadapter5 eno1

Host Only Mode

VBoxManage modifyvm test-vm --nic5 hostonly
VBoxManage modifyvm test-vm --hostonlyadapter5 vboxnet0

Internal Mode

VBoxManage modifyvm test-vm --nic5 intnet
VBoxManage modifyvm test-vm --intnet5 'intnet0'

NAT Mode

VBoxManage modifyvm test-vm --nic5 nat

NAT Network Mode

VBoxManage modifyvm test-vm --nic5 natnetwork
VBoxManage modifyvm test-vm --nat-network5 test-nat

Linux Shell 에서 대소문자 치환

Linux Shell 에서 대소문자 치환

Linux tr 명령 사용

tr [:lower:] [:upper:]

Examples:

echo test | tr [:lower:] [:upper:]