Skip to content

Instantly share code, notes, and snippets.

View rodigu's full-sized avatar
:electron:
☝️🤓

Rodrigo Morais rodigu

:electron:
☝️🤓
View GitHub Profile
@rodigu
rodigu / pbi-data-info.md
Created April 1, 2025 17:23
powerbi tooltip help
  1. insert an oval shape
  2. write a question mark inside it (style > text)
  3. add an action, bookmark type
  4. you can write a help-kind of text in the tooltip section (action > tooltip)
@rodigu
rodigu / powershell-ref-scroll.md
Created April 25, 2025 21:08
scrolling on powershell with the keyboard

there are built-in key bindings for scrolling on powershell

was looking for a way to do this, as i have been looking through docker logs1 for basically the whole day2. a lot of moving my hand all the way over to the mouse to scroll

after searchingit up, a reddit comment suggested adding key bindings

Footnotes

  1. why is the docker ps command so poorly fomatted? it is terribly annoying to parse what is going on a basic visual level. seems to be a gripe sustained by at least 173 other poor souls

  2. the docker inspect command has been quite useful

@rodigu
rodigu / python-pandas-oneliners.py
Created June 24, 2025 18:50
a python one liner featuring the walrus operator
(a:=df.melt(value_vars=[qtt, val], id_vars=[moy, par, ven], var_name='type')).assign(**{mnt:a[moy] + '-' + a['type']})[[mnt,par,ven,'value']].pivot(columns=[mnt], index=[par,ven], values='value').to_csv('73-1.csv')