Skip to content

Instantly share code, notes, and snippets.

View kevinah95's full-sized avatar
🇨🇷

Kevin Hernández Rostrán kevinah95

🇨🇷
View GitHub Profile
@kevinah95
kevinah95 / arquitectura-01.yml
Created November 28, 2023 01:02
arquitectura-01.yml
AWSTemplateFormatVersion: 2010-09-09 # https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/format-version-structure.html
Resources:
PrimerInstancia:
Type: AWS::EC2::Instance
Properties:
AvailabilityZone: us-east-1
ImageId: ami-00f8146d2a74d4b4e
InstanceType: t2.micro
Tags:

Add eslint and prettier

https://eslint.org/blog/2023/10/deprecating-formatting-rules/

$ npm init @eslint/config
✔ How would you like to use ESLint? · problems
✔ What type of modules does your project use? · esm
✔ Which framework does your project use? · react
✔ Does your project use TypeScript? · No / Yes
@kevinah95
kevinah95 / lab03.sh
Last active September 26, 2023 22:41
#!/bin/bash
# Install Apache Web Server and PHP
dnf install -y httpd wget php mariadb105-server
# Download Lab files
wget https://aws-tc-largeobjects.s3.us-west-2.amazonaws.com/CUR-TF-100-ACCLFO-2/2-lab2-vpc/s3/lab-app.zip
unzip lab-app.zip -d /var/www/html/
# Turn on web server
chkconfig httpd on
service httpd start
dotnet ef dbcontext scaffold "DataSource=Northwind.db" Microsoft.EntityFrameworkCore.Sqlite -o Models
def hourglassSum(arr):
results = []
max_value = 0
for j in range(4):
sums = []
for i in range(5):
sum_01 = sum(arr[j][i : 3 + i])
sum_02 = arr[j + 1][i + 1]
sum_03 = sum(arr[j + 2][i : 3 + i])
sums.append(sum_01 + sum_02 + sum_03)
@kevinah95
kevinah95 / git-commit-style-guide.md
Created February 19, 2023 05:57 — forked from ericavonb/git-commit-style-guide.md
Git Commit Style Guide

Git Commit Style Guide

Inspiration: Deis Commit Style Guide

I often quote Deis in sections below.

Motivation

It makes going back and reading commits easier. It also allows you to spend less time thinking about what your commit message should be.

  • Install pyenv with: https://github.com/pyenv/pyenv-installer
  • Install a version of python 3:
    • pyenv install 3.11.2
    • pyenv global 3.11.2
  • Install poetry with: https://python-poetry.org/
  • Config virtual-envs in project (👉 More info):
    • poetry config settings.virtualenvs.in-project true
  • You can config this setting in current project: poetry config --local virtualenvs.in-project true
@kevinah95
kevinah95 / work-with-multiple-github-accounts.md
Created January 12, 2023 01:25 — forked from rahularity/work-with-multiple-github-accounts.md
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
akamud.vscode-theme-onelight
AkashChikane.List2Array
andys8.jest-snippets
atlassian.atlascode
bierner.color-info
burkeholland.simple-react-snippets
dericcain.feather
dsznajder.es7-react-js-snippets
emilast.LogFileHighlighter
Equinusocio.vsc-community-material-theme