AI bots now beat 100% of those traffic-image CAPTCHAs
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTA
    tarius
    Now 100%

    Nothing is truly free with Google. So ya, most likely they are tracking. If you dont want to use Google, there are other options on their wiki

    https://github.com/dessant/buster/wiki

    If not, you can use a dummy account just for this.

    2
  • [Guide] Uptime monitoring in Windows
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTA
    tarius
    Now 100%

    Definitely learned a lot.

    This app would be useful if you have more than one device. If you run the monitoring application on the same device as the services you are monitoring and if the device goes down, you wouldn't get a notification, right?

    2
  • > Disclaimer: This is for folks who are running services on Windows machines and does not have more than one device. I am neither an expert at self hosting nor PowerShell. I curated most of this code by doing a lot of "Google-ing" and testing over the years. Feel free to correct any mistakes I have in the code. # Background TLDR: Windows user needs an uptime monitoring solution Whenever I searched for uptime monitoring apps, most of the ones that showed up were either hosted on Linux or containers and all I wanted was a a simple exe installation file for some app that will send me alerts when a service or the computer was down. Unfortunately, I couldn't find anything. If you know one, feel free to recommend them. To get uptime monitoring on Windows, I had to turn to scripting along with a hosted solution (because you shouldn't host the monitoring service on the same device as where your apps are running in case the machine goes down). I searched and tested a lot of code to finally end up with the following. Now, I have services running on both Windows and Linux and I use Uptime Kuma and the following code for monitoring. But, for people who are still on Windows and haven't made the jump to Linux/containers, you could use these scripts to monitor your services with the same device. # Solution TLDR: A PowerShell script would check the services/processes/URLs/ports and ping the hosted solution to send out notification. What I came up with is a PowerShell script that would run every 5 minutes (your preference) using Windows Task Scheduler to check if a Service/Process/URL/Port is up or down and send a ping to Healthchecks.io accordingly. ## Prereqs 1. Sign up on healthchecks.io and create a project 1. Add integration to your favorite notification method (There are several options; I use Telegram) 1. Add a Check on Healthchecks.io for each of the service you want to monitor. Ex: `Radarr, Bazarr, Jellyfin` When creating the check, make sure to remember the Slug you used (custom or autogenerated) for that service. 1. Install latest version of [PowerShell 7](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4) 1. Create a PowerShell file in your desired location. Ex: `healthcheck.ps1` in the C drive 1. Go to project settings on Healthchecks.io, get the `Ping key`, and assign it to a variable in the script Ex: `$HC= "https://hc-ping.com/<YOUR_PING_KEY>/"` The Ping key is used for pinging Healthchecks.io based on the status of the service. ## Code 1. There are two ways you can write the code: Either check one service or loop through a list. ### Port 1. To monitor a list of ports, we need to add them to the `Services.csv` file. > The names of the services need to match the Slug you created earlier because, Healthchecks.io uses that to figure out which Check to ping. Ex: ``` "Service", "Port" "qbittorrent", "5656" "radarr", "7878" "sonarr", "8989" "prowlarr", "9696" ``` 1. Then copy the following code to `healthcheck.ps1`: ``` Import-CSV C:\Services.csv | foreach{ Write-Output "" Write-Output $($_.Service) Write-Output "------------------------" $RESPONSE = Test-Connection localhost -TcpPort $($_.Port) if ($RESPONSE -eq "True") { Write-Host "$($_.Service) is running" curl $HC$($_.Service) } else { Write-Host "$($_.Service) is not running" curl $HC$($_.Service)/fail } } ``` > The script looks through the Services.csv file (Line 1) and check if each of those ports are listening (`$($_.Port)` on Line 5) and pings Healthchecks.io (Line 8 or 11) based on their status with their appropriate name (`$($_.Service)`). If the port is not listening, it will ping the URL with a trailing `/fail` (Line 11) to indicate it is down. ### Service 1. The following code is to check if a service is running. You can add more services on line 1 in comma separated values. Ex: `@("bazarr","flaresolverr")` This also needs to match the Slug. ``` $SERVICES = @("bazarr") foreach($SERVICE in $SERVICES) { Write-Output "" Write-Output $SERVICE Write-Output "------------------------" $RESPONSE = Get-Service $SERVICE | Select-Object Status if ($RESPONSE.Status -eq "Running") { Write-Host "$SERVICE is running" curl $HC$SERVICE } else { Write-Host "$SERVICE is not running" curl $HC$SERVICE/fail } } ``` > The script looks through the list of services (Line 1) and check if each of those are running (Line 6) and pings Healthchecks.io based on their status. ### Process 1. The following code is to check if a process is running. Line 1 needs to match their Slug ``` $PROCESSES = @("tautulli","jellyfin") foreach($PROCESS in $PROCESSES) { Write-Output "" Write-Output $PROCESS Write-Output "------------------------" $RESPONSE = Get-Process -Name $PROCESS -ErrorAction SilentlyContinue if ($RESPONSE -eq $null) { # Write-Host "$PROCESS is not running" curl $HC$PROCESS/fail } else { # Write-Host "$PROCESS is running" curl $HC$PROCESS } } ``` ### URL 1. This can be used to check if a URL is responding. Line 1 needs to match the Slug ``` $WEBSVC = "google" $GOOGLE = "https://google.com" Write-Output "" Write-Output $WEBSVC Write-Output "------------------------" $RESPONSE = Invoke-WebRequest -URI $GOOGLE -SkipCertificateCheck if ($RESPONSE.StatusCode -eq 200) { # Write-Host "$WEBSVC is running" curl $HC$WEBSVC } else { # Write-Host "$WEBSVC is not running" curl $HC$WEBSVC/fail } ``` ### Ping other machines 1. If you have more than one machine and you want to check their status with the Windows host, you can check it by pinging them 1. Here also I use a CSV file to list the machines. Make sure the server names matches their Slug Ex: ``` "Server", "IP" "server2", "192.168.0.202" "server3", "192.168.0.203" ``` ``` Import-CSV C:\Servers.csv | foreach{ Write-Output "" Write-Output $($_.Server) Write-Output "------------------------" $RESPONSE = Test-Connection $($_.IP) -Count 1 | Select-Object Status if ($RESPONSE.Status -eq "Success") { # Write-Host "$($_.Server) is running" curl $HC$($_.Server) } else { # Write-Host "$($_.Server) is not running" curl $HC$($_.Server)/fail } } ``` ## Task Scheduler For the script to execute in intervals, you need to create a scheduled task. 1. Open Task Scheduler, navigate to the Library, and click on `Create Task` on the right 1. Give it a name. Ex: `Healthcheck` 1. Choose `Run whether user is logged on or not` 1. Choose `Hidden` if needed 1. On Triggers tab, click on New 1. Choose `On a schedule` 1. Choose `One time` and select an older date than your current date 1. Select `Repeat task every` and choose the desired time and duration. Ex: 5 minutes indefinitely 1. Select `Enabled` 1. On Actions tab, click on New 1. Choose `Start a program` 1. Add the path to PowerShell 7 in Program: `"C:\Program Files\PowerShell\7\pwsh.exe"` 1. Point to the script in arguments: `-windowstyle hidden -NoProfile -NoLogo -NonInteractive -ExecutionPolicy Bypass -File C:\healthcheck.ps1` 1. Rest of the tabs, you can choose whatever is appropriate for you. 1. Hit Ok/Apply and exit ## Notification Method Depending on the integration you chose, set it up using the Healthchecks [docs](https://healthchecks.io/docs/configuring_notifications/). I am using Telegram with the following configuration: Name: Telegram Execute on "down" events: POST https://api.telegram.org/bot<ID>/sendMessage Request Body: ``` { "chat_id": "<CHAT ID>", "text": "🔴 $NAME is DOWN", "parse_mode": "HTML", "no_webpage": true } ``` Request Headers: Content-Type: application/json Execute on "up" events: POST https://api.telegram.org/bot<ID>/sendMessage Request Body: ``` { "chat_id": "<CHAT ID>", "text": "🟢 $NAME is UP", "parse_mode": "HTML", "no_webpage": true } ``` Request Headers: Content-Type: application/json # Closing You can monitor up to 20 services for free. You can also selfhost [Healthchecks instance](https://healthchecks.io/docs/self_hosted/) (wouldn't recommend if you only have one machine). I've been wanting to give something back to the community for a while. I hope this is useful to some of you. Please let me know if you have any questions or suggestions. Thank you for reading!

    24
    4
    Remote access to casaOS and apps?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTA
    tarius
    Now 100%

    Depending on the app, there should be option to use server URL where you can put the server's Tailscale IP and the port.

    For Jellyfin, put the Tailscale IP when it asks for server IP and port 8096 like 100.123.45.67:8096

    2
  • [SOLVED] Any DE or distro without touch support?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTA
    tarius
    Now 100%

    There is no option in BIOS to disable touch input.

    The stackexchange solution didnt work. When I tried to set it to unbind, Im getting permission denied even as root.

    Touchscreen is physically damaged.

    1
  • [SOLVED] Any DE or distro without touch support?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTA
    tarius
    Now 90%

    No. The touch panel is making ghost inputs. So, I want to get a DE without touch support or need to figure out how I can disable touch input.

    9
  • I have an old AIO PC and its touch panel is not working properly. Are there any DEs or distros that doesnt have touch support? Edit: Thanks to everyone that replied and suggested solutions. For me this worked: https://linuxconfig.org/how-to-blacklist-a-module-on-ubuntu-debian-linux

    14
    24

    cross-posted from: https://lemmy.ml/post/15121280 > preferably with a web console (not required) Edit: I went with this as a solution for now: https://github.com/Ashfaaq18/OpenNetMeter

    8
    4

    cross-posted from: https://lemmy.ml/post/15121280 > preferably with a web console (not required) Edit: I went with this as a solution for now: https://github.com/Ashfaaq18/OpenNetMeter

    4
    4

    preferably with a web console (not required) Edit: I went with this as a solution for now: https://github.com/Ashfaaq18/OpenNetMeter

    8
    0
    California could ban Clear, which lets travelers pay to skip TSA lines
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTA
    tarius
    Now 100%

    They take you to the front of the line but, they still need to go through the actual screening (metal detector, bag scanning).

    From the clear website: Simply step up to a CLEAR Pod at the airport where you’ll scan your boarding pass and eyes or fingerprints, and an Ambassador will escort you to the front of the security line for your screening.

    9
  • Penpot 2.0, a major milestone in our journey, is now yours to explore and enjoy!
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTA
    tarius
    Now 100%

    Penpot is the first open-source design tool for design and code collaboration. Designers can create stunning designs, interactive prototypes, design systems at scale, while developers enjoy ready-to-use code and make their workflow easy and fast. And all of this with no handoff drama.

    https://github.com/penpot/penpot

    54
  • Roku has patented a way to show ads over anything you plug into your TV
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTA
    tarius
    Now 100%

    Just a thought: What if I were to buy a TV with a port other than HDMI and use a converter from Roku device to that port? For example, hdmi to display port or whatever.

    7
  • I am using vnStat to monitor network bandwidth on a Debian host that has several Docker containers. Because of the containers, there are several interfaces in addition to eth0. My question is, should I just monitor eth0 instead of looking at all the bridge and virtual interfaces to get the actual usage because at the end of the day, everything goes through eth0? Or am I looking at this wrong? Sample output: ``` rx / tx / total / estimated br-1ee235bc0b60: 2024-03 13.56 MiB / 97.42 MiB / 110.98 MiB / 391.02 GiB today 13.56 MiB / 97.42 MiB / 110.98 MiB / 112.54 MiB br-2ce98d77a35a: 2024-03 0 B / 0 B / 0 B / -- today 0 B / 0 B / 0 B / -- docker0: 2024-03 0 B / 0 B / 0 B / -- today 0 B / 0 B / 0 B / -- eth0: 2024-03 98.03 MiB / 15.04 MiB / 113.07 MiB / 398.37 GiB today 98.03 MiB / 15.04 MiB / 113.07 MiB / 114.66 MiB ```

    15
    1

    I have had these add-ons installed for a long time. But, do I need them all? [ClearURLs](https://addons.mozilla.org/en-US/firefox/addon/clearurls/) [Skip Redirect](https://addons.mozilla.org/en-US/firefox/addon/skip-redirect/) [Smart Referer](https://addons.mozilla.org/en-US/firefox/addon/smart-referer/)

    23
    4

    I am looking to monitor self hosted services that can send notifications to Telegram. Are there any web service monitoring solutions that can be installed on Windows and not installed using Docker? I checked through awesome-selfhosted and awesome-sysadmin repos and couldn't find one. All the ones I saw were either for Linux or container based. EDIT: For anyone that comes across this, here is how I resolved this. Thanks to u/dotmatrix for suggesting healthchecks.io ### SOLUTION #### On the host 1. Script to check the status of the webpage. Save the file with `ps1` extension ```powershell $hc= "https://hc-ping.com/<blahblahblah>" $url = "https://website.com/" $response = curl $url if ($response.StatusCode -eq 200) { curl $hc } else { curl $hc/fail } ``` 2. Set up the above script in Task Scheduler to run every 5 mins #### On HealthChecks 1. Create a check 2. Create a Telegram integration if you want the notification in a group/direct message/channel: https://healthchecks.io/integrations/add_telegram/ 3. If you want to customize the message or send the message to a topic in a group, you can create a Webhook. Instructions are here: https://github.com/healthchecks/healthchecks/issues/689#issuecomment-1409847685

    3
    9
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearKE
    Kerala is rolling out free broadband for its poorest citizens. What’s stopping your government?
    lemmy.ml
    8
    1
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTA
    Now
    9 47

    tarius

    tarius@ lemmy.ml