Skip to content

Instantly share code, notes, and snippets.

View lockie's full-sized avatar

Andrew Kravchuk lockie

View GitHub Profile
@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
/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 / 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*))
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
#!/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}
@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
@lockie
lockie / client.c
Last active January 30, 2025 14:08
/* compilation: gcc -o client client.c -lssl -lcrypto */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <openssl/bio.h> /* BasicInput/Output streams */
#include <openssl/err.h> /* errors */
#include <openssl/ssl.h> /* core library */
#define BuffSize 1024
@lockie
lockie / mwe.c
Last active September 8, 2022 13:41
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include "curl/curl.h"
#define OUTPUTFILE "download"
#define URL "https://http2-server-push-demo.keksi.io"
static bool setup(CURL* hnd)
{
/* See LICENSE file for copyright and license details. */
/*
* appearance
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
static char *font = "Terminess Powerline:pixelsize=24:antialias=true:autohint=true";
static int borderpx = 2;