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 / Artist.js
Created October 3, 2018 17:06
Artists
import React, { Component } from 'react';
import { Card, CardImg, CardBody, CardText, CardTitle } from 'reactstrap';
import axios from 'axios';
class Artist extends Component {
state = {
}
apiVersion: v1
kind: ServiceAccount
metadata:
name: tiller
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: tiller
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: metrics-server
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
@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
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: kubernetes-dashboard
labels:
k8s-app: kubernetes-dashboard
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
@kanolato
kanolato / gist:8eef21ef391767e412f319f85503950d
Created February 27, 2018 22:30
Loop from number and create elemets
{[...Array(10)].map((x, i) =>
<option value="0">Please select</option>
)}
@kanolato
kanolato / git-training.circulosiete.com
Created January 10, 2018 17:34
Nginx serverblock example
server {
listen 80;
listen [::]:80;
root /var/www/c7-site/site;
index index.html;
server_name git-training.circulosiete.com www.git-training.circulosiete.com;
location / {
try_files $uri $uri/ =404;
}
}