Skip to content

Instantly share code, notes, and snippets.

View amavlyanov's full-sized avatar
🐧

Andrey Mavlyanov amavlyanov

🐧
View GitHub Profile
@skobkin
skobkin / 00-focusrite-scarlett-18i20gen3-remap.pa
Last active June 21, 2023 15:35
PipeWire and PulseAudio channel remapping for Focusrite 18i20 gen3
# <other parts of the configuration removed>
# Remapping Focusrite IO for separate use
# Inputs
# https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#module-remap-source
load-module module-remap-source source_name=18i20-in-1 source_properties="device.description='18i20 Input 1'" master=alsa_input.usb-Focusrite_Scarlett_18i20_USB_P92XEEZ9A04D41-00.multichannel-input remix=no channels=1 master_channel_map=front-left channel_map=mono
load-module module-remap-source source_name=18i20-in-2 source_properties="device.description='18i20 Input 2'" master=alsa_input.usb-Focusrite_Scarlett_18i20_USB_P92XEEZ9A04D41-00.multichannel-input remix=no channels=1 master_channel_map=front-right channel_map=mono
load-module module-remap-source source_name=18i20-in-3 source_properties="device.description='18i20 Input 3'" master=alsa_input.usb-Focusrite_Scarlett_18i20_USB_P92XEEZ9A04D41-00.multichannel-input remix=no channels=1 master_channel_map=rear-left channel_map=mono
load-module module-remap-sourc
@serac
serac / ossl-ciphers-to-java.py
Created September 9, 2016 13:10
Convert OpenSSL TLS Cipher String to Java Cipher List
#!/usr/bin/env python
import sys
from os.path import basename
from subprocess import Popen, PIPE
"""Map of OpenSSL symmetric cipher names to cipher/block size tuples."""
CIPHERS={
'AES': ('AES', 128),
'AES128': ('AES', 128),