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: |
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 | |
# Put this script run in crond. | |
service=ocserv | |
if test $(netstat -na | grep 0.0.0.0:443 | wc -l) = 2 | |
then | |
echo "$service is running!" | |
else | |
/etc/init.d/$service start |
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
#!/bin/sh | |
service=ocserv | |
if test $(netstat -na | grep 0.0.0.0:443 | wc -l) = 2 | |
then | |
echo "$service is running!" | |
else | |
/etc/init.d/$service start | |
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
#!/usr/bin/php | |
<?php | |
$cmd = '/sbin/service atd'; | |
$atd = `$cmd status`; | |
// var_dump($atd); | |
if (! preg_match('/is running/', $atd)) | |
{ | |
$result = `$cmd start`; | |
echo $result; |
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/php | |
<?php | |
/* Contents of exam.csv file like this: | |
奈奎斯特定理是哪一年提出来的?,1928 | |
已知无线电频率为1GHz,其波长为(单位为m):,0.3 | |
已知WiFi的频率为2.4GHz,其波长为(单位为m):,0.125 | |
已知WiFi的频率为5GHz,其波长为(单位为cm):,6 | |
...... | |
*/ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>16CNetG5-2</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
</head> | |
<body> | |
<?php | |
/* Contents of 16CNetG5-2.csv file like this: |
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/php | |
<?php | |
$terms = [ | |
"TD-LTE与WLAN系统共存的干扰隔离度要求为多少(dB)" => "87", | |
"TD-LTE与WLAN系统共存的空间距离要求为水平距离多少m" => "54", | |
"TD-LTE与WLAN系统共存的空间距离要求为垂直距离多少m" => "2.3", | |
"LTE相对3G“少一层,多一口”中的少一层是少了哪一层" => "RNC", | |
"LTE相对3G“少一层,多一口”中的多一口是多了哪个口" => "X2", | |
"采用256-QAM高阶调制技术时,每个符号能代表多少位比特的信息" => "8", |
NewerOlder