Skip to content

Instantly share code, notes, and snippets.

@jiaming0708
Last active May 31, 2024 01:55
Show Gist options
  • Save jiaming0708/71db3de14ffebfc37f006b582d921a93 to your computer and use it in GitHub Desktop.
Save jiaming0708/71db3de14ffebfc37f006b582d921a93 to your computer and use it in GitHub Desktop.
Software in computer
  • alfred
  • docker desktop
  • postman
  • bitwarden
  • vscode
  • typro
  • wox
  • window terminal
  • container tools
    • docker desktop
    • postman
  • bitwarden
  • development tools
    • linqpad 7
    • vscode
    • vs
    • rider
  • typro
  • database tools
    • sql developer
    • SSMS
    • DBeaver
  • PicPick
  • ScreenToGif
  • nvm
@jiaming0708
Copy link
Author

disable hotkey for snipping tool

  1. Press Windows Key + R for Run, type gpedit.msc, pressEnter to open Local Group Policy Editor.
  2. Navigate to Computer Configuration->Administrative Templates->Windows Components->Tablet PC->Accessories->double click Do not allow Snipping Tool to run.
  3. Select enabled, click OK.

@jiaming0708
Copy link
Author

windows temp folder change location https://answers.microsoft.com/en-us/windows/forum/all/change-location-of-temp-files-folder-to-another/19f13330-dde1-404c-aa27-a76c0b450818

powershell script

# Set the path to the new location where you want to move the temporary folder
$newLocation = "D:\NewTempFolder"

# Get the current path of the temporary folder
$currentLocation = [System.IO.Path]::GetTempPath()

# Copy all the files from the current temporary folder to the new location
robocopy $currentLocation $newLocation /e /move

# Set the new path for the temporary folder
[Environment]::SetEnvironmentVariable("TEMP", $newLocation, "User")

# Set the new path for the TMP environment variable
[Environment]::SetEnvironmentVariable("TMP", $newLocation, "User")

@jiaming0708
Copy link
Author

https://learn.microsoft.com/en-us/nuget/consume-packages/configuring-nuget-behavior

move nuget package folder to other disk
file default path in %appdata%\NuGet\NuGet.Config on windows

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
  </packageSources>
  <config>
    <!-- add this setting -->
    <add key="globalPackagesFolder" value="D:\nuget" />
  </config>
</configuration>

@jiaming0708
Copy link
Author

@jiaming0708
Copy link
Author

how to export and import window wifi
https://cyrians.com/windows-wifi-setting-exportandimport/

export command

netsh wlan export profile key=clear folder=C:\wifipw

import command

for %%f in (.\*) do (
netsh wlan add profile filename="C:\wifipw\%%~nf.xml"
)

@jiaming0708
Copy link
Author

jiaming0708 commented Jun 27, 2023

open PowerShell setting

New-Item -Path $profile -Type File -Force
notepad $profile

adjust setting

oh-my-posh init pwsh --config 'E:/.mytheme.omp.json' | Invoke-Expression

@jiaming0708
Copy link
Author

jiaming0708 commented May 31, 2024

notepad $PROFILE
# 設定 PowerShell 編碼為 UTF-8
$PSDefaultParameterValues['Out-File:Encoding'] = 'utf8'
$PSDefaultParameterValues['Set-Content:Encoding'] = 'utf8'
$PSDefaultParameterValues['Add-Content:Encoding'] = 'utf8'
[console]::OutputEncoding = [System.Text.Encoding]::UTF8
[console]::InputEncoding = [System.Text.Encoding]::UTF8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment