Skip to content

Instantly share code, notes, and snippets.

Avatar
🕸️

Ivan Kozik ivan

🕸️
View GitHub Profile
@ivan
ivan / discord_styles.js
Created Apr 3, 2021
Userscript to make Discord readable - April 2021 update
View discord_styles.js
// ==UserScript==
// @name Discord: Fix styles
// @namespace discrd_styles
// @include *://discord.com/*
// @version 1
// @grant GM_addStyle
// ==/UserScript==
GM_addStyle(`
@ivan
ivan / nixpkgs-ripgrep-build-with-lto-true.patch
Created Apr 1, 2021
nixpkgs: ripgrep: build with lto = true
View nixpkgs-ripgrep-build-with-lto-true.patch
From 8a92c363d9b2ef435e3b6eb7183b84b1fcf44a15 Mon Sep 17 00:00:00 2001
From: Ivan Kozik <ivan@ludios.org>
Date: Tue, 14 Jul 2020 06:19:32 +0000
Subject: [PATCH] ripgrep: build with lto = true
This reduces the size of the amd64 binary from 5.7MB to 4.6MB.
---
pkgs/tools/text/ripgrep/default.nix | 4 ++++
pkgs/tools/text/ripgrep/lto.patch | 10 ++++++++++
2 files changed, 14 insertions(+)
@ivan
ivan / nixpkgs-qbittorrent-add-patches.patch
Last active Apr 1, 2021
nixpkgs: qbittorrent: default webui to sequential download, fix webui UI issues, use Windows filename restrictions on Linux
View nixpkgs-qbittorrent-add-patches.patch
From f36291d5216f6bea88feed0e66b802b69b893238 Mon Sep 17 00:00:00 2001
From: Ivan Kozik <ivan@ludios.org>
Date: Sat, 1 Dec 2018 06:51:31 +0000
Subject: [PATCH] qbittorrent: add patches
---
.../networking/p2p/qbittorrent/default.nix | 29 +++++++++++++-
.../webui-default-sequential-download.patch | 39 +++++++++++++++++++
.../qbittorrent/windows-filename-rules.patch | 29 ++++++++++++++
3 files changed, 95 insertions(+), 2 deletions(-)
@ivan
ivan / nixpkgs-libtorrentRasterbar-use-Windows-safe-filenames-on-al.patch
Created Apr 1, 2021
nixpkgs: libtorrent-rasterbar: use Windows-safe filenames on all platforms
View nixpkgs-libtorrentRasterbar-use-Windows-safe-filenames-on-al.patch
From 9b46cbf4da6587c9f454fadd51781e5eb2156fd8 Mon Sep 17 00:00:00 2001
From: Ivan Kozik <ivan@ludios.org>
Date: Sat, 1 Dec 2018 07:47:40 +0000
Subject: [PATCH] libtorrentRasterbar: use Windows-safe filenames on all
platforms
---
.../libraries/libtorrent-rasterbar/1.2.nix | 4 ++
.../libtorrent-rasterbar/default.nix | 4 ++
.../windows-safe-filenames.patch | 47 +++++++++++++++++++
@ivan
ivan / nixpkgs-xfsprogs-don-t-defrag-files-that-have-1-extent-512MB.patch
Created Apr 1, 2021
nixpkgs: xfsprogs: don't defrag files that have <= 1 extent/512MB
View nixpkgs-xfsprogs-don-t-defrag-files-that-have-1-extent-512MB.patch
From e87f3bd3cb9c3583c9f2f03391a85cfa09e50be7 Mon Sep 17 00:00:00 2001
From: Ivan Kozik <ivan@ludios.org>
Date: Sat, 1 Dec 2018 06:06:50 +0000
Subject: [PATCH] xfsprogs: don't defrag files that have <= 1 extent/512MB
---
...defrag-files-that-have-1-extent-512MB.patch | 18 ++++++++++++++++++
pkgs/tools/filesystems/xfsprogs/default.nix | 4 ++++
2 files changed, 22 insertions(+)
create mode 100644 pkgs/tools/filesystems/xfsprogs/0001-Don-t-defrag-files-that-have-1-extent-512MB.patch
@ivan
ivan / nixpkgs-ephemeralpg-make-the-periods-extension-available.patch
Created Apr 1, 2021
nixpkgs: ephemeralpg: make the periods extension available
View nixpkgs-ephemeralpg-make-the-periods-extension-available.patch
From 98bc05231712d01bd06471689e5046ff690dcb8d Mon Sep 17 00:00:00 2001
From: Ivan Kozik <ivan@ludios.org>
Date: Sun, 22 Nov 2020 02:14:24 +0000
Subject: [PATCH] ephemeralpg: make the periods extension available
---
.../development/tools/database/ephemeralpg/default.nix | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/pkgs/development/tools/database/ephemeralpg/default.nix b/pkgs/development/tools/database/ephemeralpg/default.nix
@ivan
ivan / nixpkgs-zsh-don-t-load-the-annoying-newuser-module.patch
Created Apr 1, 2021
nixpkgs: zsh: don't load the annoying newuser module
View nixpkgs-zsh-don-t-load-the-annoying-newuser-module.patch
From c22f21a459fcf72843ed904b4f3a02edc417478a Mon Sep 17 00:00:00 2001
From: Ivan Kozik <ivan@ludios.org>
Date: Sat, 24 Aug 2019 14:58:00 +0000
Subject: [PATCH] zsh: don't load the annoying newuser module
---
pkgs/shells/zsh/default.nix | 4 ++
pkgs/shells/zsh/dont-load-newuser.patch | 51 +++++++++++++++++++++++++
2 files changed, 55 insertions(+)
create mode 100644 pkgs/shells/zsh/dont-load-newuser.patch
View gist:f4da39c47ff6e792e363afbc0b56fe85
Table "public.jobsets"
┌──────────────────┬─────────┬───────────┬──────────┬─────────────────────────────────────┬──────────┬──────────────┬─────────────┐
│ Column │ Type │ Collation │ Nullable │ Default │ Storage │ Stats target │ Description │
╞══════════════════╪═════════╪═══════════╪══════════╪═════════════════════════════════════╪══════════╪══════════════╪═════════════╡
│ name │ text │ │ not null │ │ extended │ │ │
│ id │ integer │ │ not null │ nextval('jobsets_id_seq'::regclass) │ plain │ │ │
│ project │ text │ │ not null │ │ extended │ │ │
│ description │ text │ │ │ │ extended │ │ │
│ nixexprinput │ te
@ivan
ivan / List of countries that Zenni Optical (zennioptical.com) ships to, but refuses to list in its FAQ.txt
Last active Jan 25, 2021
List of countries that Zenni Optical (zennioptical.com) ships to, but refuses to list in its FAQ
View List of countries that Zenni Optical (zennioptical.com) ships to, but refuses to list in its FAQ.txt
<option value="US">United States</option>
<option value="AS">American Samoa</option>
<option value="AD">Andorra</option>
<option value="AU">Australia</option>
<option value="AT">Austria</option>
<option value="BE">Belgium</option>
<option value="BA">Bosnia and Herzegowina</option>
<option value="BG">Bulgaria</option>
<option value="CA">Canada</option>
<option value="CN">China</option>
@ivan
ivan / update-rust.sh
Last active Nov 14, 2020
Script to update rust nightly and recompile all of your projects
View update-rust.sh
#!/usr/bin/env bash
set -eu -o pipefail
# --force to reinstall in case we updated NixOS and GC'ed old paths, but no new nightly is available
rustup update --force
rustup default nightly
# List most-used projects first so that they're available sooner
projects=(