37bb04eb5d
I'd like to ensure that my /etc/hosts file blocks websites at certains times. I use this to allow / disallow websites at various times of the day. TODO: - Add project README - Add tests - Publish - Create a Nix derivation - Run as a systemd timer unit - Figure out if I can run this as a user rather than root
26 lines
384 B
JSON
26 lines
384 B
JSON
[
|
|
{
|
|
"urls": [
|
|
"facebook.com",
|
|
"www.facebook.com",
|
|
"twitter.com",
|
|
"www.twitter.com",
|
|
"youtube.com"
|
|
"www.youtube.com"
|
|
"instagram.com"
|
|
"www.instagram.com"
|
|
],
|
|
"allowed": []
|
|
},
|
|
{
|
|
"urls": [
|
|
"chat.googleplex.com"
|
|
],
|
|
"allowed": [
|
|
{
|
|
"day": "Tuesday",
|
|
"timeslots": []
|
|
}
|
|
]
|
|
}
|
|
]
|