Skip to content

Instantly share code, notes, and snippets.

View pmdevita's full-sized avatar

Peter DeVita pmdevita

View GitHub Profile
@TellowKrinkle
TellowKrinkle / NXAEnc.c
Last active October 9, 2022 18:13
NXA encoder (compile with -lopus)
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <getopt.h>
#include <opus/opus.h>
struct NXAHeader {
uint8_t magic[4];
uint32_t version;
@dimkouv
dimkouv / arch-wlan-to-eth.sh
Created August 28, 2017 13:42
Share wifi over ethenet | arch linux
# PC2 <---eth cable--- PC1 <-- ((( wifi )))
# connect as root on PC1
su
# install networkmanager
pacman -S networkmanager
# enable networkmanager and start it
systemctl start NetworkManager
@kylophone
kylophone / loudness.rb
Last active April 24, 2024 20:50
FFmpeg loudnorm filter - dual pass loudness normalization example - http://k.ylo.ph/2016/04/04/loudnorm.html
#!/usr/bin/env ruby
require 'open3'
require 'json'
ffmpeg_bin = '/usr/local/bin/ffmpeg'
target_il = -24.0
target_lra = +11.0
target_tp = -2.0
samplerate = '48k'
@blikenoother
blikenoother / Installing 3rd Party Nginx module with apt-get
Last active May 21, 2023 10:30
Install 3rd party module and build NGINX debian (.deb) package. Following is guide for nginx_upstream_check_module
#Install dpkg-dev and package dependencies
sudo apt-get install dpkg-dev
sudo apt-get install software-properties-common
sudo apt-get install python-software-properties
sudo apt-get install init-system-helpers
#Add repository:
sudo add-apt-repository ppa:nginx/stable
#Edit /etc/apt/sources.list.d/nginx-stable-lucid.list, add dpkg-src (no need if ubuntu verson >= 12.04):