This file contains hidden or 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
#SingleInstance force | |
SetTitleMatchMode, 2 | |
; FYI: | |
; # = Win | |
; + = Shift | |
; ! = Alt | |
; ^ = Ctrl | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
This file contains hidden or 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
################################################################## | |
# standard directory functions | |
function mcd ($path) { | |
mkdir $path | |
chdir $path | |
} | |
function rmrf ($path) { | |
rm -r -force $path |
This file contains hidden or 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
# Download and open the NASA Astronomy picture of the day (apod) | |
# Download to target folder $TargetFolder (relative to this script's location) | |
# https://apod.nasa.gov/apod/archivepix.html | |
param | |
( | |
[string]$TargetFolder = "images" | |
) | |
$ErrorActionPreference = "Stop" |
This file contains hidden or 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
import os | |
import shutil | |
from typing import List, Dict | |
def prepare_crash(file_date: str, | |
source_cfg_file: str, | |
source_undo_folder: str, | |
source_basefiles_folder: str, | |
target_path: str, | |
overwrite: bool=True): |