Skip to content

Instantly share code, notes, and snippets.

View GabrieleRisso's full-sized avatar
👽

exitcode0 GabrieleRisso

👽
View GitHub Profile
@bmatthewshea
bmatthewshea / sox-vox.sh
Created June 3, 2020 21:22
Sound activated recording using SOX
#!/bin/bash
tempfile1=/tmp/temp.mp3
# Baremetal/Realtek analog etc
AUDIODEV=hw:0,0
# Pi USB mic (usually):
# AUDIODEV=hw:1,0
set_filenames () {
NAME=`date +%Y-%m-%d_%H-%M-%S`
@ferenczy
ferenczy / vimium-solarized-dark-theme.css
Last active August 25, 2021 13:50
A color theme for famous Chrome extension Vimium by Phil Crosby based on also famous Ethan Schoonover's Solarized Dark color palette.
/***
*
* Solarized Dark theme for Vimium
* © Dawid Ferenczy 2018
*
* A color theme for famous Chrome extension Vimium by Phil Crosby based on also famous
* Ethan Schoonover's Solarized Dark color palette.
* https://github.com/philc/vimium
* https://ethanschoonover.com/solarized/#the-values
*
@Sean-Der
Sean-Der / Dockerfile
Last active May 7, 2024 16:47
GStreamer AV1 Dockerfile and example pipeline
FROM debian:sid
ENV DISPLAY :0
RUN echo 'deb http://mirrors.kernel.org/debian/ sid main contrib non-free\n\
deb-src http://mirrors.kernel.org/debian/ sid main contrib non-free\n'\
>> /etc/apt/sources.list
RUN apt-get -y update
RUN apt-get -y install git build-essential bison flex cmake
RUN apt-get -y build-dep gstreamer1.0-libav gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly
@Brainiarc7
Brainiarc7 / skylake-tuning-linux.md
Last active March 30, 2024 16:01
This gist will show you how to tune your Intel-based Skylake, Kabylake and beyond Integrated Graphics Core for performance and reliability through GuC and HuC firmware usage on Linux.

Tuning Intel Skylake and beyond for optimal performance and feature level support on Linux:

Note that on Skylake, Kabylake (and the now cancelled "Broxton") SKUs, functionality such as power saving, GPU scheduling and HDMI audio have been moved onto binary-only firmware, and as such, the GuC and the HuC blobs must be loaded at run-time to access this functionality.

Enabling GuC and HuC on Skylake and above requires a few extra parameters be passed to the kernel before boot.

Instructions provided for both Fedora and Ubuntu (including Debian):

Note that the firmware for these GPUs is often packaged by your distributor, and as such, you can confirm the firmware blob's availability by running:

@kewitz
kewitz / VimiumTheme.css
Created January 13, 2017 16:34
Vimium Black Monospace theme.
/*
Installation:
1. Right Click on the Vimium icon
2. Select "Options"
3. On the footer, click on "Show Advanced Options"
4. Paste this inside "CSS for link hints" textbox
5. On the footer, click on "Save Changes"
*/
div > .vimiumHintMarker {
background: #000;
@jasonlong
jasonlong / vimium-styling.md
Last active January 29, 2024 21:37
Nicer Vimium link hint styling. What's Vimium? See http://vimium.github.io. This awesome yellow is courtesy of @mrmrs colors: http://clrs.cc.