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
#!/usr/bin/env python3 | |
# Convert 2160p to 1440p | |
import sys | |
import os | |
from os.path import join, getsize, dirname, basename | |
from subprocess import run, PIPE, STDOUT | |
from time import sleep | |
from collections import namedtuple | |
FFPROBE_BIN = os.getenv('FFPROBE_BINARY', 'ffprobe') |
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 | |
# Check the amount of CPU being consumed by processes other than xmrig | |
# Takes a single (optional) argument, the name of the screen to target. Defaults to "xmrig" if unspecified | |
set -e | |
#12.5% or 2 full cores (with our 16 total) | |
IDLE_THRESHOLD=12.5 | |
TARGET_SCREEN="${1:-xmrig}" | |
NUM_CORES=$(cat /proc/cpuinfo | grep "core id" | wc -l) |
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
--- | |
- name: Patch log4shell | |
hosts: all | |
remote_user: root | |
tasks: | |
- name: Ensure find, lsof, kill, zip, unzip, coreutils and gawk are installed | |
apt: | |
name: "{{ packages }}" | |
state: present | |
vars: |
OlderNewer