I hereby claim:
- I am ramblinggeekuk on github.
- I am ramblinggeek (https://keybase.io/ramblinggeek) on keybase.
- I have a public key ASAB1mx3017_lhFBWndfgg31_tO9J_Q-SdCvD738X_289wo
To claim this, I am signing this object:
# ToggleDarkMode.ps1 | |
$registryPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" | |
$appsUseLightTheme = Get-ItemPropertyValue -Path $registryPath -Name "AppsUseLightTheme" | |
$newValue = if ($appsUseLightTheme -eq 1) { 0 } else { 1 } | |
Set-ItemProperty -Path $registryPath -Name "AppsUseLightTheme" -Value $newValue | |
Set-ItemProperty -Path $registryPath -Name "SystemUsesLightTheme" -Value $newValue | |
# Refresh theme | |
RUNDLL32.EXE USER32.DLL,UpdatePerUserSystemParameters |
Commands : | |
# Install Prerequisites | |
Invoke-WebRequest -Uri https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -outfile Microsoft.VCLibs.x86.14.00.Desktop.appx | |
Add-AppxPackage Microsoft.VCLibs.x86.14.00.Desktop.appx | |
# Download Terminal (Change version) | |
Invoke-WebRequest -Uri https://github.com/microsoft/terminal/releases/download/v1.7.1091.0/Microsoft.WindowsTerminal_1.7.1091.0_8wekyb3d8bbwe.msixbundle -outfile Microsoft.WindowsTerminal_1.7.1091.0_8wekyb3d8bbwe.msixbundl | |
Add-AppxPackage -Path .\Microsoft.WindowsTerminal_1.7.1091.0_8wekyb3d8bbwe.msixbundle |
<?xml version="1.0" encoding="UTF-8" ?> | |
<log> | |
<start time="2024-01-19 18:57:58.070524 +0000" appName="BvSshServer" appVersion="9.32" thisFile="C:\Program Files\Bitvise SSH Server\Logs\BvSshServer20240119-185758069-P0000.log"/> | |
<event seq="1" time="2024-01-19 18:57:58.067673 +0000" app="BvSshServer 9.32" type="Info" name="I_SERVICE_CONFIG_DESCRIPTION" desc="Configuration description."> | |
<parameters configPart="ServerSettings"/> | |
<change time="2024-01-19 18:57:27.257959 +0000" action="Default settings created during server installation." process="BvSshServer.exe"/> | |
<settings fullSettingsLogReason="Startup"> | |
<powerShell><![CDATA[ | |
$cfg = new-object -com "Bitvise.BssCfg.915" |
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"background": "#0E050F", | |
"foreground": "#EFDCF9", | |
"properties": { |
Add-VpnConnection -Name <vpn name> -ServerAddress <ip/url> -AllUserConnection -RememberCredential -TunnelType PPTP -EncryptionLevel Required -AuthenticationMethod MSChapv2 -Force $true | |
Get-VpnConnection -AllUserConnection -Name <vpn name> | Set-VpnConnection -SplitTunneling $false -DnsSuffix <domain dns> |
mkdir ~/.ssh | |
chmod 0700 ~/.ssh | |
touch ~/.ssh/authorized_keys | |
chmod 0644 ~/.ssh/authorized_keys |
##This script checks for devices registered to AzureAD and removes them so you can successfully perform an AzureAD join. | |
# We recommend you backup your registry prior to running. We take no responisbility for the use of this script. | |
$sids = Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\EnterpriseResourceManager\Tracked' -name |where-object {$_.Length -gt 25} | |
Foreach ($sid in $sids){ | |
Write-host "Found a registered device. Would you like to remove the device registration settings for SID: $($sid)?" -ForegroundColor Yellow | |
$Readhost = Read-Host " ( y / n ) " | |
Switch ($ReadHost) |
// to get the location the assembly is executing from | |
//(not necessarily where the it normally resides on disk) | |
// in the case of the using shadow copies, for instance in NUnit tests, | |
// this will be in a temp directory. | |
string path = System.Reflection.Assembly.GetExecutingAssembly().Location; | |
//To get the location the assembly normally resides on disk or the install directory | |
string path = System.Reflection.Assembly.GetExecutingAssembly().CodeBase; | |
//once you have the path you get the directory with: |
I hereby claim:
To claim this, I am signing this object:
{"lastUpload":"2019-09-19T20:08:01.081Z","extensionVersion":"v3.4.2"} |