Skip to content

Instantly share code, notes, and snippets.

View defmans7's full-sized avatar

DanielVee defmans7

View GitHub Profile
{
"name": "n8n dateTime strategy",
"nodes": [
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
0,
0
{
"name": "Search and load local file",
"nodes": [
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
0,
0
{
"name": "N8N API",
"nodes": [
{
"parameters": {
"operation": "get",
"workflowId": {
"__rl": true,
"value": "={{ $json.workflow_id }}",
"mode": "id"
@defmans7
defmans7 / check-opcache.php
Created April 24, 2025 01:01
Check if Opcache is enabled and show some stats
<?php
header('Content-Type: text/plain');
echo "PHP Version: " . phpversion() . "\n\n";
echo "OPCache Enabled: " . (opcache_get_status() ? "Yes" : "No") . "\n\n";
if (opcache_get_status()) {
$status = opcache_get_status();
$config = opcache_get_configuration();
echo "Memory Usage: " . round($status['memory_usage']['used_memory'] / (1024*1024), 2) . "MB / " .
@defmans7
defmans7 / check-jit.php
Created April 24, 2025 00:59
Verify and check PHP Opcache jit is working
<?php
// Force JIT to engage with a computationally intensive loop
function test_jit() {
$start = microtime(true);
$sum = 0;
for ($i = 0; $i < 10000000; $i++) {
$sum += $i * 0.01;
}
$end = microtime(true);
return [
@defmans7
defmans7 / style.css
Last active June 27, 2024 13:15
Remove / Hide ClickUp AI nags and "suggestions"
/* can be used in Chrome Extension like Stylebot */
cu-task-ai-button,
cu-comment-ai-quick-reply,
cu-content-assistant-list-ai,
cu-content-assistant-fab,
cu-content-assistant-launch-button,
.content-assistant-icon,
.search-modal-toggle__ai-button,
.content-assistant-launch-button__icon,