Skip to content

Instantly share code, notes, and snippets.

View richardsonlima's full-sized avatar
:octocat:
Focusing

Richardson Lima richardsonlima

:octocat:
Focusing
View GitHub Profile
https://www.notion.so/20ed9b13e1e64884a83596e6bb094270?v=2765a785e057475db177e91d0dd3dc9a
 Richardson’s MacBook Pro ~ ❯ aws rds describe-db-engine-versions --engine aurora --query "DBEngineVersions[].EngineVersion"  0:0:5
[
"5.6.mysql_aurora.1.19.6",
"5.6.mysql_aurora.1.20.1",
"5.6.mysql_aurora.1.22.1",
"5.6.mysql_aurora.1.22.2",
"5.6.mysql_aurora.1.22.3",
"5.6.mysql_aurora.1.23.0",
"5.6.mysql_aurora.1.23.1"
AWS QuickSight Role
Role ARN
arn:aws:iam::NUMERODACONTAAWS:role/service-role/aws-quicksight-service-role-v0
AWS QuickSight Policies
* AWSQuicksightAthenaAccess ( AWS já tem essa Policy, basta apenas usar )
{
"Version": "2012-10-17",
@richardsonlima
richardsonlima / starship.toml
Created November 4, 2020 01:10 — forked from ryo-ARAKI/starship.toml
Starship configuration file
# ~/.config/starship.toml
[battery]
full_symbol = "🔋"
charging_symbol = "🔌"
discharging_symbol = "⚡"
[[battery.display]]
threshold = 30
style = "bold red"
@richardsonlima
richardsonlima / .gitconfig
Last active September 10, 2020 02:25
.gitconfig
[credential]
helper = cache --timeout=3600
[user]
name = Richardson Lima
email =
[alias]
# View abbreviated SHA, description, and history graph of the latest 20 commits
l = log --pretty=oneline -n 20 --graph --abbrev-commit
@richardsonlima
richardsonlima / masox-hacks-catalina.sh
Last active December 15, 2024 05:17
macOS hacks - Catalina
#!/usr/bin/env bash
# ~/.osx — https://mths.be/osx
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
{
"Resources": {
"queue276F7297": {
"Type": "AWS::SQS::Queue",
"Properties": {
"QueueName": "queue"
},
"Metadata": {
"aws:cdk:path": "ServerlessStackStack/queue/Resource"
}
{
"Resources": {
"amazonecssampleLBF8E7DBED": {
"Type": "AWS::ElasticLoadBalancingV2::LoadBalancer",
"Properties": {
"Scheme": "internet-facing",
"SecurityGroups": [
{
"Fn::GetAtt": [
"amazonecssampleLBSecurityGroup55736652",
@richardsonlima
richardsonlima / cdk-serverless-stack-01.ts
Last active August 15, 2020 22:20
node version v12.18.1 npm version 6.14.5 cdk version 1.59.0 (build 1d082f4)
// create an API Gateway endpoint that invokes a Lambda function. This Lambda functions chooses a random number
// between 0 and 10000, and posts this number to an SQS queue. Another Lambda function picks up this message,
// and puts the value in DynamoDB
import * as cdk from '@aws-cdk/core';
import { Queue } from '@aws-cdk/aws-sqs';
import { Table, AttributeType } from '@aws-cdk/aws-dynamodb';
import { Function, Runtime, Code } from '@aws-cdk/aws-lambda';
import { RestApi, LambdaIntegration } from '@aws-cdk/aws-apigateway';
import { SqsEventSource } from '@aws-cdk/aws-lambda-event-sources';
@richardsonlima
richardsonlima / install_dirb.sh
Created August 12, 2020 00:46 — forked from gmolveau/install_dirb.sh
mac osx dirb install
cd ~/Applications
wget https://downloads.sourceforge.net/project/dirb/dirb/2.22/dirb222.tar.gz
tar -xvf dirb222.tar.gz
rm dirb222.tar.gz
brew install autoconf
chmod -R 755 dirb222
cd dirb222
./configure
make
make install