Skip to content

Instantly share code, notes, and snippets.

View RadTechDad's full-sized avatar

Darrell RadTechDad

View GitHub Profile
@RadTechDad
RadTechDad / VRisingModPlugin.csproj
Last active July 5, 2022 01:54
C# References to V-Rising DLLs for BepInEx Modding
<!-- Add this first line to the <Property Group> and change the value of the path to where your installed game is -->
<UnhollowedDllPath>C:\Steam\steamapps\common\VRising\BepInEx\unhollowed</UnhollowedDllPath>
<ItemGroup>
<Reference Include="com.stunlock.console">
<HintPath>$(UnhollowedDllPath)\com.stunlock.console.dll</HintPath>
</Reference>
<Reference Include="com.stunlock.metrics">
<HintPath>$(UnhollowedDllPath)\com.stunlock.metrics.dll</HintPath>
</Reference>
2021-04-19 09:29:50.285 Dev mode enabled
2021-04-19 09:29:50.286 READER: Dev reader mode enabled
2021-04-19 09:29:50.286 NOTIFICATION: Dev notifications mode enabled
2021-04-19 09:29:50.287 Running on OS X/macOS version 11.2.3 (Build 20D91)
2021-04-19 09:29:50.287 Running sandboxed Keka (MAS) version 1.2.13 (4541)
2021-04-19 09:29:50.288 Used localization: en
2021-04-19 09:30:25.886 DEV: Adding 1 files
2021-04-19 09:30:25.886 DEV: Waiting for more input: 0.250000
2021-04-19 09:30:26.174 DEV: Checking tasks queue
2021-04-19 09:30:26.177 DEV: Starting queued task
@RadTechDad
RadTechDad / ArkSEPaintFiles.bt
Created October 13, 2015 04:22
"010 Editor" Template File for Ark: Survival Evolved Paint Files (.pnt)
//--------------------------------------
// Ark: Survival Evolved Paint Files
// .pnt file extension
//--------------------------------------
// Header
int32 Version <bgcolor=cLtRed>;
int32 SizeX <bgcolor=cLtYellow>;
int32 SizeY <bgcolor=cLtGreen>;
uint32 Revision <bgcolor=cPurple>;
@RadTechDad
RadTechDad / ArkSEPaintFiles.grammar
Last active October 13, 2015 04:22
"Synalize It!" Grammar File for Ark: Survival Evolved Paint Files (.pnt)
<?xml version="1.0" encoding="UTF-8"?>
<ufwb version="1.11.6">
<grammar name="Ark: Survival Evolved Paint Files" start="id:21" author="Darrell Dudics (a.k.a. HoLyCoW)" email="holycowzorz@yahoo.com" fileextension="pnt" complete="yes">
<description>Grammar file for Ark: Survival Evolved Paint files</description>
<structure name="PNT File" id="21" encoding="ISO_8859-1:1987" endian="little" signed="no">
<structure name="Header" id="22" length="16" alignment="1" consists-of="id:21">
<number name="Version" id="23" fillcolor="FF7D78" type="integer" length="4" signed="yes"/>
<number name="SizeX" id="24" fillcolor="FFD478" type="integer" length="4" signed="yes"/>
<number name="SizeY" id="25" fillcolor="FEFC78" type="integer" length="4" signed="yes"/>
<number name="Revision" id="26" fillcolor="D4FB78" type="integer" length="4" signed="yes"/>
@RadTechDad
RadTechDad / BenSmith_Annotations.xml
Last active October 23, 2018 03:06
BenSmith - PHPStorm Live Templates
<templateSet group="BenSmith-Annotations">
<template name="anno" value="/**&#10;* $ANNOTATIONS$&#10;* @return Response&#10;*/" description="Add docblock ready for annotations below" toReformat="false" toShortenFQNames="true">
<variable name="ANNOTATIONS" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="true" />
<option name="HTML" value="true" />
<option name="PHP" value="true" />
</context>
</template>
<template name="@G" value="@Get(&quot;$ROUTE$&quot;, as=&quot;$NAME$&quot;)" description="Get route annotation" toReformat="false" toShortenFQNames="true">
@RadTechDad
RadTechDad / gist:7237168
Created October 30, 2013 18:00
Python3 Daemon class that someone else wrote
"""Generic linux daemon base class for python 3.x."""
import sys, os, time, atexit, signal
class daemon:
"""A generic daemon class.
Usage: subclass the daemon class and override the run() method."""
def __init__(self, pidfile): self.pidfile = pidfile
@RadTechDad
RadTechDad / mostr_replace
Created September 3, 2013 11:16
mostr_replace is a multiple-occurrence string replacement function that will traverse through the haystack until it finds the needle.Once the needle is found, it will replace that occurrence of the needle with the first occurrence of the indexed array.
/**
* mostr_replace is a multiple-occurrence string replacement function
* that will traverse through the haystack until it finds the needle.
* Once the needle is found, it will replace that occurrence of the
* needle with the first occurrence of the indexed array.
*
* @param string $needle The token to look for
* @param string $haystack The string to search
* @param array $replacementArray The array to replace each occurrence of the tokens
* @param integer $offset How far into the search string to start the search
@RadTechDad
RadTechDad / apache_errors
Created August 7, 2013 18:03
Check unlogged Apache errors.
sudo bash -x /usr/sbin/apachectl -k start