Skip to content

Instantly share code, notes, and snippets.

🌮
Traca traca la matraca

Miguel Angel Medina Mondragon kanolato

🌮
Traca traca la matraca
Block or report user

Report or block kanolato

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Artist.js
import React, { Component } from 'react';
import { Card, CardImg, CardBody, CardText, CardTitle } from 'reactstrap';
import axios from 'axios';
class Artist extends Component {
state = {
}
@kanolato
kanolato / Nginx-minio-static.md
Created Sep 29, 2018 — forked from harshavardhana/nginx-minio-static.md
How to configure nginx+minio static website?
View Nginx-minio-static.md

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’.
View helm-service-account.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: tiller
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: tiller
View metrics-server.yaml
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: metrics-server
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
View gist:f3cbf5753fc45646b998844637e1e8a2

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 — forked from yvele/get-npm-package-version
Extract version from package.json (NPM) using bash / shell
View get-npm-package-version
# 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
View kubernetes-dashboard-service-account.yaml
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 Feb 27, 2018
Loop from number and create elemets
View gist:8eef21ef391767e412f319f85503950d
{[...Array(10)].map((x, i) =>
<option value="0">Please select</option>
)}
View git-training.circulosiete.com
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;
}
}
You can’t perform that action at this time.