Skip to content

Instantly share code, notes, and snippets.

View cig0's full-sized avatar

Martín Cigorraga cig0

View GitHub Profile
@cig0
cig0 / GitCommit.sublime-syntax
Created July 29, 2021 22:41 — forked from MormonJesus69420/GitCommit.sublime-syntax
Syntax file for SublimeMerge
%YAML 1.2
---
# Highlight regular git commits, merge commits, and tags.
name: Git Commit
file_extensions:
- COMMIT_EDITMSG
- MERGE_MSG
- TAG_EDITMSG
scope: text.git.commit
AWSTemplateFormatVersion: 2010-09-09
Resources:
OrdersTable:
Type: AWS::DynamoDB::Table
Properties:
TableName: AuthorsTable_prod
AttributeDefinitions:
- AttributeName: "AuthorName"
AttributeType: "S"
- AttributeName: "BookTitle"
@cig0
cig0 / eks.bash
Last active March 26, 2021 18:26
AWS EKS eksctl: dirty Bash script - literally, it's a very much WIP - that I put together to quickly bring up / tear down an AWS EKS test/dev cluster when working on my Harness certification
#!/usr/bin/env bash
# This script creates a small dev/test EKS cluster using Spot instances. It is very much a WIP, don't run it blindly!
# You can run ./eks.bash to get a list of the available actions; use ./eks.bash template.create to create a ClusterConfig config-file ready to spin up a new cluster
#
# Shout-outs to:
# @totallyGreg [ https://github.com/totallyGreg ]
# @Erikdeirdre [ https://github.com/erikdeirdre ]
# For sharing their code which I took as a baseline to work with and from which I learned a few tricks
@cig0
cig0 / pre-push
Created September 10, 2019 14:58 — forked from kalpeshsingh/pre-push
A pre-push git hook that notify Amazon Chime group
#!/bin/sh
branch="$(git rev-parse --abbrev-ref HEAD)"
# get computer name to append in Chime message
username=$USER
# a branch name where you want to prevent git push. In this case, it's "master"
if [ "$branch" = "master" ]; then
echo "You can't commit directly to '"${branch}"' branch" # webstorm or intellij will show this as popup
@cig0
cig0 / VS Code Remore-Containers Extension Dockerfile
Last active August 4, 2019 13:19
Hacky but nice way to bypass COPY fail error
#-------------------------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
#-------------------------------------------------------------------------------------------------------------
FROM python:3
# Avoid warnings by switching to noninteractive
ENV DEBIAN_FRONTEND=noninteractive
@cig0
cig0 / gist:449f5be8d4463536d9392a635d5ed940
Created July 14, 2019 02:31
Verifying my Blockstack ID is secured with the address 1NbURzVnD9piS4n8TGQ55USkrwberR2hgu https://explorer.blockstack.org/address/1NbURzVnD9piS4n8TGQ55USkrwberR2hgu
Verifying my Blockstack ID is secured with the address 1NbURzVnD9piS4n8TGQ55USkrwberR2hgu https://explorer.blockstack.org/address/1NbURzVnD9piS4n8TGQ55USkrwberR2hgu
@cig0
cig0 / links.md
Created April 25, 2019 15:34 — forked from g0t4/links.md
Starting Point Files for Jenkins2 Getting Started course
@cig0
cig0 / .gitignore
Created April 16, 2019 04:07
[ git ] .gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@cig0
cig0 / Update fork.md
Last active April 16, 2019 04:05
[ cheatsheet ] Git

From: https://gist.github.com/CristinaSolana/1885435

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo

git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git