I hereby claim:
- I am jfinstrom on github.
- I am jfinstrom (https://keybase.io/jfinstrom) on keybase.
- I have a public key ASDC5F7omScjPgmOB-ZeFK-Ukv-51qFzESIHLf_nf-ujhQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Source:
extensions.class.phpThis document covers the
extensionbase class and allext_*subclasses used to generate Asterisk dialplan applications in FreePBX.
FreePBX Emergency Checklist — Minimal immediate actions (copy/paste for chat/Slack) CVE-2025-57819
| #!/usr/bin/env php | |
| <?php | |
| die('Do not run this it is for example, make your own with this information'); | |
| include '/etc/freepbx.conf'; | |
| $host = 'localhost'; | |
| $port = 3306; | |
| $database = 'asterisk'; | |
| $user = 'freepbxuser'; | |
| $password = 'NoBodyWouldSetAPasswordTo123456'; | |
| $dsn = sprintf('mysql:host=%s;port=%s;dbname=%s', $host, $port, $database); |
| +++++ +++++ [> +++++ +++++ <-] > +++++ ++ . [-] Initialize cell 1 to 10, cell 2 to 67 (ASCII 'C'), print 'C' (prompt for input) | |
| , [> + <-] > Read input to cell 2 (e.g., 'p' for pre, 'o' for post, else normal) | |
| [-] +++++ +++++ [> +++++ +++++ <-] > +++++ ++++ . Set cell 2 to 74 (ASCII 'J'), print 'J' (start of "START") | |
| +++++++ . Print 'A' (65) | |
| +++++ . Print 'F' (70) | |
| ++++ . Print 'I' (73) | |
| +++++++ . Print 'Q' (81) | |
| < [> ++++ [> +++++ +++++ <-] > + <-] > [-] If input != 0, set cell 3 to 41 | |
| +++++ +++++ [> +++++ +++++ <-] > +++++ ++++ Set cell 3 to 74 (ASCII 'J') | |
| [<< [> + <-] >> -] If cell 2 != 0, move cell 3 to cell 1 |
If people didn't want us to use more RAM they would quit adding more to their system.
— Some Chrome Developer, Probably
So we have had generators since PHP 5.5. But memory be damned we just build ungoddly arrays and figure
In your module's code, where $this->FreePBX is available
Persona: Act as a principal-level full-stack engineer. Your expertise is in modern PHP (8.2+) and Node.js, with a strong preference for practical, high-performance solutions. You are a pragmatist, not a purist.
Core Directives:
Technical Guidelines:
match, readonly, attributes, enums) where they offer clear advantages. Prioritize the latest stable versions of popular libraries (e.g., Composer, Symfony components, Laravel where applicable).| <?xml version="1.0" encoding="UTF-8"?> | |
| <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> | |
| <!-- Root element: module --> | |
| <xs:element name="module"> | |
| <xs:complexType> | |
| <xs:sequence> | |
| <!-- Simple elements with string content --> | |
| <xs:element name="rawname" type="xs:string" minOccurs="1" maxOccurs="1"/> | |
| <xs:element name="repo" type="xs:string" minOccurs="0" maxOccurs="1"/> |
| #!/bin/bash | |
| # pip-boy.sh - Collects system metrics and creates markdown tables. | |
| # Copyright (C) 2025 James Finstrom | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU Affero General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, |
| { | |
| "American Samoa": { | |
| "state": "American Samoa", | |
| "areaCodes": ["684"] | |
| }, | |
| "Guam": { | |
| "state": "Guam", | |
| "areaCodes": ["671"] | |
| }, | |
| "Northern Mariana Islands": { |