Get-ChildItem "*.jpg" | Get-FileHash | group -Property hash | where count -gt 1 | % { $_.group | select -skip 1 } | Remove-Item -Force -Confirm
Get-ChildItem "*(optional).pdf" | Move-Item -Destination ./optional/
# PowerShell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/username/id/raw/'))" | |
$apps = @( | |
@{name = "Microsoft.AzureCLI" }, | |
@{name = "Microsoft.PowerShell" }, | |
@{name = "Microsoft.VisualStudioCode" }, | |
@{name = "Microsoft.WindowsTerminal"; source = "msstore" }, | |
@{name = "Microsoft.AzureStorageExplorer" }, | |
@{name = "Microsoft.PowerToys" }, | |
@{name = "Git.Git" }, | |
@{name = "Docker.DockerDesktop" }, |
// For explanation of this regex see: https://www.codeproject.com/Articles/21080/In-Depth-with-RegEx-Matching-Nested-Constructions and | |
// https://www.codeproject.com/Articles/21183/In-Depth-with-NET-RegEx-Balanced-Grouping | |
private readonly Regex groupsRegex = new (@"(?> | |
\{\%(?=\w+\:) (?<DEPTH>) | |
| | |
\%\} (?<STATEMENT-DEPTH>) | |
| | |
.? | |
)* | |
(?(DEPTH)(?!))", RegexOptions.IgnorePatternWhitespace | RegexOptions.IgnoreCase); |
Get-ChildItem "*.jpg" | Get-FileHash | group -Property hash | where count -gt 1 | % { $_.group | select -skip 1 } | Remove-Item -Force -Confirm
Get-ChildItem "*(optional).pdf" | Move-Item -Destination ./optional/
var fs = require('fs'); | |
var csso = require('csso'); | |
var cssbeautify = require('cssbeautify'); | |
var pathToCss = `C:\\Users\\alme\\Documents\\Code Projects\\${null}`; | |
var css = fs.readFileSync(pathToCss, 'utf8'); | |
// change CSS structure, i.e. don't merge declarations, rulesets etc | |
var result = csso.minify(css, { | |
restructure: true, |