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/sh | |
cmd="mysql -uusername -ppassword"; | |
$cmd -e 'show processlist\G' |\ | |
egrep -b5 'Time: [0-9]{2,}' |\ | |
grep 'Id:' |\ | |
cut -d':' -f2 |\ | |
sed 's/^ //' |\ | |
while read id |
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
# To run this program in backgorund, run it on command line: pythonw Kid_Monitor.py | |
# SoundVolumeView.exe is a simple tool for Windows that adjust system volume level. | |
# Can be downloaded from https://www.nirsoft.net/utils/sound_volume_view.html. | |
import win32gui | |
import time | |
import winsound | |
import os | |
i = 0 | |
while i<=1: |
OlderNewer