Skip to content

Instantly share code, notes, and snippets.

View nicxes's full-sized avatar

Nicolás Miranda nicxes

View GitHub Profile
@Xinerki
Xinerki / beacons.lua
Created June 6, 2023 06:59
nfs heat style
function math.clamp(value, minClamp, maxClamp)
return math.min(maxClamp, math.max(value, minClamp))
end
function DrawSprite3D(textureDict, textureName, x, y, z, width, height, heading, red, green, blue, alpha)
x = x + math.sin(math.rad(-heading-90.0)) * (width*0.5)
y = y + math.cos(math.rad(-heading-90.0)) * (width*0.5)
--z = z -0.5
local offX = math.sin(math.rad(-heading+90)) * width
@aaronlink127
aaronlink127 / labels.txt
Last active February 14, 2024 08:57
GTA V American Labels
This file has been truncated, but you can view the full file.
"1001A": "HALL & OATES"
"1001S": "Adult Education"
"1004A": "BOB SEGER"
"1004S": "Hollywood Nights"
"1005A": "BOB SEGER"
"1005S": "Night Moves"
"1007A": "BT EXPRESS"
"1007S": "Do It ('Til You're Satisfied)"
"1009A": "RICK JAMES"
"1009S": "Give It To Me Baby"
@Sainan
Sainan / gist:021bd2f48f1c68d3eb002caab635b5a4
Last active November 4, 2023 09:40
All occurrences of AUDIO::PLAY_SOUND_FRONTEND as of Cayo Percio Heist DLC, sorted alphabetically and identical lines removed
AUDIO::PLAY_SOUND_FRONTEND((uParam0[iParam1 /*80*/])->f_6, "Crash", "DLC_EXEC_ARC_MAC_SOUNDS", true);
AUDIO::PLAY_SOUND_FRONTEND((uParam0[iParam1 /*80*/])->f_6, "Crash_NPC", "DLC_EXEC_ARC_MAC_SOUNDS", true);
AUDIO::PLAY_SOUND_FRONTEND((uParam1[iParam2 /*80*/])->f_5, "Trail_1", "DLC_EXEC_ARC_MAC_SOUNDS", true);
AUDIO::PLAY_SOUND_FRONTEND((uParam1[iParam2 /*80*/])->f_5, "Trail_2", "DLC_EXEC_ARC_MAC_SOUNDS", true);
AUDIO::PLAY_SOUND_FRONTEND((uParam1[iParam2 /*80*/])->f_5, "Trail_3", "DLC_EXEC_ARC_MAC_SOUNDS", true);
AUDIO::PLAY_SOUND_FRONTEND((uParam1[iParam2 /*80*/])->f_5, "Trail_4", "DLC_EXEC_ARC_MAC_SOUNDS", true);
AUDIO::PLAY_SOUND_FRONTEND((uParam1[iParam2 /*80*/])->f_7, "Turn", "DLC_EXEC_ARC_MAC_SOUNDS", true);
AUDIO::PLAY_SOUND_FRONTEND((uParam1[iParam2 /*80*/])->f_7, "Turn_NPC", "DLC_EXEC_ARC_MAC_SOUNDS", true);
AUDIO::PLAY_SOUND_FRONTEND(*iParam1, sParam0, sParam7, true);
AUDIO::PLAY_SOUND_FRONTEND(*iParam3, "Recharging_Loop", "DLC_AW_Machine_Gun_Ammo_Counter_Sounds", true);
@Stuyk
Stuyk / gist:c65f345b73a7eab4a0ee30b540e57c76
Created April 15, 2020 16:20
GTA:V Hair Overlay Values
export const HairOverlaysMale = {
0: { collection: 'mpbeach_overlays', overlay: 'FM_Hair_Fuzz' },
1: { collection: 'multiplayer_overlays', overlay: 'NG_M_Hair_001' },
2: { collection: 'multiplayer_overlays', overlay: 'NG_M_Hair_002' },
3: { collection: 'multiplayer_overlays', overlay: 'NG_M_Hair_003' },
4: { collection: 'multiplayer_overlays', overlay: 'NG_M_Hair_004' },
5: { collection: 'multiplayer_overlays', overlay: 'NG_M_Hair_005' },
6: { collection: 'multiplayer_overlays', overlay: 'NG_M_Hair_006' },
7: { collection: 'multiplayer_overlays', overlay: 'NG_M_Hair_007' },
8: { collection: 'multiplayer_overlays', overlay: 'NG_M_Hair_008' },
RequestModel("peyote")
RequestModel("a_f_y_vinewood_04")
Wait(500)
pedVeh = CreateVehicle("peyote", GetEntityCoords(ped), .0)
GIRL_PED = CreatePed(4, "a_f_y_vinewood_04", GetEntityCoords(ped), .0)
Wait(500)
local animBase = "RANDOM@CAR_THEFT_1@MCS_2"
RequestAnimDict(animBase)
@throwarray
throwarray / mugroom.lua
Created July 21, 2018 19:09
mugroom.lua
local function CreateNamedRenderTargetForModel(name, model)
local handle = 0
if not IsNamedRendertargetRegistered(name) then
RegisterNamedRendertarget(name, 0)
end
if not IsNamedRendertargetLinked(model) then
LinkNamedRendertarget(model)
end
if IsNamedRendertargetRegistered(name) then
handle = GetNamedRendertargetRenderId(name)

How to install Laravel globally in Ubuntu

===================================================================

Open your terminal using Ctrl+Alt+T and type the following commands

Step 1: Install Laravel

composer global require "laravel/installer"
@bladeSk
bladeSk / laravel-on-shared-hosting-htaccess.md
Last active March 5, 2024 09:51
Deploying Laravel on a shared hosting using only .htaccess

Deploying Laravel on a shared hosting using only .htaccess

Making Laravel work on a shared hosting can be troublesome, because Laravel needs to have its document root set to the public directory. This may not be configurable by a user or even desirable, when the server is hosting multiple websites.

Here's a simple method using only a .htaccess file placed in Laravel's root directory - e.g. alongside app, bootstrap, config, ... No changes whatsoever are necessary to your code.

The file rewrites all the requests so that requesting /file.png would in fact return /public/file.png and anything else is routed to /public/index.php. This also ensures that nothing outside the public folder can be accessed, thereby protecting any sensitive files like .env or database/*.

The simple method

@JamesMGreene
JamesMGreene / gitflow-breakdown.md
Last active May 23, 2024 12:17
`git flow` vs. `git`: A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@digitaljhelms
digitaljhelms / gist:4287848
Last active May 25, 2024 22:25
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch