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 | |
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", |
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 = [ | |
"干扰发生影响的基本要素有三个:干扰源、传播途径和" => "被干扰源", | |
"控制共站干扰影响的三要素是:抑制干扰源、切断干扰传播途径,提高被干扰源敏感器件的" => "抗干扰性能", | |
"抑制干扰源的手段有:提高发射机的性能和" => "增加发射端滤波器", | |
"切断干扰传播途径的手段有:调整频点、设置保护带宽和" => "增加隔离度", | |
"提高被干扰源敏感器件的抗干扰性能的主要手段:" => "提高接收机的性能", | |
"空间隔离度需求由两个因素决定:发射端发送干扰大小和" => "接收机允许接收的最小干扰", |
NewerOlder