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
<?php | |
declare(strict_types=1); | |
trait SafeUnserialize | |
{ | |
public function __wakeup(): void | |
{ | |
$rc = new \ReflectionClass(self::class); | |
/** @var array<string, \ReflectionParameter> $constructorParameters */ |
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
local proxy = { | |
__metatable = false, | |
__newindex = function () | |
error("Can't write to proxy table!") | |
end, | |
__index = function(table, key) |
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
local prefix = 'profileTest' | |
local value = math.random() | |
local function testFunction(a, b) | |
return a + b | |
end | |
local function differences(t, start) |
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
--[[ BEGIN LIBRARY CODE ]]-- | |
local libraries = {} | |
local queue = {} | |
local function assertString(param) | |
if type(param) ~= 'string' then | |
error(string.format("Expected string got %s", type(param))) |
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
/run flyticker = C_Timer.NewTicker(5, function() for i=1,40 do local n,_,_,_,_,_,_,_,_ = UnitBuff("player", i); if n == "Rallying Cry of the Dragonslayer" then print("Flying"); TakeTaxiNode(9); flyticker:Cancel(); return; end; end; print("W8"); end, 999) | |
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
# Inspired by https://blogging.dragon.org.uk/start-stop-virtualbox-with-systemd/ | |
[Unit] | |
Description=Virtual Box Guest %I | |
After=network.target virtualbox.service zfs-volume-wait.service | |
Before=runlevel2.target shutdown.target | |
[Service] | |
User=root | |
Group=root |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<template id="worker"> | |
<script> | |
if (typeof self.document === 'undefined') { | |
self.addEventListener('message', async e => { | |
let id = e.data.id; | |
let data = e.data.data; | |
let result = await handleMessage(data); | |
self.postMessage({id, result}); |
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
{ | |
"ignoreSslErrors": true, | |
"localToRemoteUrlAccessEnabled": true, | |
"webSecurityEnabled": false | |
} |
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
{ | |
"ignoreSslErrors": true, | |
"localToRemoteUrlAccessEnabled": true, | |
"webSecurityEnabled": false | |
} |
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
{ | |
pages: [ | |
{ | |
name: "page1", | |
elements: [ | |
{ | |
type: "comment", | |
name: "question1" | |
}, | |
{ |
NewerOlder