Skip to content

Instantly share code, notes, and snippets.

View ScottDillman's full-sized avatar
🏠
Working in ways that dramatically strain or break gestalt and abstraction.

Scott Dillman ScottDillman

🏠
Working in ways that dramatically strain or break gestalt and abstraction.
View GitHub Profile
@cryzed
cryzed / fix-infinality.md
Last active March 4, 2026 20:22
A set of instructions on how to fix the harfbuzz + Infinality issue and restoring good-looking, Infinality-like font rendering.

Disclaimer: Please follow this guide being aware of the fact that I'm not an expert regarding the things outlined below, however I made my best attempt. A few people in IRC confirmed it worked for them and the results looked acceptable.

Attention: After following all the steps run gdk-pixbuf-query-loaders --update-cache as root, this prevents various gdk-related bugs that have been reported in the last few hours. Symptoms are varied, and for Cinnamon the DE fails to start entirely while for XFCE the icon theme seemingly can't be changed anymore etc.

Check the gist's comments for any further tips and instructions, especially if you are running into problems!

Screenshots

Results after following the guide as of 11.01.2017 13:08:

@notalentgeek
notalentgeek / file_type_sorter.py
Last active March 4, 2024 13:47
My Python script to sort file based on its MIME type into separate folders.
# This is a Python script that let you arrange
# files into a folder for each extension. Actually
# I lied, this script is not about file extension
# but about a file's mime type. So, in case there
# are files that has no extension this script can
# predict what the file's extension could be.
# However, the only requirement is that file need
# to be able to be read by the computer's OS. For
# example image files usually has no problem with
# this script also with other media files. But,
@ryanpcmcquen
ryanpcmcquen / styles.less
Last active July 9, 2021 01:56 — forked from MattMcFarland/styles.less
Ligature fonts for atom
/*
Thanks to this blog post for the idea:
https://medium.com/@docodemore/an-alternative-to-operator-mono-font-6e5d040e1c7e
This is a modified version of that using `Script12 BT` instead of `flottflott`
and updated for the changes in Atom's selector syntax.
Source:
https://gist.github.com/ryanpcmcquen/f99453c871b4ce393fea5a274eed4cb3
*/
@Jiab77
Jiab77 / ffmpeg.md
Last active June 27, 2024 21:14
This gist will help you to compile ffmpeg with NVENC, QSV, VAAPI, VDPAU, and OpenCL support.

Compilation FFMpeg / NVENC + NVRESIZE + QSV + VAAPI + VDPAU + OpenCL

This gist will help you to compile ffmpeg with NVENC, QSV, VAAPI, VDPAU, and OpenCL support.

nVidia nvresize patch is outdated and not more compatible to the latest version of FFmpeg, so it's not included in this documentation.

(even if I've passed a lot of time at trying to make it compile... without any success)

Please don't rely on this page: https://developer.nvidia.com/ffmpeg, the implementation is a hack and was never been added to the main FFmpeg tree.

@Brainiarc7
Brainiarc7 / ffmpeg-multi-instances-xargs.md
Last active July 18, 2026 06:29
This gist will show you how to launch multiple ffmpeg instances with xargs, very useful for NVIDIA NVENC based encoding where standard GPUs limit the maximum simultaneous encode sessions to two.

Spawning multiple ffmpeg processes with xargs:

On standard NVIDIA GPUs (Not the Quadros and Tesla lines), NVENC encodes are limited to two simultaneous sessions. The sample below illustrates how to pass a list of AVI files to ffmpeg and encode them to HEVC on two encode sessions:

$ find Videos/ -type f -name \*.avi -print | sed 's/.avi$//' |\
  xargs -n 1 -I@ -P 2 ffmpeg -i "@.avi" -c:a aac -c:v hevc_nvenc "@.mp4"

This will find all files with the ending .avi in the directory Videos/ and transcode them into HEVC/H265+AAC files with the ending .mp4. The noteworthy part here is the -P 2 to xargs, which starts up to two processes in parallel.

@jvuori
jvuori / install_makemkv.py
Last active May 14, 2024 14:48 — forked from fwenzel/install_makemkv.sh
A convenient little script to install MakeMKV on Linux + Python wrapper which determines the version number automatically
import os
import re
import requests
import sys
FORUM_PAGE = 'https://www.makemkv.com/forum/viewtopic.php?f=3&t=224'
DOWNLOAD_SITE = 'https://www.makemkv.com/download'
FORUM_PAGE_BETA_KEY = 'https://www.makemkv.com/forum2/viewtopic.php?f=5&t=1053'
CONFIG_FILE = os.path.join(
os.path.expanduser('~'),
#!/bin/bash
################################################################################
# Script for installing Odoo V10 on Ubuntu 16.04
################################################################################
OE_VERSION="10.0"
OE_USER="odoo"
OE_HOME="/opt/$OE_USER"
OE_HOME_EXT="$OE_HOME/v${OE_VERSION}"
@Hendrixer
Hendrixer / editor.css
Last active September 27, 2025 02:47
VS code custom CSS for theme
.composite-title, .composite-title, .vs-dark .monaco-workbench>.activitybar>.content {
background-color: rgba(40, 44, 52, 1) !important;
}
.tabs-container, .tab, .tab.active, .title-actions, .tablist, .tabs-container, .tabs, .composite.title {
background-color: rgba(40, 44, 52, 1) !important;
}
.tab.active, .tab {
border-right: 0px !important;
#!/usr/bin/env python2
# Author: Chris Dellin <cdellin@gmail.com>
# Date: 2016-09-14
# Script to scrape a working OAuth code from Google
# using the approach from dequis and hastebrot
# for use with hangups, purple-hangouts, etc.
# Requires packages python-gi and gir1.2-webkit-3.0 on Ubuntu 16.04.
@fractalf
fractalf / rec-func-promise.js
Created June 10, 2016 12:15
Javascript: Recursive functions and Promises/A+
/**
* Javascript Promises/A+ and recursive functions
* A simplified example
* Inspired by: https://kostasbariotis.com/node-js-recursion/
*
* Output:
* 1: async job simulation started
* 1: job done
* 2: async job simulation started
* 2: job done