Skip to content

Instantly share code, notes, and snippets.

View lockie's full-sized avatar

Andrew Kravchuk lockie

View GitHub Profile
@lockie
lockie / compressor-max-release-increase.patch
Created October 4, 2021 06:08
OBS compressor max release increase patch
diff --git a/plugins/obs-filters/compressor-filter.c b/plugins/obs-filters/compressor-filter.c
index 1808bd7..7bd617c 100644
--- a/plugins/obs-filters/compressor-filter.c
+++ b/plugins/obs-filters/compressor-filter.c
@@ -49,7 +49,7 @@
#define MIN_OUTPUT_GAIN_DB -32.0
#define MAX_OUTPUT_GAIN_DB 32.0
#define MIN_ATK_RLS_MS 1
-#define MAX_RLS_MS 1000
+#define MAX_RLS_MS 20000
#!/bin/sh
set -ex
ROSWELL_RELEASE_VERSION=21.01.14.108
ROSWELL_TARBALL_PATH=$HOME/roswell.tar.gz
ROSWELL_DIR=$HOME/.roswell
ROSWELL_REPO=${ROSWELL_REPO:-https://github.com/roswell/roswell}
ROSWELL_BRANCH=${ROSWELL_BRANCH:-release}
ROSWELL_INSTALL_DIR=${ROSWELL_INSTALL_DIR:-/usr/local}
ROSWELL_PLATFORMHTML_BASE=${ROSWELL_PLATFORMHTML_BASE:-https://github.com/roswell/sbcl_bin/releases/download/files/sbcl-bin_uri.tsv}
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 5 3600X 6-Core Processor
CPU Family: 0x17
@lockie
lockie / events-pretty.rkt
Created December 30, 2019 16:22
racket-sdl2 prettified events example
#lang racket/base
(require
(prefix-in sdl2: sdl2/pretty)
ffi/unsafe)
(define (main)
(define quit #f)
(define event-ptr
(cast (malloc (ctype-sizeof sdl2:_event)) _pointer sdl2:_event*))
/etc
/etc/env.d
/etc/env.d/10llvm-9990
/usr
/usr/lib
/usr/lib/debug
/usr/lib/debug/usr
/usr/lib/debug/usr/lib
/usr/lib/debug/usr/lib/llvm
/usr/lib/debug/usr/lib/llvm/9
@lockie
lockie / llvm8.txt
Last active October 31, 2019 15:01
/etc
/etc/env.d
/etc/env.d/10llvm-9991
/usr
/usr/lib
/usr/lib/debug
/usr/lib/debug/usr
/usr/lib/debug/usr/lib
/usr/lib/debug/usr/lib/llvm
/usr/lib/debug/usr/lib/llvm/8
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
class Context():
def __enter__(self):
print('__enter__')
def __exit__(self, *args):
print('__exit__')
import matplotlib.pyplot as plt
%matplotlib inline
import numpy as np
%pylab inline
pylab.rcParams['figure.figsize'] = (6, 10)
x = np.linspace() #ваши цифры в скобках
y = # ваш код для функции
plt.plot(x, y);
import numpy as np
np.real(-7 * np.exp(np.pi * 1j + np.log(6)))
def multipliers():
return [lambda x, idx=i: idx * x for i in range(4)]
print([m(2) for m in multipliers()])