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
Param( | |
[Parameter(Mandatory)] | |
[string]$RootPath | |
) | |
if (-not $RootPath) { $RootPath = Read-Host "Enter the root path to search for 'node_modules' folders" } | |
function Remove-NodeModules($path) { | |
$success = $true |
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
try { | |
$serverCode = $args[0] | |
if (-not $serverCode) { $serverCode = Read-Host -Prompt 'Please enter the server code' } | |
$json = Invoke-RestMethod -Uri "https://servers-frontend.fivem.net/api/servers/single/$serverCode" | |
$serverResources = $json.Data.resources | Sort-Object | |
Write-Host "Server resources:" |
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
<?php | |
if (!isset($_GET['username']) && !isset($_GET['usernames'])) { | |
echo "Usage: gh_source_repos.php?username(s)=username1,username2,..."; | |
exit(); | |
} | |
$usernames = []; | |
if (isset($_GET['username']) || isset($_GET['usernames'])) $usernames = array_merge($usernames, explode(",", ($_GET['usernames'] ?? $_GET['username']))); |
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
<# | |
17-06-2024 VIRUXE - https://flaviopereira.dev | |
This script replaces current Honda Tuning Suite (https://discord.hondatuningsuite.com) colors with the ones originally used in eCtune. | |
! eCtune was created by Frank van Koppen | |
#> | |
$properties = @{ | |
"TraceColor" = "RGB[-8355585]" |
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
{ | |
"credits": [ | |
{ | |
"name" : "Blundar", | |
"group": "PGMFI.org", | |
"link" : "http://www.pgmfi.org" | |
}, | |
{ | |
"name": "BoostedNW", | |
"link": "http://www.boostednw.com" |
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
[ | |
{ | |
"id": 422, | |
"name": "Bobcat", | |
"group": "Civilian", | |
"category": "TRUCK", | |
"size": "MEDIUM", | |
"length": 60.0, | |
"width": 16.0, | |
"model": "industrial", |
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
function Ping-SampServer { | |
param( | |
[string]$Address, | |
[int]$Port | |
) | |
$udpClient = $null | |
try { | |
$udpClient = New-Object System.Net.Sockets.UdpClient |
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
<# | |
Both functions produce a list of objects with the following format: | |
Server { | |
Name, | |
Address, | |
Port | |
} | |
#> |
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
import os | |
from PIL import Image | |
import sys | |
for root, dirs, files in os.walk(sys.argv[1] if len(sys.argv) > 1 else "."): | |
for file in files: | |
if file.endswith('.png'): | |
png_path = os.path.join(root, file) | |
webp_path = png_path.replace('.png', '.webp') | |
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
""" | |
Author: https://github.com/VIRUXE | |
This script is intended to scan actual script `.lua` files inside a FXServer (CFX/FiveM server) `resources` folder, looking for translation keys. | |
The ESX framework uses two functions called Translate and TranslateCap to retrieve translations from their respective locale files. | |
Once it finds all the keys used in the script files, it will scan the `pt.lua` file inside the `locales` folder. | |
In order to find out which keys are missing, it will compare the keys found in the script files with the keys found in the `pt.lua` file. | |
The script will then print the keys that are missing and/or unused from the `pt.lua` file |
NewerOlder