Skip to content

Instantly share code, notes, and snippets.

View alisson276's full-sized avatar

Alisson Ramos de Oliveira alisson276

  • Euronext Corporate Services
  • Portugal
  • 21:27 (UTC +01:00)
  • X @alisson_aro
View GitHub Profile

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@alisson276
alisson276 / log_aws_lambda_event_and_context.py
Created September 30, 2022 09:10 — forked from gene1wood/log_aws_lambda_event_and_context.py
A python AWS Lambda function which logs the contents of the event and context variables passed into the function.
from __future__ import unicode_literals
import logging
import json
logger = logging.getLogger(__name__)
logging.getLogger().setLevel(logging.INFO)
class PythonObjectEncoder(json.JSONEncoder):
"""Custom JSON Encoder that allows encoding of un-serializable objects
@alisson276
alisson276 / 1-setup.md
Created April 21, 2022 16:08 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS Sierra/High Sierra

Methods of Signing with GPG

Last updated March 28, 2021

There are now two ways to approach this:

  1. Using gpg and generating keys
  2. Using Kryptonite by krypt.co

This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions

# Source: https://gist.github.com/6fb3e7da327df9203d9d4c184fcb5831
##############################################################################
# Combining Argo CD (GitOps), Crossplane (Control Plane), And Kubevela (OAM) #
# https://youtu.be/eEcgn_gU3SM #
##############################################################################
# Referenced videos:
# - Argo CD - Applying GitOps Principles To Manage Production Environment In Kubernetes: https://youtu.be/vpWQeoaiRM4
# - Cloud-Native Apps With Open Application Model (OAM) And KubeVela: https://youtu.be/2CBu6sOTtwk
@alisson276
alisson276 / run.tpl
Created November 8, 2021 14:19 — forked from efrecon/run.tpl
`docker inspect` template to regenerate the `docker run` command that created a container
docker run \
--name {{printf "%q" .Name}} \
{{- with .HostConfig}}
{{- if .Privileged}}
--privileged \
{{- end}}
{{- if .AutoRemove}}
--rm \
{{- end}}
{{- if .Runtime}}

Keybase proof

I hereby claim:

  • I am alisson276 on github.
  • I am alisson276 (https://keybase.io/alisson276) on keybase.
  • I have a public key ASDNZVeS1lAOIxFJt43iMBTs4b2eH7s0OLQKMLeay4Sr9wo

To claim this, I am signing this object:

@alisson276
alisson276 / .bashrc_ssh
Created October 13, 2016 11:23 — forked from bluegraybox/.bashrc_ssh
Initialize ssh-agent in .bashrc
# Set up ssh-agent
SSH_ENV="$HOME/.ssh/environment"
function start_agent {
echo "Initializing new SSH agent..."
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
echo succeeded
chmod 600 "${SSH_ENV}"
. "${SSH_ENV}" > /dev/null
for i in .ssh/keys/*; do