Skip to content

Instantly share code, notes, and snippets.

@anzeljg
anzeljg / touch.cmd
Last active July 3, 2019 07:16
implementation of 'touch' command on Windows
Windows does not natively include a touch command.
You can use any of the available public versions or you can use your own version.
Save this code as touch.cmd and place it somewhere in your path.
@echo off
setlocal enableextensions disabledelayedexpansion
(for %%a in (%*) do if exist "%%~a" (
pushd "%%~dpa" && ( copy /b "%%~nxa"+,, & popd )
@anzeljg
anzeljg / Moosh_bulk_course-restore.md
Last active January 5, 2023 03:21
Moosh - Bulk Backup Restore Courses

Moosh - Bulk Backup Restore Courses

by Just Another Engineer (Source)

Given a file with content as below per line which can be created based on sudo -u www-data moosh course-list | awk -F "," '{ print $1 "," $3}':

"1234","XX - XXXX/XXX/XX"