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
| Stop-Process -Name QQProtect -Force | |
| Stop-Process -Name QQPYUserCenter -Force | |
| $services = "XLServicePlatform", "AGMService", "AdobeARMservice", "vivoesService" | |
| foreach ($service in $services) { | |
| Stop-Service $service | |
| Set-Service $service -StartupType Disabled | |
| } | |
| Get-ScheduledTask | Where {$_.TaskName -eq "FreeDownloadManagerHelperService","XblGameSaveTask","DataSenseLiveTileTask"} | Disable-ScheduledTask | |
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
| class Profile | |
| def self.field(name, type) | |
| # Metaprogramming magic! | |
| define_method(name) do | |
| @attributes ||= {} # If @attributes doesn't exist, create it as an empty hash | |
| @attributes[name] | |
| end | |
| define_method("#{name}=") do |value| | |
| @attributes ||= {} |
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
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WcmSvc\GroupPolicy] | |
| "fMinimizeConnections "=dword:00000000 | |
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
| # Copyleft Abel lolz | |
| if (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { | |
| # If not running as Administrator, re-launch the script with elevated permissions | |
| $CommandLine = "-File `"" + $MyInvocation.MyCommand.Path + "`" " + $MyInvocation.UnboundArguments | |
| Start-Process -FilePath PowerShell.exe -Verb Runas -ArgumentList $CommandLine | |
| Exit | |
| } | |
| # Define the list of applications to block | |
| $appsToBlock = @( | |
| @{ |
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
| const dnsConfig = { | |
| enable: false, | |
| nameserver: | |
| ["192.168.1.1"] | |
| }; | |
| const safeCiphers = [ | |
| "aes-128-ccm", | |
| "aes-128-gcm", | |
| "aes-192-ccm", | |
| "aes-192-gcm", |
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
| Windows Registry Editor Version 5.00 | |
| ;https://www.cmdpe.com/post/154.html | |
| ;最开始这句"Windows Registry Editor Version 5.00"是注册表文件必备语句,请不要删除。 | |
| ;以";"开头的语句是注释语句,不起任何作用,只是注释而已。 | |
| ;***桌面图标优化*** | |
| ;在桌面显示此电脑 | |
| [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel] | |
| ;"{20D04FE0-3AEA-1069-A2D8-08002B30309D}"=dword:00000001 ;默认值 | |
| "{20D04FE0-3AEA-1069-A2D8-08002B30309D}"=dword:00000000 |
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
| # 设置 Scoop 仓库的镜像 | |
| $env:SCOOP_REPO = 'https://gh.llkk.cc/https://github.com/ScoopInstaller/Scoop.git' | |
| $env:SCOOP_MAIN_BUCKET_REPO = 'https://gh.llkk.cc/https://github.com/ScoopInstaller/Main.git' | |
| Invoke-WebRequest -useb https://raw.githubusercontent.com/ScoopInstaller/install/master/install.ps1 | Invoke-Expression | |
| scoop bucket list | |
| scoop install git | |
| scoop update |
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
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList] | |
| "user1"=dword:00000000 | |
| "user2"=dword:00000000 |
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
| FROM eclipse-temurin:17 | |
| WORKDIR /app | |
| COPY . /app | |
| RUN sed -i 's@http://.*archive.ubuntu.com@https://mirrors.tuna.tsinghua.edu.cn@g' /etc/apt/sources.list \ | |
| ENV MYSQL_HOST=YOURHOST | |
| ENV MYSQL_PORT=3306 | |
| ENV MYSQL_DATABASE=YOURDB | |
| ENV MYSQL_USERNAME=YOURUSER | |
| ENV MYSQL_PASSWORD=YOURPWS | |
| ENV REDIS_HOST=YOURIP |
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
| # Self-elevate the script if required | |
| if (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) { | |
| if ([int](Get-CimInstance -Class Win32_OperatingSystem | Select-Object -ExpandProperty BuildNumber) -ge 6000) { | |
| $CommandLine = "-File `"" + $MyInvocation.MyCommand.Path + "`" " + $MyInvocation.UnboundArguments | |
| Start-Process -FilePath PowerShell.exe -Verb Runas -ArgumentList $CommandLine | |
| Exit | |
| } | |
| } |