Skip to content

Instantly share code, notes, and snippets.

View edo92's full-sized avatar
🎯
Focusing

Eduard Jacobs edo92

🎯
Focusing
View GitHub Profile
typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet
## Run nvm use when .nvmrc file exists
##### START
autoload -U add-zsh-hook
load-nvmrc() {
local node_version="$(nvm version)"
local nvmrc_path="$(nvm_find_nvmrc)"
if [ -n "$nvmrc_path" ]; then
brew update
brew upgrade
brew install iterm2
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git /Users/eduardjacobs/.oh-my-zsh/custom/themes/powerlevel10k
open ~/.zshrc
# Replace ZSH_THEME="powerlevel9k/powerlevel9k" with ZSH_THEME="powerlevel10k/powerlevel10k".
@edo92
edo92 / anonymus-fn.rs
Last active June 3, 2022 10:00
Rust examples
let add |x, y| { x + y };
add(1, 2); // return 3
on:
pull_request:
types:
- opened
branches:
- main
jobs:
Install:
runs-on: ubuntu-latest
@edo92
edo92 / 0.yml
Last active April 7, 2022 13:21
Github Actions Environment Workflow CI/CD
name: CICD
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
@edo92
edo92 / 0.ts
Last active January 29, 2022 19:22
Aws cdk Ecs Fargate Infrastructure
import * as cdk from '@aws-cdk/core';
import * as ec2 from '@aws-cdk/aws-ec2';
import * as ecr from '@aws-cdk/aws-ecr';
import * as ecs from '@aws-cdk/aws-ecs';
import * as elb from '@aws-cdk/aws-elasticloadbalancingv2';
import * as ecs_patterns from '@aws-cdk/aws-ecs-patterns';
import { TaskRole, ExecutionRole } from './roles';
/**
*