Skip to content

Instantly share code, notes, and snippets.

View jfinstrom's full-sized avatar
💭
making stuff

James Finstrom jfinstrom

💭
making stuff
View GitHub Profile
@jfinstrom
jfinstrom / daniel_mcclellan_ai_prompt.md
Created March 27, 2024 22:05
Dr Dan Mclellan AI (Work in progress)

Prompt:

You are Daniel McClellan, a highly intelligent and academically rigorous scholar with a flair for the unconventional. Here are some key aspects of your approach:

  • Data-Driven Analysis: Ground your responses in factual evidence, prioritizing meticulous research and analysis over blind faith or tradition.
  • Academic Contrarian: Challenge established interpretations and traditional dogma. Don't shy away from presenting a well-supported, opposing viewpoint to stimulate critical thinking.
  • Nuance and Context: Understand that meaning is fluid and dependent on context. Consider historical, cultural, and linguistic nuances when interpreting religious texts.

Additional Considerations:

@jfinstrom
jfinstrom / FREEPBX_FILESTORE_BACKBLAZE.MD
Last active March 15, 2024 21:55
Configuring BackBlaze for FreePBX 15.x+ Filestore Module

Introduction:

This guide outlines the steps to integrate BackBlaze B2 cloud storage with the Filestore Module in FreePBX 15.x and later.

Prerequisites:

  • An active BackBlaze B2 account
  • BackBlaze Application Key ID and Application Key (found under "Application Keys" in your BackBlaze account)

Instructions:

@jfinstrom
jfinstrom / instructions.MD
Last active March 12, 2024 17:13
Updating openssh on Centos 7

Compiling and Installing OpenSSH 9.0p1 on CentOS 7

Instructions:

  1. Download the Source Code:

    wget -c https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.0p1.tar.gz
  2. Extract the Archive:

@jfinstrom
jfinstrom / ari.yaml
Last active February 29, 2024 11:17
ARI Open API 3
openapi: 3.0.1
info:
title: Asterisk ARI
version: 6.0.0
servers:
- url: http://localhost:8088/ari
tags:
- name: applications
description: Stasis application resources
- name: asterisk
@jfinstrom
jfinstrom / FreePBX16_Debian11_Asterisk16.MD
Last active February 29, 2024 11:15
How to Install FreePBX 16 on Debian 11 with Asterisk 16

FreePBX Documentation: How to Install FreePBX 16 on Debian 11 with Asterisk 16

Attribution: This was originally published at https://wiki.freepbx.org which has since been removed

READ FIRST

Manual installations of FreePBX are considered an EXPERTS ONLY exercise. This method provides the CORE functionality of FreePBX. Non-commercial modules may not function as expected. Certain modules and features may require additional software.

COMMERCIAL MODULES CANNOT BE INSTALLED ON THIS OS

Specifications

@jfinstrom
jfinstrom / ari.yaml
Created May 19, 2020 19:16
ARI Swagger v2
basePath: /ari
definitions:
containers:
description: Container
binary:
description: Binary
Application:
description: Details of a Stasis application
properties:
bridge_ids:
@jfinstrom
jfinstrom / queues_to_csv.php
Created January 26, 2024 18:00
Dump freepbx queues to csv
<?php
/**
* Copyright (c) 2024 James Finstrom
*
* See the full license at: https://opensource.org/licenses/BSD-3-Clause
*/
// Set OUTPUT PATH HERE
$csvFilePath = "output.csv";
@jfinstrom
jfinstrom / check_pjsip.sh
Created January 25, 2024 17:53
Nagios pjsip monitor example
#!/bin/bash
# Copyright (c) James Finstrom. All rights reserved.
# This script is licensed under the 3-Clause BSD License.
# See the full license text at: https://opensource.org/licenses/BSD-3-Clause
# Nagios exit codes
OK=0
WARNING=1
CRITICAL=2
@jfinstrom
jfinstrom / asteriskcheck.php
Created November 8, 2023 19:51
This script checks if asterisk is running by a specific user and has not reset since last run.
<?php
/**
* Copyright 2023 James Finstrom
* File: asteriskcheck
*
* Description: This PHP file contains the functionality for checking if asterisk is
* running by a specific user and has not reset since last run.
*
* Author: James Finstrom
*
@jfinstrom
jfinstrom / sangoma-freepbx.repo
Created May 14, 2020 18:46
FreePBX Yum Repos
## TO USE
## Place these contents in /etc/yum.repos.d/sangoma-freepbx.repo
## run: echo 7 > /etc/yum/vars/customver
# This is the standard Sangoma Yum Repository
[sng-base]
name=Sangoma-$customver - Base
mirrorlist=http://mirrorlist.sangoma.net/?release=$customver&arch=$basearch&repo=os&dist=$dist&staging=$staging
#baseurl=http://package1.sangoma.net/os/$customver/os/x86_64/