Skip to content

Instantly share code, notes, and snippets.

@Jayman2000
Jayman2000 / default.nix
Last active February 15, 2024 19:45
Nix expressions that will help me test out a Disko PR: <https://github.com/nix-community/disko/>
# 🅭🄍1.0 This file is dedicated to the public domain using the CC0 1.0 Universal
# Public Domain Dedication:
# <https://creativecommons.org/publicdomain/zero/1.0/>
{ diskoDir }:
let
configuration = { pkgs, modulesPath, ... }: {
imports = [ "${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix" ];
# This will (hopefully) make the ISO build faster.
isoImage.squashfsCompression = "lz4";
@Jayman2000
Jayman2000 / update_files_for_new_version_of_godot.gd
Created December 13, 2023 21:27
Force a new version of Godot 3 to make any automatic changes that it’s going to make.
# 🅭🄍1.0 This file is dedicated to the public domain using the CC0 1.0 Universal
# Public Domain Dedication <https://creativecommons.org/publicdomain/zero/1.0/>.
tool
extends EditorScript
signal finished_updating_scene_files
# If this was Godot 4, I would probably just use the built-in Callable type
This file has been truncated, but you can view the full file.
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/x5k3x9xggcxzspn12cvg68wmqaxyr125-SDL-2.548.tar.gz
source root is SDL-2.548
setting SOURCE_DATE_EPOCH to timestamp 1526727352 of file SDL-2.548/typemap
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@Jayman2000
Jayman2000 / generate-flatpak-test.sh
Last active September 7, 2023 00:06
A script used to help test a resholve PR: <https://github.com/abathur/resholve/pull/104>
#!/usr/bin/env nix-shell
#! nix-shell -i bash -p coreutils
# 🅭🄍1.0 This file is dedicated to the public domain using the CC0 1.0 Universal
# Public Domain Dedication <https://creativecommons.org/publicdomain/zero/1.0/>.
set -e
readonly flatpak_args=(
-h --help
--version
--default-arch
@Jayman2000
Jayman2000 / generate-msmtp-test.sh
Last active September 11, 2023 16:09
A script used to help test a resholve PR: <https://github.com/abathur/resholve/pull/103>
#!/usr/bin/env bash
# 🅭🄍1.0 This file is dedicated to the public domain using the CC0 1.0 Universal
# Public Domain Dedication <https://creativecommons.org/publicdomain/zero/1.0/>.
set -u
# Note: none of these variables should contain whitespace.
readonly file=/dev/null
readonly domain=jasonyundt.email
readonly name=foo
readonly email="$name@$domain"
@Jayman2000
Jayman2000 / ez-resholve.sh
Last active September 22, 2023 13:06
A script to make it easier to use Git versions of resholve and binlore (<https://github.com/abathur/resholve> and <https://github.com/abathur/binlore>).
#!/usr/bin/env nix-shell
#! nix-shell -i bash -p nix -p coreutils -p bash
# 🅭🄍1.0 This file is dedicated to the public domain using the CC0 1.0 Universal
# Public Domain Dedication <https://creativecommons.org/publicdomain/zero/1.0/>.
set -ue
function package_to_bin_dir
{
package="$*"
@Jayman2000
Jayman2000 / make update.txt
Last active September 5, 2023 17:28
A log used to report an issue with resholve: <https://github.com/abathur/resholve/issues/99>
$ make update
Sassing docs/manpage.css from docs/manpage.scss
Building manpage
Sassing docs/strings.css from docs/strings.scss
Wursting _resholve/strings.py from docs/strings.wwst
touch .local
Building ci.nix
these 19 derivations will be built:
/nix/store/chkvwixk9fh507xz1c4vdziqhc6839r8-testmod1-unresholved-unreleased.drv
/nix/store/62mcj11zmbig7mb8n1g4b17jkdw2vfw6-testmod1-unresholved-unreleased-binlore.drv
@Jayman2000
Jayman2000 / make ci.txt
Created September 5, 2023 12:07
A log used to follow up on an issue with resholve: <https://github.com/abathur/resholve/issues/97>
$ make ci
Building ci.nix
these 19 derivations will be built:
/nix/store/q9dsxcrnaqsqfcikngyqqmymw6lwfwqd-testmod2-unresholved-unreleased.drv
/nix/store/35rwsqax386p5pn7v95phijhn82svpa9-testmod2-unresholved-unreleased-binlore.drv
/nix/store/7ijag87h8igx0ngfb3qdy6xxy3q8szbh-resholve-0.9.0.drv
/nix/store/v94i1h571y5g6jnmk0s3kcag9svhnzsp-more-binlore.drv
/nix/store/x76h59ab4bc4v135a8wnjgq7lswparxm-more-binlore.drv
/nix/store/44p62q6kwnyi1rqwihqwx5j7xzl4nsm6-testmod2-unreleased.drv
/nix/store/5cyskxlnbk1kzzy2lca4vfq2bi56pv1h-testmod1-unresholved-unreleased.drv
@Jayman2000
Jayman2000 / make ci.txt
Last active September 5, 2023 11:53
A log used to report an issue with resholve: <https://github.com/abathur/resholve/issues/97>
touch .local
Building ci.nix
these 19 derivations will be built:
/nix/store/32wnx1w89syk45i9r6y8cp7x5dlklrs0-testmod2-unresholved-unreleased.drv
/nix/store/4y4lbwjy7qiwnrjmq2snn7ri3jnsk3y3-testmod2-unresholved-unreleased-binlore.drv
/nix/store/86bfsa9bl94zmcm8angvkhrm2il1zbz3-more-binlore.drv
/nix/store/wkibki4v8rqrninfv171vj1y2l0fpsdl-resholve-0.9.0.drv
/nix/store/yizy6zfsamkjms86yv9racxwb8jy9ngs-more-binlore.drv
/nix/store/fi1v2k0c391p262bwl6xqb6w0w8rlaj0-testmod2-unreleased.drv
/nix/store/ck0x886z10933ch1wiz99whqjg6h570g-testmod2-unreleased-binlore.drv
@Jayman2000
Jayman2000 / build_log_2.txt
Created August 9, 2023 21:35
A log used for a follow-up to a Xash3D FWGS bug report: <https://github.com/FWGS/xash3d-fwgs/issues/1300>
$ ./waf configure --64bit --enable-lto -T release
Setting top to : /hdd/home/jayman/VC/Git/Not mine/xash3d-fwgs/engine
Setting out to : /hdd/home/jayman/VC/Git/Not mine/xash3d-fwgs/engine/build
Build type : release
LTO build : yes
PolyOpt build : no
Checking for 'gcc' (C compiler) : gcc
Target OS : linux
Target CPU : x86_64
Target binfmt : elf