Skip to content

Instantly share code, notes, and snippets.

View kanolato's full-sized avatar
Traca traca la matraca

Miguel Angel Medina Mondragon kanolato

Traca traca la matraca
View GitHub Profile
@kanolato
kanolato / Nginx-minio-static.md
Created September 29, 2018 23:25 — forked from harshavardhana/nginx-minio-static.md
How to configure nginx+minio static website?

Ubuntu 16.04

  1. Install nginx
  2. Install minio
  3. Install mc client
  4. Create a bucket:
$ mc mb myminio/static
Bucket created successfully ‘myminio/static’.
@kanolato
kanolato / gist:f3cbf5753fc45646b998844637e1e8a2
Created September 2, 2018 16:56 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@kanolato
kanolato / get-npm-package-version
Created May 26, 2018 04:45 — forked from yvele/get-npm-package-version.sh
Extract version from package.json (NPM) using bash / shell
# Version key/value should be on his own line
PACKAGE_VERSION=$(cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g' \
| tr -d '[[:space:]]')
echo $PACKAGE_VERSION