Skip to content

Instantly share code, notes, and snippets.

View mfedatto's full-sized avatar
🤓

MFedatto mfedatto

🤓
  • São Paulo, SP, Brasil
  • 19:21 (UTC -03:00)
View GitHub Profile

Oh My Posh MFedatto.io install script

Since I've needed to setup a set of instances with my theme, I've reached this script to automate all tasks I use.

The MFedatto OMP theme has an extra context that I use for an extra diferenciation among my devices and instances, like rpi4, rpi5, opi0 or docker. There is an additional script to set them.

Bash setup

curl -s https://gist.githubusercontent.com/mfedatto/475a009c0713428503fed83b62a3a2e4/raw/6275e85e643244be535f288b2b8c62e6562adb1f/mfedatto-omp-bash.sh | bash
@mfedatto
mfedatto / map-network-path.bat
Last active January 29, 2024 12:45
map-network-path.bat
@echo off
setlocal enabledelayedexpansion
REM Defina as variáveis padrão
set "drive_letter="
set "network_path="
set "label="
REM Analise os argumentos nomeados
for %%i in (%*) do (
@echo off
setlocal enabledelayedexpansion
REM Caminho base dos arquivos originais, recebido como primeiro argumento
set "caminhoBase=%1"
REM Extensão atual dos arquivos, recebida como segundo argumento
set "extensaoAtual=%2"
REM Extensão nova para os arquivos convertidos, recebida como terceiro argumento
@mfedatto
mfedatto / noSleep.vbs
Last active November 29, 2022 02:45 — forked from valdergallo/noSleep.vbs
Script to make windows stop to sleep using VBscript
Dim objWScript : Set objWScript = CreateObject("WScript.Shell")
Dim blnConsole : blnConsole = False
Dim dtmStartedAt : dtmStartedAt = Now()
If InStr(1, WScript.FullName, "cscript", vbTextCompare) Then
blnConsole = True
End If