Skip to content

Instantly share code, notes, and snippets.

@RamKromberg
RamKromberg / ect_default.nix
Created April 13, 2022 20:08
ect and pdfsizeopt for nixos's home-manager
{ stdenv, lib, fetchgit, cmake, nasm, boost }:
stdenv.mkDerivation rec {
pname = "ect";
version = "unstable-2020-09-08";
src = fetchgit {
url = "https://github.com/fhanau/Efficient-Compression-Tool";
rev = "777dcb8548640eba9d4b7c8337b01caefecdf5cf";
sha256 = "1pd176nqdy7a544dkk8065hl5y4pgb85qqz4p01qdy7kvc9sd1x1";
@RamKromberg
RamKromberg / lsdvd2chapters.sh
Created July 11, 2021 04:49
convert lsdvd output to chapters file for mkvtoolnix using bash and bc
#!/usr/bin/env bash
#for nixos users:
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p bash bc lsdvd
#lsdvd2chapters.sh: lsdvd wrapper for mkvtoolnix
#2021-07-11 08:00:00 GMT+2
#
#lsdvd2chapters.sh [input_dir] [output] [title]
@RamKromberg
RamKromberg / RS_ASIO-log.txt
Created July 10, 2020 00:58
Rocksmith 2014 Edition Remastered with mdias/rs_asio 0.5.2 using SuZhou UTECK's Guitar-Cube Chord A on Windows 10 x64 2020-07-10
0.000 [INFO] - Wrapper DLL loaded (v0.5.2)
0.000 [INFO] PatchOriginalCode
0.485 [INFO] Patching CoCreateInstance
0.485 [INFO] Patch_CallAbsoluteAddress - num locations: 5
0.485 [INFO] Patching call at 01C5AA85
0.485 [INFO] Patching call at 01F03B6E
0.485 [INFO] Patching call at 01F5C681
0.485 [INFO] Patching call at 01FAEF75
0.485 [INFO] Patching call at 01FAF40D
0.485 [INFO] Patching PortAudio MarshalStreamComPointers
@RamKromberg
RamKromberg / systemd-bootchart.nix
Created September 8, 2016 16:30
systemd-bootchart.nix WIP
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.systemd-bootchart;
systemd-bootchart = with pkgs; stdenv.mkDerivation rec {
version = "230";
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix