Skip to content

Instantly share code, notes, and snippets.

NOTA: Saberse las casi 900 paginas de comandos del aws, no tiene demasiado valor para un desarrollador, pero aqui estan un par de comandos del aws cli con localstack

video al que hace referencia de Midudev https://www.youtube.com/watch?v=zQyrhjEAqLs

esqueleto para lanzar instancia EC2 de tipo t2.micro en este caso con public ip:

aws ec2 run-instances \
--image-id <ami-imagen-id> \
--instance-type  \
@sosan
sosan / readme.md
Created December 27, 2023 22:00
Preguntas y Respuesta sobre AWS

Pregunta 1: Según AWS, ¿cuál es el beneficio de la Elasticidad?

A. Minimizar los requisitos de almacenamiento al reducir actividades de registro y auditoría. B. Crear sistemas que se escalen a la capacidad requerida según los cambios en la demanda. C. Permitir que AWS seleccione automáticamente los servicios más rentables. D. Acelerar el proceso de diseño porque la recuperación de fallos está automatizada, reduciendo la necesidad de pruebas.

|| Respuesta: B

@sosan
sosan / ubuntu22.04_nodejs19_cypress12.3.dockerfile
Last active January 20, 2023 23:50
ubuntu 22.04 nodejs 19 cypress 12.3
# syntax=docker/dockerfile:1.4
FROM ubuntu:22.04
RUN apt-get update && \
apt-get install -y apt-transport-https curl
ENV DEBIAN_FRONTEND noninteractive
ENV TERM xterm
ENV npm_config_loglevel warn
ENV npm_config_unsafe_perm true
# Network VPC
resource "digitalocean_vpc" "keep-secrets-vpc" {
name = var.cluster_name
region = var.region
description = "VPC for keep-secrets"
}
# Firewall config
resource "digitalocean_firewall" "rules" {
name = var.cluster_name
@sosan
sosan / gist:b5dc8573f3d84f24ddf1aa880f94a982
Last active March 26, 2022 12:16
deploy mongo statefulset con volumenclain y volumenmounts, service, secrets
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: mongodb-single
labels:
app: mongodb
spec:
serviceName: mongodb-single
replicas: 1
updateStrategy:
@sosan
sosan / SkinnedMeshCombiner.cs
Created April 18, 2018 22:45 — forked from radiatoryang/SkinnedMeshCombiner.cs
example code for combining SkinnedMeshRenderers at runtime (for optimization reasons usually), which I use in my games for Mixamo Fuse models specifically... PLEASE DON'T ASK ME FOR HELP WITH THIS, this is more for learning purposes, and it's not really an easy-to-use Asset Store thing? also I have a lot of weird hacks specific for my uses... ag…
// this code is under MIT License, by Robert Yang + others (credits in comments)
// a lot of this is based on http://wiki.unity3d.com/index.php?title=SkinnedMeshCombiner
// but I removed the atlasing stuff because I don't need it
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Collections.Generic;
namespace UnityEngine.UI.Extensions {
[AddComponentMenu("UI/Extensions/Primitives/UILineRenderer")]
public class UILineRenderer : MaskableGraphic {
private enum SegmentType {
Start,
Middle,
End,
}
@sosan
sosan / LayersToPNG.jsx
Created September 10, 2017 17:32 — forked from nzhul/LayersToPNG.jsx
Spine 2D - LayersToPNG.jsx fix for Photoshop CC
// This script exports photoshop layers as individual PNGs. It also
// writes a JSON file that can be imported into Spine where the images
// will be displayed in the same positions and draw order.
// Setting defaults.
var writePngs = true;
var writeTemplate = false;
var writeJson = true;
var ignoreHiddenLayers = true;
var pngScale = 1;