Skip to content

Instantly share code, notes, and snippets.

View marcusramberg's full-sized avatar

Marcus Ramberg marcusramberg

View GitHub Profile
diff --git a/src/nimdow.nim b/src/nimdow.nim
index 162acf6..9e2acdd 100644
--- a/src/nimdow.nim
+++ b/src/nimdow.nim
@@ -55,6 +55,16 @@ when isMainModule:
except:
log getCurrentExceptionMsg(), lvlError
+ logger.enabled = loadedConfig.loggingEnabled
+
execve("/etc/profiles/per-user/marcus/bin/fish", ["fish"], 0xfffff1e73520 /* 74 vars */) = 0
faccessat(AT_FDCWD, "/etc/ld-nix.so.preload", R_OK) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/nix/store/hf9n60wqw0vz6vxsqgqd7s11iagqdzrx-fish-3.6.0/etc/fish", {st_mode=S_IFDIR|0555, st_size=4096, ...}, 0) = 0
newfstatat(AT_FDCWD, "/etc/profiles/per-user/marcus/share/terminfo", {st_mode=S_IFDIR|0555, st_size=4096, ...}, 0) = 0
faccessat(AT_FDCWD, "/etc/profiles/per-user/marcus/share/terminfo/x/xterm-256color", R_OK) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/nix/store/hf9n60wqw0vz6vxsqgqd7s11iagqdzrx-fish-3.6.0/etc/fish/functions/__fish_set_locale.fish", 0xffffc2ef02c8, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/etc/profiles/per-user/marcus/share/fish/vendor_functions.d/__fish_set_locale.fish", 0xffffc2ef02c8, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/marcus/.local/share/flatpak/exports/etc/fish/functions/__fish_set_locale.fish
execve("/etc/profiles/per-user/marcus/bin/fish", ["fish"], 0xffffdae8bd30 /* 73 vars */) = 0
faccessat(AT_FDCWD, "/etc/ld-nix.so.preload", R_OK) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/nix/store/hf9n60wqw0vz6vxsqgqd7s11iagqdzrx-fish-3.6.0/etc/fish", {st_mode=S_IFDIR|0555, st_size=4096, ...}, 0) = 0
newfstatat(AT_FDCWD, "/etc/profiles/per-user/marcus/share/terminfo", {st_mode=S_IFDIR|0555, st_size=4096, ...}, 0) = 0
faccessat(AT_FDCWD, "/etc/profiles/per-user/marcus/share/terminfo/x/xterm-256color", R_OK) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/etc/fish/nixos-env-preinit.fish", 0xffffd861ec88, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/nix/store/hf9n60wqw0vz6vxsqgqd7s11iagqdzrx-fish-3.6.0/etc/fish/functions/__fish_set_locale.fish", 0xffffd86213c8, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/etc/profiles/per-user/marcus/share/fish/vendor_functions.d/__fish_set_locale.fish", 0xffffd86213c8, 0) = -1 ENOENT (No such file or
{
description = "NixOS configuration";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
nixos-wsl.url = "github:nix-community/NixOS-WSL";
darwin.url = "github:lnl7/nix-darwin/master";
Derive([("out","/nix/store/xnkmmp8ba1g4risyjn6r8r02dl0hdd6b-patch-source","","")],[("/nix/store/5a2ia5fmw0zsd32sfppxp2nfgdj8hvn1-bash-5.1-p16.drv",["out"]),("/nix/store/z25xyn433sp31l7d1cylvppqr6v1s046-stdenv-linux.drv",["out"])],["/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh"],"aarch64-linux","/nix/store/7ccjps9kp3dciqj08c817xgfgxpyb053-bash-5.1-p16/bin/bash",["-e","/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh"],[("buildCommand","set +x\n# Copy the api folder into the two projects\nmkdir -p $out\ncp -r /nix/store/rhjvmxns2mby64fasnjdagbcyd444h35-source/* $out/\nchmod -R +w $out\ncd $out\nls -al\ncp -r api auraed\ncp -r api auraescript\n\n# Replace '../api' with 'api' in both scripts\nsed -i 's/\\.\\.\\/api/api/g' auraed/build.rs\nsed -i 's/\\.\\.\\/api/api/g' auraescript/build.rs\n"),("buildInputs",""),("builder","/nix/store/7ccjps9kp3dciqj08c817xgfgxpyb053-bash-5.1-p16/bin/bash"),("configureFlags",""),("depsBuildBuild",""),("depsBuildBuildPropagated",""),("depsBuildTarget
Welcome to Sandworld, the epic sequel to the groundbreaking film Waterworld. In a future where the Earth is now a desert wasteland, humanity's last hope for survival is the city of Sandworld, a sprawling metropolis built on the shifting dunes of the endless desert.
As a sandstorm rages across the scorched earth, a small group of survivors embarks on a perilous journey across the desert in search of a rumored oasis. Along the way, they must face off against sand sharks, sandstorms, and rival factions vying for control of the precious water that remains.
Leading the charge is our hero, a lone wanderer with a mysterious past and a fierce determination to survive. Armed with an arsenal of sand-proof tech and a trusted companion, a genetically engineered sand cat, he must use all his skills and cunning to navigate the dangers of Sandworld and bring hope to a desperate people.
Filled with breathtaking action, heart-pounding suspense, and eye-popping special effects, Sandworld is the ultimate adventure for fans o
#!/usr/bin/python3
import os
import json
import subprocess
infracost_output = os.environ.get("INFRACOST_OUTPUT")
if infracost_output is None:
print("Expected INFRACOST_OUTPUT ENV variable not found")
exit(1)
~/Source/atlantis emoji_reactions* ≡ 3m 22s ❯ make regen-mocks
find . -type f | grep mocks/mock_ | xargs rm
find . -type f | grep mocks/matchers | xargs rm
./scripts/go-generate.sh
go generate github.com/runatlantis/atlantis
go generate github.com/runatlantis/atlantis/cmd
go generate github.com/runatlantis/atlantis/server
go generate github.com/runatlantis/atlantis/server/controllers
go generate github.com/runatlantis/atlantis/server/controllers/events
go generate github.com/runatlantis/atlantis/server/controllers/templates
LUKS header information for /dev/nvme0n1p2
Version: 1
Cipher name: aes
Cipher mode: xts-plain64
Hash spec: sha256
Payload offset: 4096
MK bits: 512
MK digest: b9 7a 23 c0 11 6d c7 f2 0f f4 16 e8 45 59 df 7a c6 94 27 41
MK salt: 57 d7 3f 08 7a c4 d9 47 44 fb 7f 2d dc c3 24 9c
diff --git a/src/body.ts b/src/body.ts
index 7699b13..e360a37 100644
--- a/src/body.ts
+++ b/src/body.ts
@@ -64,6 +64,7 @@ export class Body {
* Get message body as a readable stream.
*/
createReadStream(): Readable {
+ if (this._stream.readableEnded) throw 'Request already parsed, trying to read more than once?';
if (this.autoDecompress !== true || this.get('content-encoding') !== 'gzip') return this._stream;