Skip to content

Instantly share code, notes, and snippets.

@kmix
kmix / OpenSSL_Weak_Ciphers.md
Last active March 19, 2025 21:42
OpenSSL w/ Weak Ciphers Enabled

In order to support weak ciphers for legacy device connectivity, it may be necessary to compile OpenSSL with the enable-weak-ssl-ciphers flag enabled.

For Ubuntu systems, I've created a PPA to allow package management via APT instead of building from source on each system.

Currently, there are packages for 18.04 (Bionic Beaver), 20.04 (Focal Fossa), 22.04 (Jammy Jellyfish), ahd 24.04 (Noble Numbat):

https://launchpad.net/~kmix/+archive/ubuntu/openssl

There are instructions for adding the PPA on the Launchpad page. To hold a package at a certain version (so that a newer distribution package doesn't overwrite it), you can hold the package at a certain version:

@kmix
kmix / textract.py
Created June 12, 2024 04:31
Python Script to Extract Text from Single Page PDF via AWS Textract
import sys
import os
import boto3
if (len(sys.argv) == 1):
print("A filename is required as an argument")
sys.exit(1)
elif (len(sys.argv) > 2):
print("Only one filename can be passed as an argument")
sys.exit(1)
@kmix
kmix / compile-and-install-freeswitch-1.10.x-on-ubuntu-24.04.md
Last active April 11, 2025 08:57
Install FreeSWITCH 1.10.x on Ubuntu 24.04 LTS

Installing FreeSWITCH 1.10.11 on Ubuntu 24.04 LTS

Based on https://gist.github.com/cyrenity/96cc1ad7979b719b1c684f90aa0f526d with the following changes:

  • Updated for Ubuntu 24.04
  • Doesn't install the signalwire client
  • Doesn't install mod_av

Introduction

FreeSWITCH is a software defined telecom stack that runs on any commodity hardware. FreeSWITCH can handle voice, video, and text communication and support all popullar VoIP protocols. FreeSWITCH is flexible and modular, and can be used in any way you can imagine.

@kmix
kmix / mvn_install.sh
Last active March 11, 2022 20:39
Maven Install Script for Debian
#!/bin/bash
if [ $# -eq 0 ]; then
echo "No version was provided!"
echo -e "\nUsage: mvn_install <version> (e.g. mvn_install 3.8.1)\n"
exit 1
fi
if [ -x "$(command -v java)" ]; then
echo "Java executable found in path"
@kmix
kmix / SlackWordnikBot.py
Created May 12, 2017 02:37
Simple Wordnik Slackbot (Deployed via AWS Lambda to implement define & synonym slash commands)
import boto3
import json
import logging
import os
import socket
import urllib2
from base64 import b64decode
from urlparse import parse_qs
@kmix
kmix / listcoms.bat
Last active February 17, 2022 22:59
List Windows COM Ports
powershell -Command "Get-WMIObject Win32_PnPEntity | Select-Object -Property Caption | Where-Object {$_.Caption -like '*(COM*'}"
@kmix
kmix / SlackNetBot.py
Last active May 1, 2017 23:46
Simple Network Slackbot (Deployed via AWS Lambda)
import boto3
import json
import logging
import os
import socket
import urllib2
from base64 import b64decode
from urlparse import parse_qs