Skip to content

Instantly share code, notes, and snippets.

View juanesvelez's full-sized avatar

Juan Esteban Velez M juanesvelez

View GitHub Profile

Kubectl plugin

This plugin adds completion for the Kubernetes cluster manager, as well as some aliases for common kubectl commands.

To use it, add kubectl to the plugins array in your zshrc file:

plugins=(... kubectl)
@juanesvelez
juanesvelez / Dockerfile
Created April 11, 2022 19:33 — forked from katzefudder/Dockerfile
AWS CLI dockerized with Alpine Linux
FROM alpine:3.14
ENV AWSCLI_VERSION "1.20.7"
RUN apk add --update \
python3 \
python3-dev \
py-pip \
build-base \
&& pip install awscli==$AWSCLI_VERSION --upgrade --user \
@juanesvelez
juanesvelez / google-jwt-client.py
Created January 25, 2022 20:08 — forked from walexisp2/google-jwt-client.py
create jwt google cloud
#!/usr/bin/env python
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@juanesvelez
juanesvelez / Creación ERC20 token
Last active October 25, 2021 22:18
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.12+commit.27d51765.js&optimize=false&runs=200&gist=
// Creacion de token ERC20 detallado
//Con este contrato creamos un token llamado boringtoken el cual es desarrollado con el estandar ERC20 en la red etherum
@juanesvelez
juanesvelez / primer_contrato.sol
Created September 15, 2021 00:18
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// this line is added to create a gist. Empty file is not allowed.
@juanesvelez
juanesvelez / erc20-token-sample.sol
Created September 1, 2021 22:54 — forked from jcmartinezdev/erc20-token-sample.sol
Necessary code to generate an ERC20 Token
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// Sample token contract
//
// Symbol : LCST
// Name : LCS Token
// Total supply : 100000
// Decimals : 2
// Owner Account : 0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe
const express = require('express')
const app = express()
const port = 8088
app.get('/api/v1/hola', (req, res) =>
{
res.status(200).send(
{
mensaje:"Hola Mundo!"
}
@juanesvelez
juanesvelez / forticlientsslvpn-expect.sh
Created May 12, 2021 20:43 — forked from mgeeky/forticlientsslvpn-expect.sh
Simple script intended to automate Fortinet SSL VPN Client connection on Linux using expect scripting.
#!/bin/bash
# Forticlient SSL VPN Client launching script utilizing expect.
# --------------------------------------------
# CONFIGURATION
# If empty - script will take some simple logic to locate appropriate binary.
FORTICLIENT_PATH=""