1
0
mirror of https://github.com/kmein/niveum synced 2026-03-23 21:21:08 +01:00

3 Commits

Author SHA1 Message Date
f41ddb654a we dont need no procrastination 2022-09-13 21:01:32 +02:00
41ecca8411 feat(weechat): authenticate @ news.r 2022-09-13 21:01:16 +02:00
a80f4d866a chore: update 2022-09-13 20:30:07 +02:00
3 changed files with 16 additions and 10 deletions

View File

@@ -26,7 +26,10 @@ in {
echo "Usage: $0 TODO_ID" >&2
exit 1
}
${pkgs.todoman}/bin/todo edit "$1" --due "+ 1 day"
todo_id=$1
new_timestamp=$(${pkgs.todoman}/bin/todo --porcelain show "$todo_id" | ${pkgs.jq}/bin/jq '.due + 24 * 60 * 60')
new_date=$(${pkgs.coreutils}/bin/date +"%Y-%m-%d %H:%M" -d "@$new_timestamp")
${pkgs.todoman}/bin/todo edit "$todo_id" --due "$new_date"
'')
];

18
flake.lock generated
View File

@@ -23,11 +23,11 @@
"utils": "utils"
},
"locked": {
"lastModified": 1661573386,
"narHash": "sha256-pBEg8iY00Af/SAtU2dlmOAv+2x7kScaGlFRDjNoVJO8=",
"lastModified": 1662759269,
"narHash": "sha256-lt8bAfEZudCQb+MxoNKmenhMTXhu3RCCyLYxU9t5FFk=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "d89bdff445eadff03fe414e9c30486bc8166b72b",
"rev": "9f7fe353b613d0e45d7a5cdbd1f13c96c15803dd",
"type": "github"
},
"original": {
@@ -110,11 +110,11 @@
},
"nixos-stable": {
"locked": {
"lastModified": 1661520432,
"narHash": "sha256-9z+WDeXiu3hobvSsL0SbHDx4s+kFmm8eussySuX4zCM=",
"lastModified": 1662739455,
"narHash": "sha256-nfUkPoIIhSXZFxvN2TU7LL7k5CbC1iuSaSkLGgViMvE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "f11e12ac6af528c1ba12426ce83cee26f21ceafd",
"rev": "45b56b5321aed52d4464dc9af94dc1b20d477ac5",
"type": "github"
},
"original": {
@@ -195,11 +195,11 @@
"scripts": {
"flake": false,
"locked": {
"lastModified": 1660677220,
"narHash": "sha256-cCmyI4CigWbeQ0wEiE9HSI2Hmd3Wi5P7jhdHX6bJkXU=",
"lastModified": 1662493500,
"narHash": "sha256-EdAEKDQ6z7oinqQ28ELE3+taJ106DgmhNJt/rpqHJic=",
"owner": "kmein",
"repo": "scripts",
"rev": "688e141047e831a7e5f58dd24e00de51a3cb2345",
"rev": "51c641ac3c1100d80313696663db70c2eb3698dc",
"type": "github"
},
"original": {

View File

@@ -104,6 +104,9 @@ in {
addresses = "news.r";
autojoin = ["#cook" "#drachengame" "#oepnv" "#kmeinung" "#memes"];
command = "/oper aids balls";
sasl_mechanism = "plain";
sasl_username = nick;
sasl_password = nick + nick;
};
};
};