Skip to content

Instantly share code, notes, and snippets.

View rodgeraraujo's full-sized avatar
:octocat:
Rust Padawan in training!

Rogério Araújo rodgeraraujo

:octocat:
Rust Padawan in training!
View GitHub Profile
@rodgeraraujo
rodgeraraujo / Microsoft.PowerShell_profile.ps1
Last active October 13, 2022 12:37
My Windows Terminal Config Profile
# https://ohmyposh.dev/docs/installation/windows
# https://ohmyposh.dev/docs/themes
& ([ScriptBlock]::Create((oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\catppuccin_macchiato.omp.json" --print) -join "`n"))
# Shows navigable menu of all options when hitting Tab
#https://techcommunity.microsoft.com/t5/itops-talk-blog/autocomplete-in-powershell/ba-p/2604524
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
# https://dev.to/animo/fish-like-autosuggestion-in-powershell-21ec
# 1-> Install-Module PSReadLine -RequiredVersion 2.1.0 -Scope CurrentUser
@rodgeraraujo
rodgeraraujo / email_sender.py
Last active August 23, 2021 21:22
Simple python script that sends Gmail emails!
import os
import smtplib, ssl
from email.mime.text import MIMEText
import os
def get_credentials():
"""
Get the credentials from the environment variables.
{
"basics": {
"name": "Rogério Araújo",
"picture": "https://raw.githubusercontent.com/rodgeraraujo/rodgeraraujo/master/assets/profile_2024.jpg",
"label": "Software Engineer",
"headline": "",
"summary": "My name is Rogério Araújo, I'm graduated in Technology in Systems Analysis and Development at the Federal Institute of Education Science and Technology of Paraíba, campus Cajazeiras, Brazil.\n\nI have a passion for side projects and a compulsion to tinker. My main interests are Software Development, I like so much create things (and break too).\n\nWhen I’m not working, I love read, draw in free time, watch movies/series and meet new people, learn different technologies that I don’t frequently work with. I’m also a Machine Learning enthusiast.",
"website": "https://rogerioaraujo.dev",
"projects_url": "https://github.com/rodgeraraujo?tab=repositories",
"username": "rodgeraraujo",
@rodgeraraujo
rodgeraraujo / py_env_heroku.py
Created May 17, 2021 16:17
Python script to read .env and push to heroku app config
from honcho.environ import parse
from invoke import run
def push_env(file='.env'):
with open(file, 'r') as f:
env = parse(f.read())
cmd = 'heroku config:set --app '
for key, value in env.items():
cmd += ' ' + key + "=" + "'"+ value + "'"
run(cmd)
const { unref as $, ref, computed } from('vue');
const counter = ref(0);
const doubled = computed(() => $(counter) * 2);
<style>
.shadow {
width: 500px;
height: 500px;
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25),
0px 0 50px rgba(0, 0, 0, 0.1) inset;
border-radius: 1% 1% 1% 1% / 1% 1% 1% 1%;
}
</style>
@rodgeraraujo
rodgeraraujo / .zshrc
Last active December 29, 2019 22:52
OhMyZsh terminal config
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/rodger/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=Google Incognito
Exec=/opt/google/chrome/google-chrome --incognito
Icon=google-chrome
StartupNotify=true
Terminal=false
@rodgeraraujo
rodgeraraujo / cloudSettings
Last active June 9, 2022 23:19
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-10-02T03:04:19.162Z","extensionVersion":"v3.4.3"}