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
powershell.exe -ExecutionPolicy ByPass -NoExit -Command "& 'C:\ProgramData\Anaconda3\shell\condabin\conda-hook.ps1' ; conda activate 'C:\ProgramData\Anaconda3' " ; python D:\lzq\showdf.py %1 ; pause |
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 | |
mysql -uzabbix -pzabbix -e" | |
use zabbix; | |
truncate table history; | |
optimize table history; | |
truncate table history_log; | |
optimize table history_log; | |
truncate table history_str; | |
optimize table history_str; | |
truncate table history_uint; |
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 | |
declare -a bgpids | |
cleanup() { | |
for pid in ${bgpids[@]}; do | |
echo kill $pid | |
kill $pid | |
done | |
} | |
trap "cleanup" SIGINT SIGTERM |
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
import os | |
import sys | |
import time | |
import signal | |
from multiprocessing import Pool | |
def int_handler(signum, frame): | |
print('(%s) int_handler' % os.getpid()) | |
raise KeyboardInterrupt() |
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
function isMatchProxy(url, pattern) { | |
try { | |
return new RegExp(pattern.replace('.', '\\.')).test(url); | |
} catch (e) { | |
return false; | |
} | |
} | |
function FindProxyForURL(url, host) { | |
var Proxy = 'PROXY 127.0.0.1:10800'; |
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
# -*- python -*- | |
# ex: set filetype=python: | |
from buildbot.plugins import * | |
import subprocess | |
import re | |
import os | |
# This is a sample buildmaster config file. It must be installed as | |
# 'master.cfg' in your buildmaster's base directory. |