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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"type": "os", | |
"style": "plain", | |
"foreground": "#26C6DA", |
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
/* Sources: | |
- https://learn.microsoft.com/en-us/microsoft-edge/devtools-guide-chromium/storage/indexeddb | |
- https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Using_IndexedDB?retiredLocale=de#adding_retrieving_and_removing_data | |
*/ | |
var fileInput = document.createElement('input'); | |
fileInput.type = 'file'; | |
fileInput.addEventListener('change', (e) => { | |
const reader = new FileReader(); |
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
$items = Get-ChildItem ./ -Recurse | |
# check if every item found in the directory where this script is currently in is older than 30 days and delete them. | |
# Also exclude this script from results. | |
$removedItems = 0 | |
$items.ForEach({ | |
if( ($_.LastWriteTime -lt (Get-Date).AddDays(-30)) -and ($_.FullName -ne $PSCommandPath) ) { |