Prob last update on this.
This commit is contained in:
parent
70de71a496
commit
44b23824ff
31
close-unneeded-software.ps1
Normal file
31
close-unneeded-software.ps1
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# get lively process
|
||||||
|
|
||||||
|
$lively = Get-Process Lively -ErrorAction SilentlyContinue
|
||||||
|
if ($lively) {
|
||||||
|
$lively | Stop-Process -Force
|
||||||
|
|
||||||
|
Write-Host "Stopped Lively"
|
||||||
|
} else {
|
||||||
|
Write-Host "Lively already stopped"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$keepassxc = Get-Process KeePassXC -ErrorAction SilentlyContinue
|
||||||
|
if ($keepassxc) {
|
||||||
|
$keepassxc | Stop-Process -Force
|
||||||
|
|
||||||
|
Write-Host "Stopped KeePassXC"
|
||||||
|
} else {
|
||||||
|
Write-Host "KeePassXC already stopped"
|
||||||
|
}
|
||||||
|
|
||||||
|
$ferdium = Get-Process Ferdium -ErrorAction SilentlyContinue
|
||||||
|
if ($ferdium) {
|
||||||
|
$ferdium | Stop-Process -Force
|
||||||
|
|
||||||
|
Write-Host "Stopped Ferdium"
|
||||||
|
} else {
|
||||||
|
Write-Host "Ferdium already stopped"
|
||||||
|
}
|
||||||
|
|
||||||
|
Pause
|
@ -1,18 +0,0 @@
|
|||||||
$wmiOS = Get-CimInstance -Class Win32_OperatingSystem
|
|
||||||
$wmiCS = Get-CimInstance -ClassName Win32_ComputerSystem
|
|
||||||
$uptime = Get-Uptime
|
|
||||||
$os = $wmiOS.Caption
|
|
||||||
$model = $wmiCS.Model
|
|
||||||
$build = $wmiOS.BuildNumber
|
|
||||||
$uptimeHours = $uptime.Hours
|
|
||||||
$uptimeMinutes = $uptime.Minutes
|
|
||||||
$chocoPackages = choco list -l | Measure-Object -Line
|
|
||||||
$scoopPackages = scoop.cmd list | Measure-Object -Line
|
|
||||||
$packages = $($chocoPackages.Lines - 1) + $($scoopPackages.Lines - 3)
|
|
||||||
|
|
||||||
Write-Host -ForegroundColor Yellow "$env:username@$env:computername"
|
|
||||||
Write-Host -ForegroundColor Red "os " -NoNewline; Write-Host -ForegroundColor DarkCyan "$os"
|
|
||||||
Write-Host -ForegroundColor Red "host " -NoNewline; Write-Host -ForegroundColor DarkCyan "$model"
|
|
||||||
Write-Host -ForegroundColor Red "build " -NoNewline; Write-Host -ForegroundColor DarkCyan "$build"
|
|
||||||
Write-Host -ForegroundColor Red "uptime " -NoNewline; Write-Host -ForegroundColor DarkCyan $uptimeHours"h "$uptimeMinutes"m"
|
|
||||||
Write-Host -ForegroundColor Red "pkgs " -NoNewline; Write-Host -ForegroundColor DarkCyan "$packages (choco + scoop)"
|
|
22
profile.ps1
22
profile.ps1
@ -1,6 +1,4 @@
|
|||||||
using namespace System.Management.Automation
|
using namespace System.Management.Automation
|
||||||
|
|
||||||
powerfetch.ps1
|
|
||||||
|
|
||||||
Import-Module PSReadLine
|
Import-Module PSReadLine
|
||||||
|
|
||||||
@ -79,28 +77,10 @@ function mklink
|
|||||||
sudo New-Item -ItemType SymbolicLink -Path "$target" -Target "$original"
|
sudo New-Item -ItemType SymbolicLink -Path "$target" -Target "$original"
|
||||||
}
|
}
|
||||||
|
|
||||||
function yta {
|
|
||||||
youtube-dl -x -f bestaudio --external-downloader aria2c --external-downloader-args "-j 16 -s 16 -x 16 -k 5M" --audio-format mp3 -o "%(title)s.%(ext)s" $args[0]
|
|
||||||
}
|
|
||||||
|
|
||||||
function ytvb {
|
|
||||||
youtube-dl --merge-output-format mp4 -f "bestvideo+bestaudio[ext=m4a]/best" --embed-thumbnail --external-downloader aria2c --external-downloader-args "-j 16 -s 16 -x 16 -k 5M" --add-metadata -o "%(title)s.%(ext)s" $args[0]
|
|
||||||
}
|
|
||||||
|
|
||||||
function ytvf {
|
|
||||||
youtube-dl --merge-output-format mp4 --format best --embed-thumbnail --external-downloader aria2c --external-downloader-args "-j 16 -s 16 -x 16 -k 5M" --add-metadata -o "%(title)s.%(ext)s" $args[0]
|
|
||||||
}
|
|
||||||
|
|
||||||
function download {
|
function download {
|
||||||
Set-Location ~\Downloads
|
Set-Location ~\Downloads
|
||||||
aria2c -j 16 -s 16 -x 16 -k 5M --file-allocation=none $args[0]
|
aria2c -j 16 -s 16 -x 16 -k 5M --file-allocation=none $args[0]
|
||||||
}
|
}
|
||||||
|
|
||||||
function BlockTheSpot {
|
|
||||||
Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/mrpond/BlockTheSpot/master/install.ps1' | Invoke-Expression
|
|
||||||
}
|
|
||||||
|
|
||||||
Set-Alias -Name ls -Value lsPretty
|
Set-Alias -Name ls -Value lsPretty
|
||||||
Set-Alias -Name grep -Value rg
|
|
||||||
Set-Alias -Name ln -Value mklink
|
Set-Alias -Name ln -Value mklink
|
||||||
Set-Alias -Name vi -Value nvim-qt
|
|
||||||
|
28
restart-unneeded-software.ps1
Normal file
28
restart-unneeded-software.ps1
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
$lively = Get-Process Lively -ErrorAction SilentlyContinue
|
||||||
|
if (!$lively) {
|
||||||
|
Start-Process -FilePath "C:\Users\Banir\AppData\Local\Programs\Lively Wallpaper\Lively.exe"
|
||||||
|
|
||||||
|
Write-Host "Started Lively"
|
||||||
|
} else {
|
||||||
|
Write-Host "Lively already started"
|
||||||
|
}
|
||||||
|
|
||||||
|
$keepassxc = Get-Process KeePassXC -ErrorAction SilentlyContinue
|
||||||
|
if (!$keepassxc) {
|
||||||
|
Start-Process -FilePath "C:\Program Files\KeePassXC\KeePassXC.exe"
|
||||||
|
|
||||||
|
Write-Host "Started KeePassXC"
|
||||||
|
} else {
|
||||||
|
Write-Host "KeePassXC already started"
|
||||||
|
}
|
||||||
|
|
||||||
|
$ferdium = Get-Process Ferdium -ErrorAction SilentlyContinue
|
||||||
|
if (!$ferdium) {
|
||||||
|
Start-Process -FilePath "C:\Users\Banir\AppData\Local\Programs\ferdium\Ferdium.exe"
|
||||||
|
|
||||||
|
Write-Host "Started Ferdium"
|
||||||
|
} else {
|
||||||
|
Write-Host "Ferdium already started"
|
||||||
|
}
|
||||||
|
|
||||||
|
Pause
|
@ -1,2 +1,3 @@
|
|||||||
|
@echo off
|
||||||
ryzenadj --slow-time=60 --vrmmax-current=70000 --tctl-temp=85 --stapm-limit=35000 --stapm-time=1000 --fast-limit=50000 --slow-limit=48000 --max-performance
|
ryzenadj --slow-time=60 --vrmmax-current=70000 --tctl-temp=85 --stapm-limit=35000 --stapm-time=1000 --fast-limit=50000 --slow-limit=48000 --max-performance
|
||||||
pause
|
pause
|
@ -1,2 +1,3 @@
|
|||||||
|
@echo off
|
||||||
ryzenadj --slow-time=60 --vrmmax-current=60000 --tctl-temp=70 --stapm-limit=20000 --stapm-time=1000 --fast-limit=25000 --slow-limit=21000 --max-performance
|
ryzenadj --slow-time=60 --vrmmax-current=60000 --tctl-temp=70 --stapm-limit=20000 --stapm-time=1000 --fast-limit=25000 --slow-limit=21000 --max-performance
|
||||||
pause
|
pause
|
@ -1,2 +1,3 @@
|
|||||||
|
@echo off
|
||||||
ryzenadj --slow-time=60 --vrmmax-current=60000 --tctl-temp=75 --stapm-limit=25000 --stapm-time=1000 --fast-limit=30000 --slow-limit=27000 --max-performance
|
ryzenadj --slow-time=60 --vrmmax-current=60000 --tctl-temp=75 --stapm-limit=25000 --stapm-time=1000 --fast-limit=30000 --slow-limit=27000 --max-performance
|
||||||
pause
|
pause
|
@ -1,2 +1,3 @@
|
|||||||
|
@echo off
|
||||||
ryzenadj --slow-time=30 --vrmmax-current=35000 --tctl-temp=65 --stapm-limit=10000 --stapm-time=300 --fast-limit=12000 --slow-limit=11000 --max-performance
|
ryzenadj --slow-time=30 --vrmmax-current=35000 --tctl-temp=65 --stapm-limit=10000 --stapm-time=300 --fast-limit=12000 --slow-limit=11000 --max-performance
|
||||||
pause
|
pause
|
@ -1,2 +1,3 @@
|
|||||||
|
@echo off
|
||||||
ryzenadj --slow-time=30 --vrmmax-current=30000 --tctl-temp=60 --stapm-limit=10000 --stapm-time=300 --fast-limit=12000 --slow-limit=11000 --power-saving
|
ryzenadj --slow-time=30 --vrmmax-current=30000 --tctl-temp=60 --stapm-limit=10000 --stapm-time=300 --fast-limit=12000 --slow-limit=11000 --power-saving
|
||||||
pause
|
pause
|
3
ryzenadj/batman-arkhman-asylum.cmd
Normal file
3
ryzenadj/batman-arkhman-asylum.cmd
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
@echo off
|
||||||
|
ryzenadj --slow-time=60 --vrmmax-current=42000 --tctl-temp=75 --stapm-limit=14000 --stapm-time=1000 --fast-limit=16000 --slow-limit=15000
|
||||||
|
pause
|
@ -1,2 +1,3 @@
|
|||||||
@echo off
|
@echo off
|
||||||
ryzenadj --slow-time=60 --vrmmax-current=44000 --tctl-temp=70 --stapm-limit=13000 --stapm-time=1000 --fast-limit=18000 --slow-limit=16000 --max-performance
|
ryzenadj --slow-time=60 --vrmmax-current=44000 --tctl-temp=70 --stapm-limit=13000 --stapm-time=1000 --fast-limit=18000 --slow-limit=16000
|
||||||
|
pause
|
@ -10,11 +10,11 @@ Write-Host -ForegroundColor Green "Updating scoop packages"
|
|||||||
Write-Host ""
|
Write-Host ""
|
||||||
scoop update *
|
scoop update *
|
||||||
|
|
||||||
Write-Host ""
|
# Write-Host ""
|
||||||
Write-Host ""
|
# Write-Host ""
|
||||||
Write-Host -ForegroundColor Green "Updating npm packages"
|
# Write-Host -ForegroundColor Green "Updating npm packages"
|
||||||
Write-Host ""
|
# Write-Host ""
|
||||||
npm update -g
|
# npm update -g
|
||||||
|
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
|
Loading…
Reference in New Issue
Block a user