(note: replace ORGANIZATION and PROJECT)
git clone git clone git@github.com:ORGANIZATION/PROJECT.git my-repository
| /** | |
| * Usage: | |
| groovy webServer.groovy [-Pport=80] [-PwebRoot=/path/to/files] | |
| * | |
| * Or with gradle, place in src/main/groovy, and place assets in src/main/webapp | |
| * and use as the mainClassName. | |
| */ | |
| import com.sun.net.httpserver.* | |
| // only supports basic web content types |
| /** | |
| * Usage: | |
| groovy webServer.groovy [-Pport=80] [-PwebRoot=/path/to/files] | |
| * | |
| * Or with gradle, place in src/main/groovy, and place assets in src/main/webapp | |
| * and use as the mainClassName. | |
| */ | |
| import com.sun.net.httpserver.* | |
| // only supports basic web content types |
| ### Launch Rancher container | |
| $ docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:stable | |
| # v2 | |
| sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher | |
| ### Start 2 Virtualbox VMs with RancherOS | |
| $ docker-machine create -d virtualbox --virtualbox-boot2docker-url https://github.com/rancher/os/releases/download/v1.3.0/rancheros.iso rancheros1 | |
| $ docker-machine create -d virtualbox --virtualbox-boot2docker-url https://github.com/rancher/os/releases/download/v1.3.0/rancheros.iso rancheros2 |
| # | |
| # Github Actions for Serverless Framework | |
| # | |
| # Create AWS_KEY and AWS_SECRET secrets in Github repository settings | |
| # If you're using env.yml file, store its content as ENV Github secret | |
| # | |
| # Master branch will be deployed as DEV and every new tag starting with "v**" (e.g. v1.0, v1.2, v2.0, etc) will be deployed as PROD | |
| # | |
| # Learn more: https://maxkostinevich.com/blog/how-to-deploy-serverless-applications-using-github-actions/ | |
| # |
| # | |
| # Original solution via StackOverflow: | |
| # http://stackoverflow.com/questions/35802939/install-only-available-packages-using-conda-install-yes-file-requirements-t | |
| # | |
| # | |
| # Install via `conda` directly. | |
| # This will fail to install all | |
| # dependencies. If one fails, | |
| # all dependencies will fail to install. |
Most projects on GitHub have a main repository that's the focal point of activity. For example, the Example organization has the Example.com repository:
https://github.com/example/example.com
Developers of Example.com typically call this the 'upstream' repository. We'll come back to it in a moment.
| #!/usr/bin/env bash | |
| git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done | |
| git fetch --all | |
| git pull --all |