This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !! 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !! 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Custom/Vertex Color" | |
{ | |
CGINCLUDE | |
#include "UnityCG.cginc" | |
#include "AutoLight.cginc" | |
#include "Lighting.cginc" | |
ENDCG | |
SubShader | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>field</Title> | |
<Shortcut>field</Shortcut> | |
<Description>Code snippet for a Unity serializable field | |
Language Version: C# 3.0 or higher</Description> | |
<Author>Fredi Machado</Author> | |
<SnippetTypes> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Based on ulatekh's code: https://gist.github.com/ulatekh/f37b1a973c7a1b09f18a457e3a4af54a | |
// I wanted to keep the funcionality but allow button clicks on the touch screen monitor, | |
// that way the main user can start a custumer feedback window in the touch screen and be able | |
// to keep working in the main screen without interference from the touch screen. | |
namespace BlackFox | |
{ | |
using System; | |
using System.ComponentModel; | |
using System.Runtime.InteropServices; | |
using System.Security; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Formulas.cs b/Formulas.cs | |
index f65d65c..fabc88b 100644 | |
--- a/Formulas.cs | |
+++ b/Formulas.cs | |
@@ -372,6 +372,44 @@ namespace OpcodeTools | |
{ | |
return ((opcode & 0x8000) >> 13) | ((opcode & 0x80) >> 7) | ((opcode & 0x800) >> 10); | |
} | |
+ } | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Handler: 6C7260 - http://paste2.org/p/1874034 | |
[Parser(Opcode.TEST_422_13022, ClientVersionBuild.V4_2_2_14545)] | |
public static void Handle13022(Packet packet) | |
{ | |
var bytes = new byte[8]; | |
bytes[0] = (byte)(packet.ReadBit() ? 1 : 0); | |
bytes[4] = (byte)(packet.ReadBit() ? 1 : 0); | |
bytes[5] = (byte)(packet.ReadBit() ? 1 : 0); | |
bytes[1] = (byte)(packet.ReadBit() ? 1 : 0); |
NewerOlder