Skip to content

Instantly share code, notes, and snippets.

View Araxeus's full-sized avatar

Araxeus

  • Discord: `Araxeus#0819`
  • 17:42 (UTC +03:00)
View GitHub Profile
@Araxeus
Araxeus / GitHub Markdown Tooltips.md
Created February 17, 2023 20:14
GitHub Markdown Tooltips

Hover itㅤ


Hover itㅤ[<img src="https://www.wppluginsforyou.com/wp-content/uploads/2020/05/tooltips.png" width="15px" />
](## "Code preview syntax was generated using gh-linguist-preview")
@Araxeus
Araxeus / zip.ps1
Last active January 29, 2024 07:34
Powershell script to zip files while preserving folder structure - includes lots of optional parameters like: file sync, exclude files, zip overwrite, custom FilterScript, automatic zip name from json, and more
#!/usr/bin/env pwsh
#Requires -Version 7
# Specifying no parameter will result in current working directory ($pwd) being archived into $pwd\$pwd.zip
param (
# The following paths can be relative or absolute:
# path to folder/s containing the files to be archived
[Alias("i","input","from")][string[]][ValidateScript({ Test-Path -LiteralPath $_ })] $FolderPaths = @($PWD),
# path to zipfile / zipFolder if $ZipNameFromJson is specified (will be created if it doesn't exist)
[Alias("t","to","output")][string] $ZipPath = "", # defaults to $PWD.zip