Skip to content

Instantly share code, notes, and snippets.

View cgrinham's full-sized avatar
🏠
Working from home

Christie Grinham cgrinham

🏠
Working from home
View GitHub Profile
@cgrinham
cgrinham / area_codes.json
Created August 15, 2025 14:22
UK Phone Area Codes
{
"0113": "Leeds",
"0114": "Sheffield",
"0115": "Nottingham",
"0116": "Leicester",
"0117": "Bristol",
"0118": "Reading",
"01200": "Clitheroe",
"01202": "Bournemouth",
"01204": "Bolton",
@cgrinham
cgrinham / lnav_asterisk.json
Last active August 14, 2025 12:48
lnav format file for asterisk
{
"$schema": "https://lnav.org/schemas/format-v1.schema.json",
"asterisk": {
"title": "Asterisk full log",
"description": "Parses Asterisk 'full' logs with fractional seconds, optional call-id, thread id, module, and body.",
"file-type": "text",
"file-pattern": ".*/asterisk/full.*",
"ordered-by-time": true,
"timestamp-format": ["%Y-%m-%d %H:%M:%S.%f"],
@cgrinham
cgrinham / vicidial_python.py
Last active August 31, 2022 12:51
Vicidial Python Wrapper
import os
import requests
SERVER_URL = os.getenv("VICIDIAL_SERVER_URL", "")
USER = os.getenv("VICIDIAL_USER", "")
PASSWORD = os.getenv("VICIDIAL_PASSWORD", "")
HTTP_PROXY = os.getenv("HTTP_PROXY", "")
HTTPS_PROXY = os.getenv("HTTPS_PROXY", "")