This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$help": "https://aka.ms/terminal-documentation", | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"actions": | |
[ | |
{ | |
"command": | |
{ | |
"action": "copy", | |
"singleLine": false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module posh-git | |
Import-Module oh-my-posh | |
Set-Theme Paradox | |
function Update-Packages { | |
# Push-Location | |
# $node_version = node -v | |
# $node_path = "$env:appdata\nvm\$node_version" | |
# Write-Host "node_version: $node_version" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# git mv a folder and sub folders in windows | |
function Move-GitFolder { | |
param ( | |
$target, | |
$destination | |
) | |
if (Test-Path $target -PathType Leaf){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$SourceFolderPath = 'C:\repo\PPMS' | |
$FinalFolderPath = 'C:\repo\PPMSF' | |
# Get existing files into arrays: | |
$SourceObjects = Get-ChildItem -Path $SourceFolderPath -Recurse -Include ("*.js", "*.ts", "*.html", "*.cs", "*.cshtml","*.ts", "*.json" , "*.svg", "*.css", "*.scss", "*.csproj", "*.dcproj", "*.gif", "*.sh", "*.yml", "*.bat", "*.ps1", "*.jpg", "*.jpeg", "*.png" ) | |
# $FinalObjects = Get-ChildItem -Path $FinalFolderPath -Recurse | |
# $hash=@{} | |
# Loop all files in the source folder: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace FindInvalidCharacterInEnvironment | |
{ |