Skip to content

Instantly share code, notes, and snippets.

@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
@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 / ansible-summary.md
Created March 22, 2021 01:42 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@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