This commit is contained in:
Stian 2025-01-21 10:29:30 +01:00
parent bb6f4ae0c2
commit 5fd37353ab
8 changed files with 41 additions and 32 deletions

View File

@ -1,15 +0,0 @@
POWERSHELL
==========
Get-AppxPackage -AllUsers
Get-AppxPackage -Allusers * | Select Name, PackageFullName
Get-AppxProvisionedPackage -online | select packagename
Get-AppxPackage *zunemusic* | Remove-AppxPackage
Get-AppxProvisionedpackage online | where-object {$_.packagename notlike “*store*”} | Remove-AppxProvisionedPackage -online
Get-AppxProvisionedpackage online | where-object {$_.packagename like “*xbox*”} | Remove-AppxProvisionedPackage -online
Remove-AppxProvisionedPackage -online -packagename <string>

20
Batch/AppXPackages.ps1 Executable file
View File

@ -0,0 +1,20 @@
# Get-AppxPackage, Get-AppxProvisionedPackage
Write-Output "AppxPackage"
Write-Output "======================"
#Get-AppxPackage -AllUsers
Get-AppxPackage -Allusers * | Select Name, PackageFullName
#Get-AppxPackage *Windows.DevHome* | Remove-AppxPackage
#Get-AppxPackage -AllUsers -PackageTypeFilter Bundle -Name "*Windows.DevHome*" | Remove-AppxPackage
#Get-appxprovisionedpackage -online | where-object {$_.packagename -like '*Windows.DevHome*'} | remove-appxprovisionedpackage -online
Write-Output "AppxProvisionedPackage"
Write-Output "======================"
Get-AppxProvisionedPackage -online | select PackageName
#Get-AppxProvisionedpackage online | where-object {$_.packagename like “*xbox*”} | Remove-AppxProvisionedPackage -online
#Get-AppxProvisionedpackage online | where-object {$_.packagename notlike “*store*”} | Remove-AppxProvisionedPackage -online
#Remove-AppxProvisionedPackage -online -packagename <string>

View File

@ -33,3 +33,4 @@ CommandWindowMode=2
[EnvironmentVariables]
Lines=1
Line1=Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\dotnet\;;D:\bin\AOMEI\AOMEI Backupper\7.3.3;d:\bin\tools;d:\bin\cygwin\bin;d:\bin\Sysinternals;d:\bin\NirsoftLauncher\NirSoft\x64;d:\bin\NirsoftLauncher\NirSoft;d:\bin\ffmpeg\bin;C:\Users\Stian\AppData\Local\Microsoft\WindowsApps;
WinPos=2C 00 00 00 00 00 00 00 01 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 22 02 00 00 76 00 00 00 EF 06 00 00 27 04 00 00

View File

@ -9,9 +9,9 @@ exclude_paths=(
# Get array of dirs
dirs=( $(find $@ -type d ${exclude_paths[@]}) )
for i in "${!dirs[@]}"
do
# Check for existing index made by 'tree' (rc=0) or nonexistent (rc=2)
for i in "${!dirs[@]}"; do
# Check for existing index made by 'tree' (rc=0)
# or nonexistent (rc=2)
grep -qsm1 "Made by 'tree'" "${dirs[i]}/index.html"
if [ $? -eq 1 ]; then
unset 'dirs[i]'
@ -28,18 +28,21 @@ echo
# Get confirm for creation of index
read -n1 -p "Continue? (y/N) " confirm
if ! echo $confirm | grep -q '^[Yy]$'; then echo -e "\nAborting"; exit 1; fi
if ! echo $confirm | grep -q '^[Yy]$'; then
echo -e "\nAborting"; exit 1
fi
echo
# Create the indexes
for i in "${!dirs[@]}"
do
for i in "${!dirs[@]}"; do
cd "${dirs[i]}"
echo "Creating index in ${dirs[i]}"
# Generate HTML index - Color, Date, Size(h), No lines(i), Title(T), filter self(I)
# Pipe to sed: Remove credits, link to parent dir, change colours
tree -CDhi -H "." -T "$(basename $PWD)" -I "index.html" -L 1 --dirsfirst --charset "utf-8"\
| sed -e '/<hr>/,+7d' -e 's/href="\.">\./href="..">../'\
tree -CDhi -H "." -T "$(basename $PWD)" -I "index.html" -L 1\
--dirsfirst --charset "utf-8"\
| sed\
-e '/<hr>/,+7d' -e 's/href="\.">\./href="..">../'\
-e 's/BODY {/BODY { color: lime; background: black;/'\
-e 's/color: black;/color: lime;/'\
-e 's/color: blue;/color: deepskyblue;/'\

View File

@ -112,7 +112,7 @@ history.max_lines = 10000
# name: Share history between instances
# type: boolean
history.shared = False
history.shared = True
# name: Expand envvars when completing
# type: boolean

View File

@ -20,7 +20,7 @@ gg=global /1 /E .git $*
gh=git hist $*
gl=git log --oneline --all --graph --decorate --color $*
home=cd /d "%USERPROFILE%"
kill=pskill $?
kill=pskill $*
la=ls -la --color=auto --group-directories-first $*
ll=ls -l --color=auto --group-directories-first $*
ls=ls --color=auto --group-directories-first $*

View File

@ -26,7 +26,7 @@
<WordsStyle name="USER SCALAR 4" styleID="135" fgColor="FF8040" bgColor="FFFFD9" fontName="" fontStyle="1" fontSize="" keywordClass="substyle8"></WordsStyle>
</LexerType>
<LexerType name="batch" desc="Batch" ext="">
<WordsStyle name="DEFAULT" styleID="0" fgColor="E1E1E1" bgColor="001B33" fontName="" fontStyle="0" fontSize=""></WordsStyle>
<WordsStyle name="DEFAULT" styleID="0" fgColor="F0F0F0" bgColor="001B33" fontName="" fontStyle="0" fontSize=""></WordsStyle>
<WordsStyle name="COMMENT" styleID="1" fgColor="0088FF" bgColor="001B33" fontName="" fontStyle="0" fontSize=""></WordsStyle>
<WordsStyle name="KEYWORDS" styleID="2" fgColor="FF9D00" bgColor="001B33" fontName="" fontStyle="1" fontSize="" keywordClass="instre1"></WordsStyle>
<WordsStyle name="LABEL" styleID="3" fgColor="FF3E3E" bgColor="001B33" fontName="" fontStyle="1" fontSize=""></WordsStyle>
@ -371,7 +371,7 @@
</LexerType>
<LexerType name="powershell" desc="PowerShell" ext="">
<WordsStyle name="DEFAULT" styleID="0" fgColor="E5E5E5" bgColor="001B33" fontName="" fontStyle="0" fontSize=""></WordsStyle>
<WordsStyle name="COMMENT" styleID="1" fgColor="969696" bgColor="001B33" fontName="" fontStyle="0" fontSize=""></WordsStyle>
<WordsStyle name="COMMENT" styleID="1" fgColor="A8A8A8" bgColor="001B33" fontName="" fontStyle="0" fontSize=""></WordsStyle>
<WordsStyle name="STRING" styleID="2" fgColor="3AD900" bgColor="001B33" fontName="" fontStyle="0" fontSize=""></WordsStyle>
<WordsStyle name="CHARACTER" styleID="3" fgColor="3AD900" bgColor="001B33" fontName="" fontStyle="0" fontSize=""></WordsStyle>
<WordsStyle name="NUMBER" styleID="4" fgColor="FF0044" bgColor="001B33" fontName="" fontStyle="0" fontSize="">if else for while</WordsStyle>
@ -381,12 +381,12 @@
<WordsStyle name="INSTRUCTION WORD" styleID="8" fgColor="FF9D00" bgColor="001B33" fontName="" fontStyle="1" fontSize="" keywordClass="instre1"></WordsStyle>
<WordsStyle name="CMDLET" styleID="9" fgColor="0088FF" bgColor="001B33" fontName="" fontStyle="0" fontSize="" keywordClass="instre2"></WordsStyle>
<WordsStyle name="ALIAS" styleID="10" fgColor="0080FF" bgColor="001B33" fontName="" fontStyle="0" fontSize="" keywordClass="type1"></WordsStyle>
<WordsStyle name="FUNCTION" styleID="11" fgColor="C40062" bgColor="001B33" fontName="" fontStyle="0" fontSize="" keywordClass="type2"></WordsStyle>
<WordsStyle name="USER KEYWORDS" styleID="12" fgColor="800000" bgColor="001B33" fontName="" fontStyle="0" fontSize="" keywordClass="type3"></WordsStyle>
<WordsStyle name="COMMENT STREAM" styleID="13" fgColor="008080" bgColor="001B33" fontName="" fontStyle="0" fontSize=""></WordsStyle>
<WordsStyle name="HERE STRING" styleID="14" fgColor="808080" bgColor="001B33" fontName="" fontStyle="0" fontSize=""></WordsStyle>
<WordsStyle name="FUNCTION" styleID="11" fgColor="FF48A4" bgColor="001B33" fontName="" fontStyle="0" fontSize="" keywordClass="type2"></WordsStyle>
<WordsStyle name="USER KEYWORDS" styleID="12" fgColor="FF2F2F" bgColor="001B33" fontName="" fontStyle="0" fontSize="" keywordClass="type3"></WordsStyle>
<WordsStyle name="COMMENT STREAM" styleID="13" fgColor="A8A8A8" bgColor="001B33" fontName="" fontStyle="0" fontSize=""></WordsStyle>
<WordsStyle name="HERE STRING" styleID="14" fgColor="A8A8A8" bgColor="001B33" fontName="" fontStyle="0" fontSize=""></WordsStyle>
<WordsStyle name="HERE CHARACTER" styleID="15" fgColor="808080" bgColor="001B33" fontName="" fontStyle="0" fontSize=""></WordsStyle>
<WordsStyle name="COMMENT DOC KEYWORD" styleID="16" fgColor="008080" bgColor="001B33" fontName="" fontStyle="1" fontSize="" keywordClass="type4"></WordsStyle>
<WordsStyle name="COMMENT DOC KEYWORD" styleID="16" fgColor="8B8B8B" bgColor="001B33" fontName="" fontStyle="1" fontSize="" keywordClass="type4"></WordsStyle>
</LexerType>
<LexerType name="props" desc="Properties file" ext="">
<WordsStyle name="DEFAULT" styleID="0" fgColor="FFFF00" bgColor="001B33" fontName="" fontStyle="0" fontSize=""></WordsStyle>