mirror of
https://github.com/kmein/niveum
synced 2026-03-30 01:01:10 +02:00
Compare commits
2 Commits
49f3d9bdf1
...
f0924d7d57
| Author | SHA1 | Date | |
|---|---|---|---|
| f0924d7d57 | |||
| 9ebcf731df |
1
.bin/mud.sh
Executable file
1
.bin/mud.sh
Executable file
@@ -0,0 +1 @@
|
|||||||
|
ssh mud@hotdog.r -t "MUD_NICKNAME=$LOGNAME mud"
|
||||||
49
.bin/space.py
Normal file
49
.bin/space.py
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
import ephem
|
||||||
|
from datetime import datetime, date, timedelta
|
||||||
|
|
||||||
|
now = datetime.now()
|
||||||
|
limit = now + timedelta(days=365)
|
||||||
|
|
||||||
|
|
||||||
|
def events_until(limit):
|
||||||
|
initial_date = ephem.Date(datetime.now())
|
||||||
|
events = {}
|
||||||
|
|
||||||
|
now = initial_date
|
||||||
|
while ephem.localtime(now) <= limit:
|
||||||
|
now = ephem.next_full_moon(now)
|
||||||
|
events[now] = "🌕"
|
||||||
|
|
||||||
|
now = initial_date
|
||||||
|
while ephem.localtime(now) <= limit:
|
||||||
|
now = ephem.next_new_moon(now)
|
||||||
|
events[now] = "🌑"
|
||||||
|
|
||||||
|
now = initial_date
|
||||||
|
while ephem.localtime(now) <= limit:
|
||||||
|
now = ephem.next_vernal_equinox(now)
|
||||||
|
events[now] = "spring equinox"
|
||||||
|
|
||||||
|
now = initial_date
|
||||||
|
while ephem.localtime(now) <= limit:
|
||||||
|
now = ephem.next_autumnal_equinox(now)
|
||||||
|
events[now] = "fall equinox"
|
||||||
|
|
||||||
|
now = initial_date
|
||||||
|
while ephem.localtime(now) <= limit:
|
||||||
|
now = ephem.next_winter_solstice(now)
|
||||||
|
events[now] = "winter solstice"
|
||||||
|
|
||||||
|
now = initial_date
|
||||||
|
while ephem.localtime(now) <= limit:
|
||||||
|
now = ephem.next_summer_solstice(now)
|
||||||
|
events[now] = "summer solstice"
|
||||||
|
return events
|
||||||
|
|
||||||
|
|
||||||
|
events = events_until(limit)
|
||||||
|
|
||||||
|
|
||||||
|
for date, event in sorted(events.items(), key=lambda x: x[0]):
|
||||||
|
if ephem.localtime(date) < limit:
|
||||||
|
print(ephem.localtime(date), event)
|
||||||
@@ -1,11 +1,10 @@
|
|||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
classicsDictionaries = {
|
classicsDictionaries = {
|
||||||
Pape = "${pkgs.fetchzip {
|
Pape = pkgs.fetchzip {
|
||||||
url = "http://chaerephon.e-monsite.com/medias/files/pape.zip";
|
url = "http://tovotu.de/data/stardict/pape_gr-de.zip";
|
||||||
sha256 = "0cm1z35bc47lx3709f4042kvd2zqkcqmn8q9fcw9dflikl6kgbij";
|
sha256 = "1kmbdjqinrcxkc6jdyyrq5rl2wzhnrychyynnh91yhrjwjxlh44k";
|
||||||
stripRoot = false;
|
};
|
||||||
}}/Pape";
|
|
||||||
Woodhouse = pkgs.fetchzip {
|
Woodhouse = pkgs.fetchzip {
|
||||||
url = "https://c.krebsco.de/Woodhouse.zip";
|
url = "https://c.krebsco.de/Woodhouse.zip";
|
||||||
sha256 = "1dvnc2679yb048q2f3hr2h34acvhan0n3iir6h9ajlrdzz48mlkq";
|
sha256 = "1dvnc2679yb048q2f3hr2h34acvhan0n3iir6h9ajlrdzz48mlkq";
|
||||||
@@ -23,9 +22,14 @@ let
|
|||||||
url = "https://github.com/latin-dict/Frisk1960/releases/download/v1.1/Frisk1960-stardict.zip";
|
url = "https://github.com/latin-dict/Frisk1960/releases/download/v1.1/Frisk1960-stardict.zip";
|
||||||
sha256 = "1rk5a3n3fpfdcmg4bc5945m88s6ldxql8cjn4jqs33rgklh7n046";
|
sha256 = "1rk5a3n3fpfdcmg4bc5945m88s6ldxql8cjn4jqs33rgklh7n046";
|
||||||
};
|
};
|
||||||
Georges-De-Lat = builtins.fetchTarball {
|
Georges-De-Lat = pkgs.fetchzip {
|
||||||
url = "http://download.huzheng.org/de/stardict-georges_de-lat-2.4.2.tar.bz2";
|
url = "http://tovotu.de/data/stardict/georges_de-lat.zip";
|
||||||
sha256 = "023n55fcbx0jm92198am600h9pv4n3iymkz2ixqn2ka4fj6dhw9g";
|
sha256 = "1gx4vv64bi9lxw2zgd861j469jvw4f2hhfwy1gglb12id8r7rdrl";
|
||||||
|
};
|
||||||
|
Georges-Lat-De = pkgs.fetchzip { # TODO find out why this does not work with sdcv
|
||||||
|
url = "http://tovotu.de/data/stardict/georges_lat-de.zip";
|
||||||
|
# "http://download.huzheng.org/de/stardict-georges_lat-de-2.4.2.tar.bz2";
|
||||||
|
sha256 = "0cc5xipn60anxvq8z2mw53d4gi1k92wbrj9m4ws3g9rh87fmkvgz";
|
||||||
};
|
};
|
||||||
SmithBiographyMythology = pkgs.fetchzip {
|
SmithBiographyMythology = pkgs.fetchzip {
|
||||||
url = "https://github.com/latin-dict/Smith1873/releases/download/v1.0/Smith1873-stardict.zip";
|
url = "https://github.com/latin-dict/Smith1873/releases/download/v1.0/Smith1873-stardict.zip";
|
||||||
@@ -135,9 +139,17 @@ in
|
|||||||
# http://download.huzheng.org/bigdict/stardict-Urban_Dictionary_P1-2.4.2.tar.bz2
|
# http://download.huzheng.org/bigdict/stardict-Urban_Dictionary_P1-2.4.2.tar.bz2
|
||||||
# http://download.huzheng.org/bigdict/stardict-Urban_Dictionary_P2-2.4.2.tar.bz2
|
# http://download.huzheng.org/bigdict/stardict-Urban_Dictionary_P2-2.4.2.tar.bz2
|
||||||
environment.etc.stardict.source = toString (makeStardictDataDir (classicsDictionaries // {
|
environment.etc.stardict.source = toString (makeStardictDataDir (classicsDictionaries // {
|
||||||
Georges-Lat-De = builtins.fetchTarball { # TODO find out why this does not work with sdcv
|
Crum = builtins.fetchTarball {
|
||||||
url = "http://download.huzheng.org/de/stardict-georges_lat-de-2.4.2.tar.bz2";
|
url = "http://download.huzheng.org/misc/stardict-Coptic-English_all_dialects-2.4.2.tar.bz2";
|
||||||
sha256 = "0n9jkr17q8amldw7ndy3ji6nnadjfmxl4v8clqqicbdfd1w44yj2";
|
sha256 = "1fi281mb9yzv40wjsdapi8fzpa7x2yscz582lv2qnss9g8zzzzr9";
|
||||||
|
};
|
||||||
|
LingvoGermanRussian = builtins.fetchTarball {
|
||||||
|
url = "http://download.huzheng.org/lingvo/stardict-GR-LingvoUniversal-2.4.2.tar.bz2";
|
||||||
|
sha256 = "0p353gs2z4vj70hqsdhffjaaw3a4zlmcs46flipmf35lm5wmaj0g";
|
||||||
|
};
|
||||||
|
LingvoRussianGerman = builtins.fetchTarball {
|
||||||
|
url = "http://download.huzheng.org/lingvo/stardict-RG-LingvoUniversal-2.4.2.tar.bz2";
|
||||||
|
sha256 = "03f9wdmkgpjifpms7dyh10ma29wf3ka1j3zlp1av0cybhdldk2a8";
|
||||||
};
|
};
|
||||||
} // sanskritDictionaries // englishGermanDictionaries));
|
} // sanskritDictionaries // englishGermanDictionaries));
|
||||||
|
|
||||||
|
|||||||
@@ -96,6 +96,7 @@ in {
|
|||||||
block = "custom";
|
block = "custom";
|
||||||
interval = 60 * 5;
|
interval = 60 * 5;
|
||||||
command = let inherit (import <niveum/configs/spacetime.nix>) location; in "${pkgs.scripts.horoscope}/bin/horoscope --latitude=${toString location.latitude} --longitude=${toString location.longitude}";
|
command = let inherit (import <niveum/configs/spacetime.nix>) location; in "${pkgs.scripts.horoscope}/bin/horoscope --latitude=${toString location.latitude} --longitude=${toString location.longitude}";
|
||||||
|
# astrolog -zN Berlin -n -k | tail -n +4 | head -n 7 | sed 's/://g;s/\s\+/ /g;s/ R/R/;s/\[\s*/[/g;s/Sun/☉/;s/Moon/☽/;s/Merc/☿/;s/Venu/♀/;s/Mars/♂/;s/Jupi/♃/;s/Satu/♄/' | cut -f1-2 -d' ' | paste -sd' ' -
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
block = "custom";
|
block = "custom";
|
||||||
|
|||||||
Reference in New Issue
Block a user