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
- routeTemplate: /testing/(?<extra>.+) | |
hostname: "*" | |
statusCode: 200 | |
method: "*" | |
templateVariables: | |
clientIpExpr: "{{query.noIp | setVarBatchConditional clientIp string ${value_} ne true then ${ip_}; _ _ _ default [value not shown]}}" | |
body: | |
{ | |
"message": "test response!", | |
"tip": "set __debug_response to view raw yaml rule. set query.noIp to mask your IP address", |
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
#define FX_125 | |
namespace com.mfdlabs.ba.authentication.server; | |
/* | |
This handles authentication initialization for the packet session. | |
*/ |
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
using System; | |
using System.Threading; | |
using MFDLabs.Logging; | |
using Microsoft.Ccr.Core; | |
namespace MFDLabs.Concurrency.Base | |
{ | |
/// <summary> | |
/// WORK IN PROGRESS DO NOT USE IN PROD!!! | |
/// </summary> |
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
four_or_less_integer_parameters: | |
; our function to call: | |
; blah(int, int, int, int) | |
; allocate space for the 4 home volatile registers (rcx, rdx, r8 and r9) and aling to 16 bytes. | |
sub rsp, 0x28 | |
; move your argument from left to right into registers | |
mov r9d, 0x10 |
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
// This caluculates the smallest CIDR block that can be used to cover the given IP range. | |
package main | |
import ( | |
"flag" | |
"fmt" | |
"net" | |
) | |
var startIp = flag.String("start", "", "Start IP address") |
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
/* BA Client FxV103 Migrations, this is quite volatile right now, it won't be shipped until everyting is finalized. */ | |
// written by: cj_7 because I'm lazy | |
// date: 05/11/2021 | |
// TODO: fix something with mutables | |
// moved from https://git.mfdlabs.local/mfdlabs/ba/blob/master/src/lib/players/automod.fx | |
// nothing much has changed, but it's a lot of work to make it work with the new system. | |
#use FX 103 |