Skip to content

Instantly share code, notes, and snippets.

View philpicton's full-sized avatar
:octocat:

Phil Picton philpicton

:octocat:
View GitHub Profile
@philpicton
philpicton / docx-to-md.sh
Created November 27, 2025 16:23 — forked from dropletmedia/docx-to-md.sh
Convert docx to markdown
#!/bin/bash
# a script to convert docx to markdown and extract images into subfolder
# requirements: pandoc
#
if [ -z "$1" ]; then
echo "Usage:"
echo ""
echo " docx-to-md.sh [filename-no-extension]"
@philpicton
philpicton / notify-slack
Created June 21, 2023 11:55
Bash script to notify Slack channel (via webhook) when a command has completed.
#!/bin/bash
#
# Author: Ade Goodyer
# Date: 2023-06-21T11:31
# Description: Bash script to run command and then notify Slack of success or failure.
# Notes: Create alias or add to PATH to use.
# Requires chmod +x to run.
#
# Usage: notify-slack # usage
# notify-slack ls # slack notification without output