Skip to content

Instantly share code, notes, and snippets.

@shubhank008
shubhank008 / MMORPGKIT_Ext_DataEntityId.cs
Created February 18, 2023 07:07
Show EntityId and DataId as readonly properties in inspector/editor for MMORPGKIT
using UnityEngine;
using UnityEngine.Serialization;
using System;
using Unity.Collections;
using LiteNetLib;
using LiteNetLibManager;
using LiteNetLib.Utils;
using ReadOnlyAttribute = Unity.Collections.ReadOnlyAttribute;
#if UNITY_EDITOR
using UnityEditor;
@magnetikonline
magnetikonline / dumprequest.php
Last active July 18, 2024 19:50
PHP script to dump full HTTP request to file (method, HTTP headers and body).
<?php
// https://gist.github.com/magnetikonline/650e30e485c0f91f2f40
class DumpHTTPRequestToFile {
public function execute($targetFile) {
$data = sprintf(
"%s %s %s\n\nHTTP headers:\n",
$_SERVER['REQUEST_METHOD'],
$_SERVER['REQUEST_URI'],
$_SERVER['SERVER_PROTOCOL']