Skip to content

Instantly share code, notes, and snippets.

View Ancientwood's full-sized avatar

Anc Ancientwood

View GitHub Profile
Const strDestination = "C:\Users\user\Desktop\shortcut"
Set objArgs = WScript.Arguments
Set WshShell = WScript.CreateObject("WScript.Shell")
For i = 0 to objArgs.Count - 1 '' Loop through all arguments.
strShortCut = strDestination & "\" & GetAName(objArgs(i)) & ".lnk"
set oShellLink = WshShell.CreateShortcut(strShortCut)
oShellLink.TargetPath = objArgs(i)
oShellLink.WindowStyle = 1
@Ancientwood
Ancientwood / chelaile.php
Last active October 6, 2024 06:18
chelaile
<?php
class chelaile
{
// 城市信息接口
private $citylist_url = 'https://web.chelaile.net.cn/cdatasource/citylist';
// 附近站点线路及信息
private $homePageInfo = 'https://api.chelaile.net.cn/bus/stop!homePageInfo.action';
//实时接口
private $lineDetail = 'http://api.chelaile.net.cn/bus/line!lineDetail.action';
//公交车细节
127.0.0.1 osfota.cdn.aliyun.com
127.0.0.1 tvupgrade.yunos.com
127.0.0.1 osupdate.aliyun.com
127.0.0.1 osupdateservice.yunos.com
127.0.0.1 106.11.211.235
127.0.0.1 42.156.141.75
127.0.0.1 yunos.com
127.0.0.1 140.205.172.1
@echo off
doskey clear=cls
doskey desktop=cd %USERPROFILE%\Desktop
doskey ls=dir /o /p /d $1
doskey pwd=cd
doskey cp=copy $*
doskey mv=move $*
doskey rm=if exist $1\nul (rmdir /s $1) else del $1
doskey grep=findstr $*
doskey killport=netstat -ano ^| findstr :$1 ^> tempport$tFOR /F "tokens=5 delims= " %%P IN (tempport) DO TaskKill.exe /PID %%P /T /F$tdel tempport
default=https://www.baidu.com/s?wd={q}
dd <duckduckgo>=https://duckduckgo.com/?q={q}
bd <baidu>=https://www.baidu.com/s?wd={q}
g <google>=https://www.google.com/search?q={q}
tb <taobao>=http://s.taobao.com/search?q={q}
wk <wiki>=https://zh.wikipedia.org/w/index.php?search={q}
dm <doubanMoive>=https://movie.douban.com/subject_search?search_text={q}
rr <renren>=http://allyingshi.com/index/search/k/{q}
ac <acfun>=http://www.acfun.cn/search/#query={q}
blive <bililive>=http://live.bilibili.com/{q}
<!-- autoindex.html 20.06, see https://phus.lu -->
<script>
!function () {
var website_title = 'SHARE'
var datetime_format = '%Y-%m-%d %H:%M'
var show_readme_md = true
var enable_footer_js = true
var max_name_length = 50
var dom = {
@echo off
powershell.exe -ExecutionPolicy Bypass -File "C:\Users\anc\Desktop\soft\script\dark.ps1"
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
CoordMode, Mouse,Screen
SysGet, Mon1, Monitor, 1
SysGet, Mon2, Monitor, 2
isLeft := StrSplit(A_ScriptName, ".")[1] == "mouse_left" ? 1 : 0
@Ancientwood
Ancientwood / auto_page.js
Last active January 26, 2022 07:45
chrome js collection
javascript: (function () {
const d = document.documentElement;
const stepTime = 5000;
const overlap = 80;
const scroll = {};
const stopScroll = ()=>{
scroll.state = false;
scroll.time = null;
};
stopScroll();