Skip to content

Instantly share code, notes, and snippets.

View Shados's full-sized avatar
🌧️
Recursively fixing issues with third-party dependencies.

Alexei Robyn Shados

🌧️
Recursively fixing issues with third-party dependencies.
View GitHub Profile
@Shados
Shados / blue8852be.nix
Created September 13, 2022 11:42
NixOS hardware quirks/fixes config for RedmiBook Pro 15 2022
{ lib, stdenv, src, fetchFromGitHub, kernel }:
stdenv.mkDerivation rec {
name = "blue8852be-module-${version}-${kernel.version}";
version = "1.0.2";
inherit src;
hardeningDisable = [ "pic" ];
nativeBuildInputs = kernel.moduleBuildDependencies;
@Shados
Shados / script-sync.sh
Last active January 26, 2022 04:18
Script-directory watcher/pusher for the Steam version of Bitburner
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p bash gnused jq coreutils curl inotify-tools
# vim: set ft=sh :
set -eEo pipefail
shopt -s inherit_errexit nullglob
set -u
SCRIPTNAME=$(basename "$0")
# Set the DRY_RUN env var when running the command if you just want it to print
# what it will do, instead of actually doing anything
@Shados
Shados / 24-bit-color.patch
Created December 24, 2019 00:59 — forked from cpixl/24-bit-color.patch
24-bit color patch for URxvt version 9.22 (based on https://github.com/spudowiar/rxvt-unicode)
--- README.configure
+++ README.configure
@@ -9,8 +9,8 @@ CONFIGURE OPTIONS
--enable-everything
Add (or remove) support for all non-multichoice options listed in
- "./configure --help", except for "--enable-assert" and
- "--enable-256-color".
+ "./configure --help", except for "--enable-assert",
+ "--enable-256-color" and "--enable-24-bit-color".
{
# The type checking function.
# Example:
# > checkType (list string) [ "foo" "bar" ]
# { }
# > checkType (list string) [ "foo" 42 ]
# { "1" = { should = "string"; val = 42; }; }
#
# Where { } means no error (given value is of given type) and
# { should : String, val : Value} denotes a type mismatch
@Shados
Shados / Browserhunt.md
Last active August 8, 2019 00:44
The Great Browser Hunt, 2018/2019 Edition

Browser Hunt

Baseline requirements:

  • Open source
  • Runs on Linux (Windows and OS X would be nice too, but I don't fucking care that much)
  • Extensible (Even "has no plugin system, but really clean source and a maintainer who is very open to PRs" is good enough for me)
    • WebExtensions do not fucking count. They are only interesting to me if the browser implements a far wider and more powerful set of WebExtension APIs than is typical -- and even then, I don't like JS
@Shados
Shados / GitlabPulls.pm
Created November 16, 2018 01:59
Modified Hydra GitlabPulls plugin
# This plugin allows to build Gitlab merge requests.
#
# The declarative project spec.json file must contains an input such as
# "pulls": {
# "type": "gitlabpulls",
# "value": "https://gitlab.com 42",
# "emailresponsible": false
# }
# where 42 is the project id of a repository.
#
@Shados
Shados / clang-fixes.patch
Last active May 7, 2018 00:19
Rudimentary Nix expression for building Waterfox from source
diff -rupN Waterfox/security/sandbox/linux/SandboxOpenedFiles.cpp Waterfox-fixed/security/sandbox/linux/SandboxOpenedFiles.cpp
--- Waterfox/security/sandbox/linux/SandboxOpenedFiles.cpp 2018-04-09 14:01:19.623899549 +1000
+++ Waterfox-fixed/security/sandbox/linux/SandboxOpenedFiles.cpp 2018-04-22 01:40:21.285220672 +1000
@@ -9,6 +9,7 @@
#include "mozilla/Move.h"
#include "SandboxLogging.h"
+#include <errno.h>
#include <fcntl.h>
#include <unistd.h>