Skip to content

Instantly share code, notes, and snippets.

@a-mcf
a-mcf / newPlasterModule.ps1
Created April 24, 2018 02:26
New Plaster Module
# creates a plaster module in the current folder
Invoke-Plaster -TemplatePath $template[0].templatepath -DestinationPath . -ModuleName (Get-Item -Path .).Name -Version 0.0.1
@a-mcf
a-mcf / repo-reset.md
Created May 2, 2021 04:59 — forked from heiswayi/repo-reset.md
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A
@a-mcf
a-mcf / Format-LastPassVault.ps1
Last active January 4, 2023 03:26
PowerShell Lastpass Encrypted Vault Viewer
<#
Quick script to make a LastPass vault export easier to parse, as requested on
Security Now #904.
Requires an XML file downloaded as per Wladimir Palant's blog and referenced by
the show notes:
- https://palant.info/2022/12/24/what-data-does-lastpass-encrypt/#downloading-your-lastpass-data
You should proably just use this instead:
- https://github.com/cfbao/lastpass-vault-parser