Skip to content

Instantly share code, notes, and snippets.

tmatth / nginx-lang.lua
Created October 30, 2019 19:37 — forked from mauron85/nginx-lang.lua
Detect preferred language script for Nginx written in LUA
View nginx-lang.lua
-- HTTP Accept-Language header handler --
-- @originalAuthor: --
-- @originalRepository:
-- @modifiedBy: --
-- @gist: --
-- @license: MIT --
-- @requires: --
-- @description: --
-- returns language with greatest quality --
fn pcm_soft_clip(pcm: &mut [f32], nb_samples: i32, nb_channels: i32, declip_mem: &mut [f32]) {
if nb_samples < 1 || nb_channels < 1 {
/* First thing: saturate everything to +/- 2 which is the highest level our
non-linearity can handle. At the point where the signal reaches +/-2,
the derivative will be zero anyway, so this doesn't introduce any
discontinuity in the derivative. */
View Fuzz testing

Fuzz Testing Daala

A place where I can keep notes on fuzz testing daala (adapted from )

16:50:05         radens | Do you guys run fuzz testers on daala? I was playing around with afl-fuzz
                        | today and was thinking of the recent android bug.
16:53:38      +TD-Linux | radens, no, and we should
16:54:03      +TD-Linux | tons of fuzzing was done on opus, though.
16:54:13         radens | if I wanted to play around with that how would you suggest I get started?

Keybase proof

I hereby claim:

  • I am tmatth on github.
  • I am tmatth ( on keybase.
  • I have a public key whose fingerprint is D89B 52F4 A6B5 0589 0349 ED5E 127B 10EE D876 5B47

To claim this, I am signing this object:

View gist:f2b7c191bf2925e823d3
<?xml version="1.0" encoding="UTF-8"?>
<kcfg xmlns=""
xsi:schemaLocation="" >
<kcfgfile name="ringconfigrc"/>
<!--TODO VoipPreferences is a very bad name-->
Let's drop VoipPreferences...this is like the 3rd time that I'm left scratching my head by this.
View vtable.cpp
#include <cstdio>
struct Alice
virtual void func()
View Linux.h
// Simple GNU/Linux OpenGL framework for implementing:
// Instructions:
// 1) Add the following to Timestep.cpp:
// #include "Linux.h"
// 2) Compile with:
// g++ -O2 -g -D__LINUX__ Timestep.cpp -o timestep -lglut -lGL -lGLU -lrt