Skip to content

Instantly share code, notes, and snippets.

View mondaini's full-sized avatar
🌎
Coding Remotely

Filipe Mondaini mondaini

🌎
Coding Remotely
View GitHub Profile
@mondaini
mondaini / ssm2env.py
Created March 21, 2023 19:07
Get SSM Parameters and set them as Environment Variables
import boto3
import os
# Please replace with your AWS access key and secret key
aws_access_key = "access_key"
aws_secret_key = "secret_key"
# Please replace with your desired region
region_name = "us-east-1"
@mondaini
mondaini / app.yaml
Created February 3, 2022 00:19 — forked from alukach/app.yaml
An example Github Actions for Python + Pipenv + Postgres + Pyright
# .github/workflows/app.yaml
name: My Python Project
on: push
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
services:
@mondaini
mondaini / Remote.md
Last active November 24, 2023 20:08
List of companies hiring for full remote positions to work with companies in the US/Europe
@mondaini
mondaini / multiple_ssh_setting.md
Created May 17, 2018 14:08 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
{
"workbench.colorTheme": "Monokai",
"workbench.iconTheme": "vscode-icons",
//"workbench.panel.location": "bottom",
"sublimeTextKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.snippetSuggestions": "top",
"editor.formatOnPaste": true,
@mondaini
mondaini / Docker-Cheatsheet.md
Created March 18, 2015 16:57
Docker Cheatsheet

builds the containers: docker-compose build

remove the containers: docker-compose rm

'recreate' the containers: docker-compose up

start the containers:

Execute um crontab -e para abrir o crontab no editor de texto e cole o texto abaixo no início do arquivo:
## CRONTAB HINTS AND TIPS
##
##
## Entry Description Equivalent To
## @yearly (or @annually) Run once a year at midnight in the morning of January 1 0 0 1 1 *
## @monthly Run once a month at midnight in the morning of the first of the month 0 0 1 * *
## @weekly Run once a week at midnight in the morning of Sunday 0 0 * * 0
## @daily Run once a day at midnight 0 0 * * *

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

int channel_pin[] = {2, 4};
static int relayStateA = 0;
static int relayStateB = 0;
void setup() {
// initialize serial communication:
Serial.begin(9600);
for (int i = 0; i < sizeof(channel_pin); ++i)
{
@mondaini
mondaini / NTFS Support on OSX.md
Last active December 17, 2015 00:09
Provide NTFS writing on OSX Lion / Mountain Lion

Tested under Mountain Lion 10.8.2 / Lion 10.7.5 :

  1. Install brew

  2. Open a terminal and execute: sudo su -

  3. Install fuse4x: brew install fuse4x

  4. Install ntfs-3g: brew install ntfs-3g