Skip to content

Instantly share code, notes, and snippets.

@ergoz
ergoz / radiolisten.lua
Created April 2, 2025 00:50 — forked from EasyBB1/radiolisten.lua
Radio Station listening for Freeswitch
-- Radio Station listening for Freeswitch
--
-- Dial Plan format
-- condition ^\*55(\d{2})$
-- action lua radiolisten.lua $1 shout (Argument 'shout' is optional)(You'll need mod_shout installed and loaded)
-- OR
-- action lua radiolisten.lua $1 vlc (Argument 'vlc' is optional)(If specified, you'll need mod_vlc installed and loaded)
--
-- radiostations.txt (see below for file format)
-- # Radiostation name
@ergoz
ergoz / conference.conf.xml
Created March 31, 2025 13:03 — forked from thehunmonkgroup/conference.conf.xml
ClueCon talk 2016 - Videoconferencing with Verto, example code/config/links/slides
<configuration name="conference.conf" description="Audio Conference">
<!-- Other conference config... -->
<profiles>
<profile name="video-mcu-stereo">
<!-- Other profile config... -->
<!-- Mux the inbound video streams into one outbound stream. -->
<param name="video-mode" value="mux"/>
<!-- Enable the live array, minimize outbound video encoding. -->
<param name="conference-flags" value="livearray-sync|livearray-json-status|minimize-video-encoding"/>
<!-- Use this video layout by default if no other is specified. -->
@ergoz
ergoz / conference.conf.xml
Created March 31, 2025 13:03 — forked from thehunmonkgroup/conference.conf.xml
ClueCon talk 2016 - Videoconferencing with Verto, example code/config/links/slides
<configuration name="conference.conf" description="Audio Conference">
<!-- Other conference config... -->
<profiles>
<profile name="video-mcu-stereo">
<!-- Other profile config... -->
<!-- Mux the inbound video streams into one outbound stream. -->
<param name="video-mode" value="mux"/>
<!-- Enable the live array, minimize outbound video encoding. -->
<param name="conference-flags" value="livearray-sync|livearray-json-status|minimize-video-encoding"/>
<!-- Use this video layout by default if no other is specified. -->
<?xml version="1.0"?>
<document type="freeswitch/xml">
<X-PRE-PROCESS cmd="set" data="local_address=$${local_ip_v4}"/>
<X-PRE-PROCESS cmd="set" data="sipnet_proxy=sipnet.ru"/>
<X-PRE-PROCESS cmd="set" data="sipnet_login=..."/>
<X-PRE-PROCESS cmd="set" data="sipnet_password=..."/>
<X-PRE-PROCESS cmd="set" data="sound_prefix=$${sounds_dir}/en/us/callie"/>
@ergoz
ergoz / convert-image.psm1
Created March 30, 2025 22:44 — forked from midoriiro/convert-image.psm1
Convert OCI image to LXC format
Function Convert-Image
{
Param (
[Parameter(Mandatory = $true)]
[string]$Name,
[Parameter(Mandatory = $true)]
[string]$Tag,
[Parameter(Mandatory = $false)]
@ergoz
ergoz / Spamassassin rules description
Created March 18, 2025 23:34 — forked from ychaouche/Spamassassin rules description
Spamassassin rules description
1 AC_BR_BONANZA Too many newlines in a row... spammy template
2 ACCESSDB Message would have been caught by accessdb
3 ACCT_PHISHING_MANY Phishing for account information
4 AC_DIV_BONANZA Too many divs in a row... spammy template
5 AC_FROM_MANY_DOTS Multiple periods in From user name
6 AC_HTML_NONSENSE_TAGS Many consecutive multi-letter HTML tags, likely nonsense/spam
7 AC_POST_EXTRAS Suspicious URL
8 AC_SPAMMY_URI_PATTERNS10 link combos match highly spammy template
9 AC_SPAMMY_URI_PATTERNS11 link combos match highly spammy template
10 AC_SPAMMY_URI_PATTERNS12 link combos match highly spammy template
@ergoz
ergoz / install_pyenv_mac_zsh.rst
Created March 4, 2025 03:07 — forked from josemarimanio/install_pyenv_mac_zsh.rst
Installing pyenv on macOS for Zsh using Homebrew
@ergoz
ergoz / clone_gitlab_repos.sh
Created February 27, 2025 12:19 — forked from sizgiyaev/clone_gitlab_repos.sh
Clone all gitlab repos from the given organization
#!/usr/bin/env bash
# Documentation
# https://docs.gitlab.com/ce/api/projects.html#list-projects
NAMESPACE="orgname"
BASE_PATH="gitlab_url"
PROJECT_SEARCH_PARAM=""
PROJECT_SELECTION="select(.namespace.name == \"$NAMESPACE\")"
@ergoz
ergoz / aria2-trackers-update
Created February 26, 2025 10:41 — forked from HaleTom/aria2-trackers-update
Update aria2.conf with 20 "best" BitTorrent trackers
#!/bin/bash
# Update the bt-tracker= line in aria2.conf
# Any bt-tracker= lines are removed and and a new one added at the bottom of the file
# Updates at: https://gist.github.com/HaleTom/fe873dc2f3c5bd14f7418efefc2b91a8
# Inspiration: https://github.com/wuyuansushen/aria2c_TrackersList
set -euo pipefail
shopt -s failglob
@ergoz
ergoz / Install Windows Subsystem for Android on any Edition of Windows 11 non Insider.md This Guide will show you how to Install Windows Subsystem for Android or WSA on any Edition of Windows 11 non Insider release.

Install Windows Subsystem for Android on Windows 11 non Insider

WSA or Windows Subsystem for Android is a Tool that allows Windows to run Android Apps directly without using any emulator. The problem is Windows Subsystem for Android is currently only available through preview via the Beta Channel of the Windows Insider Program. But if you follow this guide, you don't have to be in Windows Insider Program to try it out. The only thing you need is Windows 11 installed and some patience.

Prerequisites:

  • A Device with any version and Edition of Windows 11 installed.
  • Internet Connection.
  • Hyper-V enabled.

Enable Hyper-V: