This file contains hidden or 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 | |
# Author: An Shen | |
# Date: 2023-01-30 | |
. /etc/profile | |
function log(){ | |
echo "[$(date +'%Y-%m-%d %H:%M:%S')] - $1" | |
} |
This file contains hidden or 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 | |
# 需要替换的参数: | |
# CHAT_ID='-1001325237796' 目标群或者频道ID | |
# TOKEN="BOT TOKEN" BOT的TOKEN | |
# Cookie 中的 THOR 可以在登录了京东账号后抓包获得 | |
# 购买地区: | |
# cityId,townId,countyId 可以在"配送至" - "选择新地址",审查元素,查看对应地区的id | |
skuid=" | |
100002690344 | |
100002690350 |
This file contains hidden or 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
public class WebApiApplication : System.Web.HttpApplication | |
{ | |
protected void Application_Start() | |
{ | |
AreaRegistration.RegisterAllAreas(); | |
GlobalConfiguration.Configure(WebApiConfig.Register); | |
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); | |
RouteConfig.RegisterRoutes(RouteTable.Routes); | |
BundleConfig.RegisterBundles(BundleTable.Bundles); |
This file contains hidden or 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
use master | |
go | |
DECLARE @sql varchar(max) | |
DECLARE @DatabaseName nvarchar(50) | |
SET @DatabaseName = N'dbname' | |
set @sql =N'alter database '+@DatabaseName+' set single_user with rollback immediate' | |
EXEC(@sql) |
This file contains hidden or 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
//使用Fiddler刷推粉宝的阅读 | |
import System; | |
import System.Windows.Forms; | |
import Fiddler; | |
// INTRODUCTION | |
// | |
// Well, hello there! | |
// | |
// Don't be scared! :-) |
This file contains hidden or 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
:: 需要先安装ovftool | |
::虚拟机IP | |
set VMIPs=192.168.1.7 | |
::虚拟机名称 | |
set VMS=ERP | |
::ESXI服务器IP地址 | |
set ESXIP=192.168.1.5 | |
set FOLDERNAME=%date:~,4%%date:~5,2%%date:~8,2% | |
::远程关机 |
This file contains hidden or 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
@echo off | |
set list="08:00" "10:00" "15:00" "18:00" "21:00" | |
set preRunTime="" | |
:: CALL :parse_date pre_year,pre_month,pre_day | |
:loop | |
echo Current Time is %time% | |
echo It will run at %list% | |
if NOT %preRunTime% == "" (echo Pre run time is %preRunTime%) | |
for %%a in (%list%) do ( |