Skip to content

Instantly share code, notes, and snippets.

View korenyoni's full-sized avatar
🤪

Yonatan Koren korenyoni

🤪
View GitHub Profile
@korenyoni
korenyoni / build.sh
Last active March 20, 2023 13:58
buildx to ECR
$ docker context create build
$ docker buildx create --use build --driver=docker-container
$ docker buildx build \
--cache-to type=gha,token=${{ secrets.GITHUB_TOKEN }} \
--cache-from type=gha,token=${{ secrets.GITHUB_TOKEN }} \
--platform=linux/amd64,linux/arm64 \
--build-arg TERRAGRUNT_VERSION=${{ env.TERRAGRUNT_VERSION }} \
--build-arg TERRAFORM_VERSION=${{ env.TERRAFORM_VERSION }} \
-t $REGISTRY/$REPOSITORY_AND_TAG \
-f container-images/$DOCKERFILE \
@korenyoni
korenyoni / main.tf
Created March 15, 2023 15:56
ChatGPT4 "Write a Cloud Posse Terraform module that uses the 'skynet' provider"
# ------------------------------------------------------------------------------
# Skynet Terminator Terraform Module
# ------------------------------------------------------------------------------
# This Terraform module deploys a Skynet Terminator to target Sarah Connor.
# It requires the Skynet API key and utilizes the Cloud Posse Null Label module
# to follow Terraform best practices.
module "label" {
source = "git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.25.0"
@korenyoni
korenyoni / rc.lua
Last active February 25, 2016 15:31
Awesome config using awesome-copycats multicolor theme. Resizeable tiling windows using alt+ctrl+h/j/k/l. Centred terminal spawn in floating mode. Customized tab names. Alt+ctrl+n/p for next/previous tag browsing.
--[[
Multicolor Awesome WM config 2.0
github.com/copycat-killer
--]]
-- {{{ Required libraries
local gears = require("gears")
local awful = require("awful")