Skip to content

Instantly share code, notes, and snippets.

View prpcodes's full-sized avatar

Philipp R. Proksch prpcodes

View GitHub Profile
@Zackaery
Zackaery / snippet.md
Last active September 16, 2025 17:37
ox_inventory - Prefilling Item Containers

In ox_inventory, item containers are used to store multiple items, such as loot crates, stash inventories, or player bags. By default, containers will start empty, requiring manual population. This snippet introduces functionality to prepopulate containers when they are created, allowing you to define preset inventories with specific items.

This is useful for scenarios such as:

  • Lootable Crates – Ensure predefined loot spawns in chests or boxes.
  • Starter Kits – Automatically provide a set of items inside of a box.
  • Item Packages - Items that would come prepackaged in bulk like a pack of cigarettes that contains 10 cigarettes.
  • Mission Rewards – Quest-related items directly into an item container.

This will be done in 3-4 simple steps, just follow along below and it should be a breeze!

@bashbunni
bashbunni / .zshrc
Last active October 15, 2025 05:34
CLI Pomodoro for Mac
# I'll be doing another one for Linux, but this one will give you
# a pop up notification and sound alert (using the built-in sounds for macOS)
# Requires https://github.com/caarlos0/timer to be installed
# Mac setup for pomo
alias work="timer 60m && terminal-notifier -message 'Pomodoro'\
-title 'Work Timer is up! Take a Break 😊'\
-appIcon '~/Pictures/pumpkin.png'\
-sound Crystal"
- Weapon Names
WEAPON_UNARMED
WEAPON_ANIMAL
WEAPON_COUGAR
WEAPON_KNIFE
WEAPON_NIGHTSTICK
WEAPON_HAMMER
WEAPON_BAT
WEAPON_GOLFCLUB
WEAPON_CROWBAR
@SynCap
SynCap / remove_node_modules_recursively.ps1
Last active October 28, 2025 16:23
Remove `node_modules` folders in Windows in all subfolders recursively with PowerShell to avoid exceeding path max_length
<#
Note: Eliminate `-WhatIf` parameter to get action be actually done
Note: PS with version prior to 4.0 can't delete non-empty folders
#>
Get-ChildItem -Path "." -Include "node_modules" -Recurse -Directory | Remove-Item -Recurse -Force -WhatIf
@rxaviers
rxaviers / gist:7360908
Last active November 6, 2025 13:54
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: