Skip to content

Instantly share code, notes, and snippets.

View WindyNova's full-sized avatar
🔫
no time to die

WindyNova

🔫
no time to die
View GitHub Profile
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
@WindyNova
WindyNova / MetaProgramming.rb
Created June 7, 2024 20:58
Meta Programming Example
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 ||= {}
@WindyNova
WindyNova / fMinimizeConnections.reg
Created April 19, 2024 01:55
Windows is fucking dumb im mad
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WcmSvc\GroupPolicy]
"fMinimizeConnections "=dword:00000000
@WindyNova
WindyNova / Blockit.ps1
Created March 29, 2024 01:37
Block dem ips
# 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 = @(
@{
@WindyNova
WindyNova / quickjs.js
Last active December 26, 2024 16:16
QuickJS to filter out fake shit
const dnsConfig = {
enable: false,
nameserver:
["192.168.1.1"]
};
const safeCiphers = [
"aes-128-ccm",
"aes-128-gcm",
"aes-192-ccm",
"aes-192-gcm",
@WindyNova
WindyNova / windows10.reg
Created June 8, 2023 16:48
Windows 10 优化
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
@WindyNova
WindyNova / Install-Scoop.ps1
Last active January 13, 2026 14:01
Install Scoop
# 设置 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
@WindyNova
WindyNova / HideAccountsFromLogon.reg
Created May 20, 2023 13:49
Hide Accounts From Windows Logon Screen
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList]
"user1"=dword:00000000
"user2"=dword:00000000
@WindyNova
WindyNova / Dockerfile
Created May 4, 2023 07:46
Dockerfile
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
@WindyNova
WindyNova / PowerShellAdminRightsSelfElevation.ps1
Created April 29, 2023 08:56
PowerShell Admin Rights Self-Elevation Template
# 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
}
}