You need to replace DP-1 with your display name from xrandr, and "MTouch" with a string that shows up in your touch screen's name when executing "xinput".
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
#!/bin/bash | |
STAT=$1 | |
SUB=$(echo $STAT | sed 's/\./\//g' | sed 's/$/.wsp/') | |
CONTAINER=$(docker ps -aq --filter name=graphite) | |
if [[ -z $STAT ]]; then | |
echo "Usage: ./deletemetric.sh stats_counters.test.metric.something" | |
exit 1 | |
fi |
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
#!/bin/bash | |
# converts /tmp/dhcp.leases to /etc/hosts format for adguardhome to show hostnames | |
# Paths to the files | |
HOSTS_FILE="/etc/hosts" | |
DHCP_LEASES_FILE="/tmp/dhcp.leases" | |
TEMP_FILE="/tmp/dhcp_hosts.tmp" | |
sed '/### DHCP LEASES START ###/,/### DHCP LEASES END ###/d' $HOSTS_FILE > $TEMP_FILE | |
mv $TEMP_FILE $HOSTS_FILE |
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
#!/usr/bin/env bash | |
PIN=19 | |
FREQ=100 | |
STEP=100000 | |
MAX=1000000 | |
MIN=0 | |
get_current_duty() { |
OlderNewer