Skip to content

Instantly share code, notes, and snippets.

View thebluesnevrdie's full-sized avatar

Cody Crawford thebluesnevrdie

View GitHub Profile
@thebluesnevrdie
thebluesnevrdie / install_pycharm.sls
Created September 21, 2023 18:23
Install JetBrains PyCharm Community Edition for Linux using Saltproject (Salt)
# -*- coding: utf-8; mode:yaml; tab-width:2; indent-tabs-mode:nil; -*-
# vim: syntax=yaml ts=2 sw=2 sts=2 et si ai
# See: https://www.jetbrains.com/pycharm/download/other.html
{% set version = "2023.2.1" %}
{% set filename = "pycharm-community-" + version + ".tar.gz" %}
{% set dl_link = "https://download.jetbrains.com/python/" + filename %}
{% set hash_link = dl_link + ".sha256" %}
Extract PyCharm Archive:
@thebluesnevrdie
thebluesnevrdie / gen-ssh-keys.py
Created September 20, 2023 01:11
Generate ed25515 OpenSSH keys with Python3 cryptography library
#! /usr/bin/env python3
from cryptography.hazmat.primitives.asymmetric import rsa, ed25519
from cryptography.hazmat.primitives import serialization, hashes
private_key = ed25519.Ed25519PrivateKey.generate()
public_key = private_key.public_key()
our_private = private_key.private_bytes(
encoding=serialization.Encoding.PEM,

Installing FreeSWITCH 1.10.6 on Ubuntu 18.04 | Ubuntu 20.04 LTS

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

This guide demonstrates how to get it install FreeSWITCH and get it up and running on a Ubuntu 20.04 LTS machine

Prerequisites

To follow along with this guide, you need one Ubuntu 20.04 LTS server which has prerequisite packages installed and configured. In order to install required packages issue the following command:

@thebluesnevrdie
thebluesnevrdie / gist:6f1f9c17d0df1d2fe0e3
Last active August 29, 2015 14:01
saltstack issue #13026 debug output
root@vagrant-debian-wheezy64:/home/vagrant# salt-call -l debug state.highstate
[DEBUG ] Reading configuration from /etc/salt/minion
[INFO ] Using cached minion ID from /etc/salt/minion_id: vagrant-debian-wheezy64.vagrantup.com
[DEBUG ] Configuration file path: /etc/salt/minion
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Loaded localemod as virtual locale
[DEBUG ] Loaded groupadd as virtual group
[DEBUG ] Loaded linux_sysctl as virtual sysctl
[DEBUG ] Loaded debian_ip as virtual ip
[DEBUG ] Loaded parted as virtual partition