Skip to content

Instantly share code, notes, and snippets.

View limcheekin's full-sized avatar

Lim Chee Kin limcheekin

View GitHub Profile
@limcheekin
limcheekin / git-pull-all
Created March 4, 2022 03:53 — forked from grimzy/git-pull-all
Git pull all remote branches
#!/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
@limcheekin
limcheekin / instructions.md
Created April 20, 2021 03:27 — forked from harding/instructions.md
Working With Multiple Repositories On GitHub

Working With Multiple Repositories On GitHub

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.

@limcheekin
limcheekin / install_packages.sh
Created March 13, 2021 03:35 — forked from luiscape/install_packages.sh
Install Python dependency packages from requirements.txt using conda.
#
# 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.
@limcheekin
limcheekin / dev.yml
Created March 10, 2021 08:01 — forked from maxkostinevich/dev.yml
Github Actions - Deploy Serverless Framework (AWS)
#
# 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/
#
@limcheekin
limcheekin / Home-Rancher-vbox.sh
Created April 18, 2019 06:34 — forked from AJNOURI/Home-Rancher-vbox.sh
Start your own Rancher cluster home lab with RancherOS virtualbox nodes.
### 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
@limcheekin
limcheekin / webServer.groovy
Created October 9, 2017 08:30 — forked from iamnoah/webServer.groovy
Minimal Groovy for a static webserver. Suitable for use with gradle run
/**
* 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
@limcheekin
limcheekin / webServer.groovy
Created October 9, 2017 08:30 — forked from iamnoah/webServer.groovy
Minimal Groovy for a static webserver. Suitable for use with gradle run
/**
* 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
@limcheekin
limcheekin / git-maven-howto.md
Created May 29, 2017 07:12 — forked from fernandezpablo85/git-maven-howto.md
how to create your own maven repository on github

How to create a maven repository for your github project step by step

Clone your project in a separate folder

(note: replace ORGANIZATION and PROJECT)

git clone git clone [email protected]:ORGANIZATION/PROJECT.git my-repository

Cd into it