This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Utilizes `notify-send` from libnotify which comes pre-installed with some desktop environments (e.g. GNOME or KDE Plasma). | |
| # Documentation: https://wiki.archlinux.org/title/Desktop_notifications | |
| # Available icons: https://specifications.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html | |
| # Requires https://github.com/caarlos0/timer to be installed | |
| # Linux setup for pomo | |
| function work() { | |
| timer -f "${1:-60}m" && notify-send \ | |
| --urgency=normal \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const inViewport = (element: Element): boolean => { | |
| const rect = element.getBoundingClientRect(); | |
| const html = document.documentElement; | |
| return ( | |
| rect.top >= 0 && | |
| rect.left >= 0 && | |
| rect.bottom <= (window.innerHeight ?? html.clientHeight) && | |
| rect.right <= (window.innerWidth ?? html.clientWidth) | |
| ); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://www.reddit.com/r/pihole/comments/5eirvy/from_the_smart_tv_thread_in_rtechnology/damgggq | |
| # Samsung TV & appliance block list | |
| #---------------------------------- | |
| log-1.samsungacr.com | |
| log-2.samsungacr.com | |
| notice.samsungcloudsolution.com | |
| noticecdn.samsungcloudsolution.com | |
| noticefile.samsungcloudsolution.com | |
| vdterms.samsungcloudsolution.com |