Skip to content

Instantly share code, notes, and snippets.

View gabrielsaints's full-sized avatar
:octocat:

Gabriel Santos gabrielsaints

:octocat:
View GitHub Profile
PROFILE=profile
MFA_SERIAL=xxx
USER=xxx
RESULT=$(aws sts get-session-token --serial-number arn:aws:iam::${MFA_SERIAL}:mfa/${USER} --token-code $1 --profile ${PROFILE})
ACCESS_KEY_ID="$(echo $RESULT | jq '.Credentials.AccessKeyId' -r)"
SECRET_KEY=$(echo $RESULT | jq '.Credentials.SecretAccessKey' -r)
TOKEN=$(echo $RESULT | jq '.Credentials.SessionToken' -r)
@gabrielsaints
gabrielsaints / .editorconfig
Last active October 31, 2019 14:49
vscode configs
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
#include <stdio.h>
#include <inttypes.h>
uint32_t fib(int n)
{
register uint32_t r = 0;
__asm__(
"mov $1, %%ebx\n\t"
".lp%=:\n\t"
@diego3g
diego3g / Chrome.md
Last active April 12, 2025 13:34
Ambiente DEV

Extensões

  • React Developer Tools
  • Dracula DevTools Theme
@codepainkiller
codepainkiller / hanoi.cpp
Last active November 7, 2020 18:40
Torres de Hanoi - C++
#include <iostream>
#include <cstdlib>
using namespace std;
int hanoi(int n)
{
if(n == 1)
return 1;
else
@dmglab
dmglab / git_bible.md
Last active March 9, 2024 02:59
how to git

Note: this is a summary of different git workflows putting together to a small git bible. references are in between the text


How to Branch

try to keep your hacking out of the master and create feature branches. the [feature-branch workflow][4] is a good median between noobs (i have no idea how to branch) and git veterans (let's do some rocket sience with git branches!). everybody get the idea!

Basic usage examples