Skip to content

Instantly share code, notes, and snippets.

View elchesco's full-sized avatar
💭
🌝

Franchesco Romero elchesco

💭
🌝
View GitHub Profile
# Source: https://gist.github.com/6fb3e7da327df9203d9d4c184fcb5831
##############################################################################
# Combining Argo CD (GitOps), Crossplane (Control Plane), And Kubevela (OAM) #
# https://youtu.be/eEcgn_gU3SM #
##############################################################################
# Referenced videos:
# - Argo CD - Applying GitOps Principles To Manage Production Environment In Kubernetes: https://youtu.be/vpWQeoaiRM4
# - Cloud-Native Apps With Open Application Model (OAM) And KubeVela: https://youtu.be/2CBu6sOTtwk
##########################################
# Gatekeeper #
# Open Policy Agent (OPA) For Kubernetes #
# https://youtu.be/14lGc7xMAe4 #
##########################################
# Referenced videos:
# - How to run local multi-node Kubernetes clusters using kind: https://youtu.be/C0v5gJSWuSo
# - Kustomize - How to Simplify Kubernetes Configuration Management: https://youtu.be/Twtbg6LFnAg

Keybase proof

I hereby claim:

  • I am elchesco on github.
  • I am elchesco (https://keybase.io/elchesco) on keybase.
  • I have a public key ASAd657tT4sfSgXFvIaC18zy-95sVox9S_QJP791KXpImwo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am elchesco on github.
  • I am elchesco (https://keybase.io/elchesco) on keybase.
  • I have a public key ASDDvZHEOwB7nNJ3e1p2N64PMmkrL2D82p0zE9jIuaxW1go

To claim this, I am signing this object:

@elchesco
elchesco / README.md
Created July 28, 2017 00:13 — forked from elsonrodriguez/README.md
Selenium on Kubernetes!

This is a quick and dirty guide on how to deploy Selenium on Kubernetes.

It is required that you have Kubernetes cluster up and running. If you don't have one, GKE is pretty nifty: https://cloud.google.com/container-engine/

Deploy the Seleniumb Hub:

kubectl create -f selenium-hub-rc.yaml
kubectl create -f selenium-hub-svc.yaml
@elchesco
elchesco / gist:09cd3678b00a9ef5adc9671e17634457
Created April 25, 2017 03:47 — forked from harrisonde/gist:90431ed357cc93e12b51
Deploy Laravel 5 applications on AWS Elastic Beanstalk
# The following script will deploy a Laravel 5 applicaion on AWS Elastic Beanstalk.
# Add to .ebextensions at the root of your application and name your commands file (e.g., commands.config)
# -------------------------------- Commands ------------------------------------
# Use "commands" key to execute commands on the EC2 instance. The commands are
# processed in alphabetical order by name, and they run before the application
# and web server are set up and the application version file is extracted.
# ------------------------------------------------------------------------------
commands:
01updateComposer:
@elchesco
elchesco / .eslintrc
Created April 10, 2017 13:18
eslintrc based on airbnb's
{
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "babel-eslint",
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
@elchesco
elchesco / .php_cs
Created April 10, 2017 13:16
laravel php cs
<?php
use Symfony\CS\Config\Config;
use Symfony\CS\FixerInterface;
use Symfony\CS\Finder\DefaultFinder;
$excluded_folders = [
'node_modules',
'storage',
'vendor'
@elchesco
elchesco / Dockerfile
Created January 23, 2017 20:55 — forked from anaisbetts/Dockerfile
Docker + Surf + Electron
# VERSION: 0.1
# DESCRIPTION: Build an Electron app in a container
# AUTHOR: Paul Betts <[email protected]>
# COMMENTS:
# Use Surf to build an Electron app in a container and upload the result
# Originally based on the Atom Dockerfile by Jessica
# Frazelle <[email protected]>
# USAGE:
# # Download atom Dockerfile
# wget https://raw.githubusercontent.com/atom/atom/master/Dockerfile
@elchesco
elchesco / note.md
Created January 19, 2017 23:52 — forked from yang-wei/note.md
Vue.js tips and tricks

Notes: All the examples below are only tested on Vue.js 1.0 (above).

Notes: The examples below use ES6 so it's recommended to use browserify or webpack to easily integrate babel.

when or where can we use this.$el

When you need to access DOM attribute, be careful with the lifecycle. Vue.js has a few useful lifecycle hooks.

Let's say we want to scroll our component to the bottom (imagine it's a long list with overflow-y: auto) once it's instantiate.