Skip to content

Instantly share code, notes, and snippets.

View mark05e's full-sized avatar

mark05E mark05e

View GitHub Profile

Incontact DB Connector Notes

Windows Service Information

function Get-DBCServiceInformation {
    $DisplayName = "Incontact"

    # Check if running PowerShell 5 or earlier
    if ($PSVersionTable.PSVersion.Major -le 5) {
        # Get all services that match the display name using Get-WmiObject
@mark05e
mark05e / Execute-FFmpeg.ps1
Last active January 14, 2025 15:19
Audio Conversion script for low-bandwidth, telephony-related audio conversions
<#
.SYNOPSIS
Executes the FFmpeg command to convert an input file to a specified audio format.
.DESCRIPTION
This function converts a given input file to the specified audio format using the FFmpeg command-line tool.
It allows customization of audio parameters such as sampling rate, channels, bitrate, and codec.
.PARAMETER InputFile
The path to the input file.

Extract Base Url

FUNCTION extract_base_url(input_url)
{
  // Split the input URL by protocol ("://")
  url_components = input_url.split("://")

  // Check if the split resulted in at least two parts (protocol and domain)
  IF (url_components.count() >= 2) 
  {
@echo off
:: Display the full path of this batch file for debugging
:: echo Debug: Batch file path: %~f0
:: Get the full path of this batch file
set "batchFilePath=%~f0"
:: Get the base name (without extension) of the batch file
set "baseName=%~n0"
:: echo Debug: Base name of batch file: %baseName%
@mark05e
mark05e / wealthsimple-transaction-for-ynab.user.js
Created December 29, 2024 21:15 — forked from shotasenga/wealthsimple-transaction-for-ynab.user.js
Export transactions from Wealthsimple to a CSV file for YNAB import
// ==UserScript==
// @name Export Wealthsimple transactions to CSV for YNAB
// @namespace https://shotasenga.com/
// @version 2024090300
// @description Export transactions from Wealthsimple to a CSV file for YNAB import
// @author Shota Senga
// @match https://my.wealthsimple.com/app/activity*
// @icon https://www.google.com/s2/favicons?sz=64&domain=wealthsimple.com
// @grant none
// ==/UserScript==

Extracting Custom Font Icons: A Step-by-Step Guide

Summary

This guide outlines the process of extracting custom font icons from a font file (EV-IVR--Script-Studio) using FontForge. With the assistance of Meta AI, we successfully extracted the required icons in SVG format.

Steps Taken

Step 1: Inspect Element and Identify Font Family

Exploring Available Certificate Authorities in AWS Lambda

Analysis of the Certificate Authorities accessible within AWS Lambda.

Instructions

winget install -e --id Git.Git

winget install -e --id=Python.Python.3.13

winget install -e --id Microsoft.VisualStudioCode

winget install -e --id Microsoft.PowerShell

# Get all files in the current directory, excluding the output file
Get-ChildItem -File | Where-Object {$_.Name -ne "file_contents.txt"} | ForEach-Object {
# Print the filename
"Filename: $($_.Name)"
# Print the file contents
"Contents:"
Get-Content -Path $_.FullName
"------------------------"
} | Out-File -FilePath "file_contents.txt" -Encoding utf8