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
/*
name: Blacksmithing REP 2
description: Farms Quest 8736 (Monster Machining) for Blacksmithing REP. Ported from Grimoire script.
tags: blacksmithing, rep, reputation, monster machining, creature shard, monster trophy, hydra scale piece
*/
//cs_include Scripts/CoreBots.cs
//cs_include Scripts/CoreFarms.cs
//cs_include Scripts/CoreAdvanced.cs
using Skua.Core.Interfaces;
using Skua.Core.Options;
@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 a problem-solver and builder, I like to create things and solve complex technical challenges. With more than 6 years of experience in software development, I have worked in a variety of engineering stacks including mobile development (Flutter, Android), web development (React, Vue.js), and backend development (JavaScript, TypeScript, Rust).",
"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