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 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 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 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
from telethon import TelegramClient,sync | |
from telethon.tl.functions.contacts import ResolveUsernameRequest | |
from telethon.tl.functions.channels import GetAdminLogRequest | |
from telethon.tl.functions.channels import GetParticipantsRequest | |
from telethon.tl.functions.channels import EditBannedRequest | |
from telethon.tl.types import ChannelParticipantsSearch | |
from telethon.tl.types import InputChannel | |
from telethon.tl.types import ChannelAdminLogEventsFilter | |
from telethon.tl.types import InputUserSelf | |
from telethon.tl.types import InputUser |
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
from bluepy.btle import Scanner, DefaultDelegate | |
import json | |
import time | |
import gnsq | |
nsq = gnsq.Producer('127.0.0.1:4150') | |
nsq.start() | |
class ScanDelegate(DefaultDelegate): | |
def __init__(self): |
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
<?xml version="1.0" encoding="utf-8"?> | |
<CheatTable CheatEngineTableVersion="34"> | |
<CheatEntries> | |
<CheatEntry> | |
<ID>1</ID> | |
<Description>"X"</Description> | |
<LastState Value="851.8578491" RealAddress="2F281078"/> | |
<VariableType>Float</VariableType> | |
<Address>"AgeOfConan.exe"+0257F7C8</Address> | |
<Offsets> |
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 | |
## Executing this script is not a guarantee for a secure host! | |
## This script is a collection of the junk I have found on my hosts and what | |
## the SaltStack community gave as input. We have seen this attack evolve. | |
## Please have a very close look at your systems and consider reinstalling them | |
## to be absolutely sure you are free of malware. | |
# remove crontab persistence | |
for i in 54.36.185.99 217.8.117.137 176.31.60.91 217.12.210.192 54.36.185.99 54.36.185.99 89.223.121.139 torsocks anagima3 sa.sh$ c.sh$ selcdn.ru salt-store; do |
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
from bluepy.btle import Scanner, DefaultDelegate | |
import json | |
import time | |
import gnsq | |
nsq = gnsq.Producer('127.0.0.1:4150') | |
nsq.start() | |
class ScanDelegate(DefaultDelegate): | |
def __init__(self): |
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 | |
exec 5>/dev/watchdog # opens file descriptor | |
upSeconds="$(cat /proc/uptime | grep -o '^[0-9]\+')" | |
while [ $(cat /proc/uptime | grep -o '^[0-9]\+') -lt 432000 ] ; do | |
echo "Feeding dog ..." | |
echo >&5 | |
sleep 10 | |
done |
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 | |
for i in 0 1 2 3 4 5 6 7 8 9; do | |
if udevadm info -q all -n /dev/usb/lp$i >/dev/null 2>&1; then | |
echo Found lp$i | |
[ -f /opt/cmkbon/printer ] || unlink /opt/cmkbon/printer | |
ln -s /dev/usb/lp$i /opt/cmkbon/printer | |
fi | |
done |
NewerOlder