Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Hill YellowOnion

View GitHub Profile
View default.pa
.include /etc/pulse/default.pa
set-card-profile alsa_card.pci-0000_07_00.4 output:analog-surround-51+input:analog-stereo
load-module module-remap-sink sink_name=headphones sink_properties="device.description='Headphones'" remix=no master=alsa_output.pci-0000_07_00.4.analog-surround-51 channels=2 master_channel_map=front-left,front-right channel_map=front-left,front-right
load-module module-remap-sink sink_name=speakers sink_properties="device.description='Speakers'" remix=no master=alsa_output.pci-0000_07_00.4.analog-surround-51 channels=2 master_channel_map=rear-left,rear-right channel_map=front-left,front-right
load-module module-virtual-surround-sink sink_name=vsurround channels=6 hrir=/home/daniel/.hrir/eq.wav sink_properties=device.description=VirtualSurround sink_master=headphones
set-default-sink vsurround
View bcachefs.txt
Size: 7.1T
Used: 6.0T
Online reserved: 0
Data type Required/total Devices
reserved: 1/0 [] 14.2M
reserved: 1/1 [] 1.5G
btree: 1/2 [nvme0n1p3 sdb] 16.4G
btree: 1/2 [sdb sdd] 1.1G
btree: 1/2 [nvme0n1p3 sdd] 985.0M
View steam-235540.log
======================
Proton: 1612904805 proton-5.13-6
SteamGameId: 235540
Command: ['/home/daniel/.local/share/Steam/steamapps/common/Warhammer End Times Vermintide/binaries/vermintide.exe', '-bundle-dir', '..\\bundle', '-ini', 'settings']
Options: {'forcelgadd'}
SteamLinuxRuntime: v0.20210309.0-4-ge09b2e6
pressure-vessel: 0.20210317.0+srt1 scout 0.20210317.0
soldier: 0.20210317.0 soldier 0.20210317.0
======================
ERROR: ld.so: object '/home/daniel/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
View iso.nix
# This module defines a small NixOS installation CD. It does not
# contain any graphical stuff.
{config, pkgs, ...}:
{
imports = [
<nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-graphical-gnome.nix>
# Provide an initial copy of the NixOS channel so that the user
# doesn't need to run "nix-channel --update" first.
<nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
View AnkiMath.hs
module Main (makeCards, main) where
import Data.List
import System.IO (withFile, hSetEncoding, utf8, hSetFileSize, IOMode(WriteMode), hPutStr)
import Text.Printf (printf)
-- | Make Cards from a function, and a format string for itself and it's inverse and a range of numbers.
-- Examples:
--
View Types.Commodity
data Commodity
= Explosives
| HydrogenFuel
| MineralOil
| Pesticides
| Clothing
| ConsumerTechnology
| DomesticAppliances
| Beer
| Liquor
View gist:8ecd049940ed64960e3ddb933773dad3
>tracert -h 100 -w 500 github-production-release-asset-2e65be.s3.amazonaws.com
Tracing route to s3-1-w.amazonaws.com [52.216.108.11]
over a maximum of 100 hops:
1 <1 ms <1 ms 1 ms 192.168.1.254
2 2 ms 2 ms 2 ms 222-154-72-1-fibre.sparkbb.co.nz [222.154.72.1]
3 * * * Request timed out.
4 17 ms 17 ms 17 ms 122.56.113.4
5 18 ms 18 ms 17 ms ae7-2.akbr7.global-gateway.net.nz [122.56.119.53]
View TrackIR.hs
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
import Network.Socket hiding (recv, sendAll, send)
import Network.Socket.ByteString (recv, sendAll, send)
import qualified Data.ByteString as B
import Control.Applicative
import qualified Graphics.Win32
View AnimeRemaster.py
import vapoursynth as vs
import sys, os
sys.path.append(os.path.abspath(r'.\VapourSynth64Portable\Scripts'))
import LimitedSharpen2
from nnedi3_rpow2 import nnedi3_rpow2
core = vs.get_core()
video = core.ffms2.Source(source=r'YOUR FILE GOES HERE')
debug=False
@YellowOnion
YellowOnion / supnoise.user.js
Last active Aug 26, 2020
Suppresses audio to 1/8th it's power (Instagram, bandcamp, etc)
View supnoise.user.js
// ==UserScript==
// @name Instagram audio supression.
// @namespace http://tampermonkey.net/
// @version 0.3
// @description Suppresses audio to 1/8th it's power
// @author YellowOnion
// @match https://*.instagram.com/*
// @require https://code.jquery.com/jquery-3.5.1.slim.min.js
// @updateURL https://gist.github.com/YellowOnion/727d53b497aac946f9e2b2e591a53f7a/raw/supnoise.user.js
// @grant none