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 | |
define('MAX_WIDTH', 160); | |
define('MAX_HEIGHT', 160); | |
$output_name = ''; | |
$output_full_path = ''; | |
if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_FILES['image'])) { | |
$image_path = $_FILES['image']['tmp_name']; |
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
@echo off | |
SET "FILE_NAME=sampcac_client.asi" | |
echo Adding Exclusion to Windows Defender | |
powershell -Command "Add-MpPreference -ExclusionPath '%CD%\%FILE_NAME%'" | |
echo Downloading SAMPCAC ASI... | |
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('https://gta.flaviopereira.dev/sa/samp/asi/sampcac_client.asi', '%FILE_NAME%')" | |
echo Done. |
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([string]$ServerName) | |
function Test-Server($folder) { Test-Path "$folder/server.cfg" } | |
do { | |
if (-not $ServerName -or -not (Test-Server $ServerName)) { | |
Write-Host | |
$servers = Get-ChildItem -Directory | Where-Object { Test-Server $_.FullName } |
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 |
NewerOlder