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/sh | |
DOWNLOAD_DIR="${HOME}/MiniDLNA" | |
CONFIG_DIR="${HOME}/.aria2" | |
RPC_TOKEN="changeIt" | |
RPC_PORT="6800" | |
change_apt_source(){ | |
if [ -f /etc/apt/sources.list ]; then | |
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak |
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
Dim s | |
s = InputBox("当前Windows系统序列号为:", "Windows序列号", GetWindowsSN) | |
WScript.Quit | |
'取得当前Windows序列号函数 | |
Function GetWindowsSN() | |
Const HKEY_LOCAL_MACHINE = &H80000002 | |
strKeyPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion" |
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
<# | |
This script is intended to remove unnecessary packages on Windows 10. | |
Please run with PowerShell and USE IT AT YOUR OWN RISK. | |
#> | |
Get-AppxPackage *3dbuilder* | Remove-AppxPackage | |
Get-AppxPackage *windowsalarms* | Remove-AppxPackage | |
Get-AppxPackage *Appconnector* | Remove-AppxPackage | |
Get-AppxPackage *windowscalculator* | Remove-AppxPackage | |
Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage |