Skip to content

Instantly share code, notes, and snippets.

View TriForceX's full-sized avatar
🍕
Pizza Time!

TriForce TriForceX

🍕
Pizza Time!
View GitHub Profile
@TriForceX
TriForceX / g_cmds.c
Last active May 19, 2023 15:36
[JK2/JKA] Fake Wallhack Command
// Call standardSetBodyAnim function
void StandardSetBodyAnim(gentity_t *self, int anim, int flags);
// Fake Wallhack function (NoClip like)
void Cmd_fakeWallhack_f(gentity_t *ent) {
int animation_number;
char animation[MAX_TOKEN_CHARS]; // Define the argument variable. (the argument 0 is already the first command, in this case "fakewh" the second should be "sit" for example /fakewh sit)
trap_Argv(1, animation, sizeof(animation)); // Set the 1st argument recived through a command
@TriForceX
TriForceX / ldk-screen-upgrade.md
Last active September 13, 2021 13:27
LDK Screen Upgrade

LDK Screen Upgrade

The next guide is to replace/upgrade the LDK Game console screen for a bigger one. Thanks to Tbox for this.
Note: There will be a little bit of backlight bleed on the sides but only really noticeable in the dark.

Materials

  • LCD screen (buy)
  • Protector film (buy)
  • Screwdriver
  • Dremel or knife
  • Tape
@TriForceX
TriForceX / wp-prevent-terms.php
Last active June 7, 2019 16:30
[Wordpress] Deny user add/edit perms on Taxonomies
<?php
// Deny user add/edit perms on Taxonomies
function prevent_terms($term, $taxonomy)
{
if('taxonomy_slug' === $taxonomy && current_user_can('role_slug'))
{
return new WP_Error('term_addition_blocked', __('You cannot add terms to this taxonomy'));
}
return $term;
}
@TriForceX
TriForceX / ldk-retrofw-install.md
Last active June 7, 2019 16:05
LDK RetroFW Install

LDK RetroFW Install

This is how to install the custom firmware RetroFW on RS-97 or LDK:

1) Prepare your SD card

Before start we recommend you to extract every additional external disk on your pc. Next download SD card formatter (here) to format your SD card. When launch the program it may appear the 3 partitions related with the sd card, just left selected the first one that appears and just choose quick format and click on Format button. (Volume label is not required)

retrofw-setup-1a retrofw-setup-1b