sudo apt install xbindkeys xdotool wmctrlxbindkeys --defaults > ~/.xbindkeysrc| using System.Runtime.InteropServices; | |
| using NAudio.CoreAudioApi; | |
| using NAudio.CoreAudioApi.Interfaces; | |
| namespace PauseOnDisconnect | |
| { | |
| internal class Program | |
| { | |
| public static bool Active { get; private set; } = true; | |
| #pragma warning disable CS8618, CS8622 |
| #!/usr/bin/env python | |
| # Copyright (C) 2015 Harvey Chapman <hchapman@3gfp.com> | |
| # Public Domain | |
| # Use at your own risk. | |
| """ | |
| Splits a gpx file with breaks in the track into separate files. | |
| Based on: http://stackoverflow.com/q/33803614/47078 |
| # Create and configure the tap interface | |
| sudo ip tuntap add dev fc-88-tap0 mode tap | |
| sudo ip addr add 169.254.0.22/30 dev fc-88-tap0 | |
| sudo ip link set fc-88-tap0 up | |
| # Set up iptables rules | |
| sudo iptables -A FORWARD -i fc-88-tap0 -o enp1s0 -j ACCEPT | |
| sudo iptables -A FORWARD -i enp1s0 -o fc-88-tap0 -m state --state RELATED,ESTABLISHED -j ACCEPT | |
| sudo iptables -t nat -A POSTROUTING -o enp1s0 -j MASQUERADE |
| Ale | |
| Alingsås | |
| Alvesta | |
| Aneby | |
| Arboga | |
| Arjeplog | |
| Arvidsjaur | |
| Arvika | |
| Askersund | |
| Avesta |
Install the "User Scripts" plugin from Community Apps.
Under the Settings tab, open "User Scripts" (under "User Utilities")
Add a new script and name it "Hetrix Server Agent"
Open the terminal and run cd "/boot/config/plugins/user.scripts/scripts/Hetrix Server Agent"
Run nano script and paste in the install code from the HetrixTools dashboard.
| #!/bin/bash | |
| # Function to display usage information | |
| usage() { | |
| echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]" | |
| exit 1 | |
| } | |
| # Check if at least one argument (input file) is provided | |
| if [ $# -lt 1 ]; then |
| // Function to solve the puzzle asynchronously | |
| async function solvePuzzle(t) { | |
| // Calculate the target number using parameters from the puzzle | |
| const e = calculateTarget(t[13], t[14]); | |
| // Variable to hold the solution | |
| let o; | |
| // Loop to find a valid solution | |
| for (let attempts = 0; attempts <= Number.MAX_SAFE_INTEGER; attempts++) { |