Skip to content

Instantly share code, notes, and snippets.

View lordkekz's full-sized avatar
🙃
Just hanging around

Didn't read the style guide lordkekz

🙃
Just hanging around
View GitHub Profile
@zeratax
zeratax / k3s.nix
Last active July 11, 2024 03:31
simulating a k3s cluster in nixos
{ pkgs, lib, config, ... }:
let
### Variables:
kubeMasterIP = "192.168.188.89";
kubeMasterGateway = "192.168.188.1";
kubeMasterHostname = "gestalt.local";
kubeMasterAPIServerPort = 6443;
kubeMasterInterface = "eno1";
kubeMasterMacVlanInterface = "mv-${kubeMasterInterface}";
@basilioss
basilioss / rollower-todo.js
Last active September 12, 2024 02:18
Obsidian template to rollover incomplete todo items from the previous daily note
<%*
// v1.1: Fixed the error when inserting the template, when a note for the previous day does not exist
const previousDay = moment(tp.file.title, "YYYY-MM-DD").subtract(1, "days").format("YYYY-MM-DD")
const nextDay = moment(tp.file.title, "YYYY-MM-DD").add(1, "days").format("YYYY-MM-DD")
tR += "# " + tp.file.title + "\n"
%>
<< [[<% previousDay %>]] | [[<% nextDay %>]] >>
@joepie91
joepie91 / hydra.md
Created November 26, 2017 09:31
Hydra notes

Just some notes from my attempt at setting up Hydra.

Setting up on NixOS

No need for manual database creation and all that; just ensure that your PostgreSQL service is running (services.postgresql.enable = true;), and then enable the Hydra service (services.hydra.enable). The Hydra service will need a few more options to be set up, below is my configuration for it:

    services.hydra = {
        enable = true;
 port = 3333;