This file contains 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
# Powershell Rustdesk Installation Script | |
# Derived from https://rustdesk.com/docs/en/self-host/client-deployment/ | |
# 01/2024 elpatron@mailbox.org | |
# | |
# Changes: | |
# - Replaced static download Url with latest release from Github Api | |
# - .\rustdesk.exe --silent-install -wait waits forever: replaced by Start-Sleep -Seconds 10 | |
# - Added some output | |
# - Use Set-Location instead of cd | |
# - Use System %TEMP% directory instead of c:\temp |
This file contains 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
# Webserver to check a device disk state by SNMP with Uptime-Kuma | |
# Requirements: | |
# pip install flask | |
# apt install snmp | |
# | |
# Run: python app.py | |
# | |
# Example: # http://192.168.177.48:5000/check-qnap-disk-state?ip=192.168.177.61&oid=.1.3.6.1.4.1.24681.1.2.11.1.7 | |
from flask import Flask, request | |
from subprocess import check_output |
This file contains 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
#!/bin/python3 | |
# © 2023 Markus Busche, elpatron@mailbox.org | |
# - Checks latest Mattermost version | |
# - Compares against installed version from .env | |
# - Stops, updates container | |
# - Finally deletes orphaned container(s) | |
import re | |
from urllib import response | |
import requests | |
from os.path import exists |
This file contains 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
#include <Constants.au3> | |
#include <FileConstants.au3> | |
; Run("TeamViewerQS.exe") | |
WinWait("TeamViewer QuickSupport") | |
WinActivate("TeamViewer QuickSupport") | |
Sleep(5000) | |
Local $i = 0 | |
While $i <= 10 |
This file contains 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
#!/bin/python3 | |
# requires packaging and requests-html | |
# run scheduled (@daily) with cron | |
import re | |
from urllib import response | |
import requests | |
from os.path import exists | |
from requests_html import HTMLSession | |
from packaging import version |
This file contains 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
# Downloads latest version of the Farming Simulator mods Courseplay and AutoDrive | |
# (c) 2022 elpatron68 | |
# https://github.com/elpatron68 | |
# | |
# To run this script, create a desktop shortcut like this: | |
# C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -ExecutionPolicy Bypass -File "<full path to this script>" | |
$docs = [Environment]::GetFolderPath("MyDocuments") | |
$fs22modpath = Join-Path -Path $docs -ChildPath "My Games\FarmingSimulator2022\mods" |
This file contains 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
import requests | |
# API_KEY and USRNR from https://sailaway.world/cgi-bin/sailaway.world/myaccount.pl | |
API_KEY = 'your API key' | |
USRNR = 'your USNR' | |
API_BASE_URL = 'http://srv.sailaway.world/cgi-bin/sailaway' | |
def getBoatPosition(boatname): | |
params = dict( | |
key=API_KEY, |
This file contains 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
Opt("WinTitleMatchMode", 3) | |
While 1 | |
Login() | |
Sleep(50) | |
WEnd | |
Func Login() | |
If WinActive(" MeshCentral Router", "") Then | |
; Get the window handle |
This file contains 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
#!/bin/bash | |
# | |
# Upgrade guide: https://docs.requarks.io/install/upgrade | |
# Prerequisite: Wiki.js installed in ~/wiki, this script saved in ~ | |
cd ~ | |
# Remove former downloaded file | |
rm wiki-js.tar.gz | |
rm ~/config.yml.bak | |
# Save config.yml | |
cp wiki/config.yml ~/config.yml.bak |
This file contains 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
accuracy | |
assists | |
bestAssists | |
bestCaptures | |
bestConfirmed | |
bestDamage | |
bestDeaths | |
bestDefends | |
bestDefuses | |
bestDenied |
NewerOlder