Skip to content

Instantly share code, notes, and snippets.

View fredimachado's full-sized avatar

Fredi Machado fredimachado

View GitHub Profile
@fredimachado
fredimachado / Fix-Fornite-Replays.ps1
Last active December 7, 2022 05:51
Fix/Convert Fortnite Replays to 8.30
# Big thanks to the original creator of this script, IamLukeVice: https://www.reddit.com/user/IamLukeVice
#
# Copy all this content, paste in notepad and save as a ps1 file, example: Fix-Fornite-Replays.ps1
# Then, open the folder containing the script, right click it and choose: Run With Powershell
# If it doesnt run, follow this: https://superuser.com/questions/106360/how-to-enable-execution-of-powershell-scripts
#
# Script to delete duplicate replay files: https://gist.github.com/fredimachado/1a3d36f34e786a423328a347ff11215a
$LocalAppDataFolder = "$env:LOCALAPPDATA"
$FortniteReplaysFolder = $LocalAppDataFolder + "\FortniteGame\Saved\Demos"
$count = 0
@fredimachado
fredimachado / Delete-Duplicate-Fortnite-Replays.ps1
Last active November 14, 2018 11:04
Delete duplicate Fortnite replay files based on the date on the file name
# !! USE IT AT YOUR OWN RISK !!
#
# Run this script after Fixing the replay files and making sure you can watch them in the game
# This script will delete duplicate replay files based on the date on the name of the file
#
# Script to fix replay files: https://gist.github.com/fredimachado/19a489f6dccdb9e2d18b482bed87059d
#
# Copy all this content, paste in notepad and save as a ps1 file, example: Delete-Duplicate-Fortnite-Replays.ps1
# Then, open the folder containing the script, right click it and choose: Run With Powershell
# If it doesnt run, follow this: https://superuser.com/questions/106360/how-to-enable-execution-of-powershell-scripts
@fredimachado
fredimachado / Rename-Fornite-Replays.ps1
Last active November 14, 2018 11:27
Rename Fortnite replay files removing the 'fixed-' prefix(es)
# !! USE IT AT YOUR OWN RISK !!
#
# Run this script after Fixing the replay files and deleting duplicate ones
# This script will remove the `fixed-` prefix(es) from the files
# NOTE: If you run this before fixing and deleting duplicate files you will get erros due to duplicate files
#
# Script to fix replay files: https://gist.github.com/fredimachado/19a489f6dccdb9e2d18b482bed87059d
# Script to delete duplicate replay files: https://gist.github.com/fredimachado/1a3d36f34e786a423328a347ff11215a
#
# Copy all this content, paste in notepad and save as a ps1 file, example: Rename-Fornite-Replays.ps1
@fredimachado
fredimachado / Microsoft.PowerShell_profile.ps1
Created October 20, 2021 01:53
My Microsoft.PowerShell_profile.ps1
$global:DefaultUser = 'Fredi'
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
Import-Module Terminal-Icons
Import-Module oh-my-posh
Set-PoshPrompt -Theme ~/myparadox.omp.json