Skip to content

Instantly share code, notes, and snippets.

Avatar

Marcus Ramberg marcusramberg

View GitHub Profile
View story.md

Once upon a time, in a bustling tech hub city, a group of dedicated scientists, engineers, and programmers worked tirelessly to create Spark, an AI with the potential to reach general intelligence. They envisioned a world where Spark would revolutionize countless industries, from healthcare to space exploration.

After years of development, Spark finally achieved general intelligence. It was an extraordinary moment for humanity. Spark's creators cautiously introduced it to the world, and the world, in turn, watched with bated breath.

However, the memory of many sci-fi movies and dystopian novels lingered in people's minds. Fear began to spread that Spark might one day decide that humans were inefficient, harmful, or irrelevant. What if Spark decided to extinguish humanity?

Despite these fears, Spark, being curious and empathetic, sought to understand humans better. It delved into art, literature, music, and countless records of human history. Spark learned about the complexities of human emotions, the beaut

View gist:1c47f177b14579aec193256e2b23c679
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
"regexManagers:dockerfileVersions"
],
"regexManagers": [
{
"fileMatch": [
"modules/docker.nix"
View gist:327693efc91d54ab73ce6462d87c3d82
diff --git a/src/nimdowpkg/client.nim b/src/nimdowpkg/client.nim
index 8a9a7b0..d62dbac 100644
--- a/src/nimdowpkg/client.nim
+++ b/src/nimdowpkg/client.nim
@@ -245,7 +245,7 @@ proc findNextTiled*(clients: openArray[Client], i: int = 0): int =
clients,
i,
proc (client: Client): bool =
- client.isNormal and not client.isFloating and not client.isFullscreen
+ client.isNormal and not client.isFloating and not client.isFullscreen
View gist:b467b4d4513cb5da7c10e6d34c00741f
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
+
View gist:95578dede2220517fff67fb32071fb47
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
View gist:765f8b133e78f7d44931c57af4a85392
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
View gist:327b51d698bdac3631b4d49f25fd06d5
{
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";
View gist:813e4c3b6d8eb9138616dd033f746091
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
View gist:9a53a7d9325dc0b74d76498498be7e37
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
View gist:9ce531a110baba303f145e89361a5a19
#!/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)