git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| #!/bin/bash | |
| #Harbor on Ubuntu 18.04 | |
| #Prompt for the user to ask if the install should use the IP Address or Fully Qualified Domain Name of the Harbor Server | |
| PS3='Would you like to install Harbor based on IP or FQDN? ' | |
| select option in IP FQDN | |
| do | |
| case $option in | |
| IP) |
| #preparations: | |
| #install asdf (https://asdf-vm.com/) | |
| git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.7.8 | |
| #enable asdf: | |
| echo ". $HOME/.asdf/asdf.sh" >> ~/.profile | |
| #install nodejs plugin for asdf: | |
| asdf plugin list all | |
| asdf plugin add nodejs |
| # basics, importing bash commands | |
| from plumbum import local, FG, BG, TF, RETCODE | |
| from plumbum.cmd import sudo, true, rm, ln, echo, tee, cp, mv, ls, find, grep, curl, zsh, cat | |
| # defining a command | |
| ls = ls['-l','/tmp'] | |
| # calling the command | |
| ls() | |
| # defining and calling a command |
| # /etc/sysctl.conf | |
| net.core.default_qdisc = fq | |
| net.ipv4.tcp_congestion_control = bbr | |
| net.ipv4.conf.default.rp_filter = 1 | |
| net.ipv4.conf.all.rp_filter = 1 | |
| net.ipv4.ip_forward = 1 | |
| net.ipv4.tcp_syncookies = 1 |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| resource "google_compute_firewall" "frontend_rules" { | |
| name = "default" | |
| network = "default" | |
| allow { | |
| protocol = "icmp" | |
| } | |
| allow { | |
| protocol = "tcp" |