Skip to the relevant sections if needed.
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
| #!/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]" |
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
| # Phil's zsh config for work | |
| # | |
| # The tool of the righteous | |
| export EDITOR="nvim" | |
| export SUDO_EDITOR="$EDITOR" | |
| # Keep the zsh history so the auto suggest can work | |
| HISTSIZE=10000 | |
| SAVEHIST=10000 |
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
| # Generated by Powerlevel10k configuration wizard on 2023-08-08 at 16:40 BST. | |
| # Based on romkatv/powerlevel10k/config/p10k-lean-8colors.zsh, checksum 63804. | |
| # Wizard options: nerdfont-v3 + powerline, large icons, unicode, lean_8colors, 24h time, | |
| # 1 line, compact, many icons, concise, instant_prompt=verbose. | |
| # Type `p10k configure` to generate another config. | |
| # | |
| # Config for Powerlevel10k with 8-color lean prompt style. Type `p10k configure` to generate | |
| # your own config based on it. | |
| # | |
| # Tip: Looking for a nice color? Here's a one-liner to print colormap. |
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
| #!/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 |
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
| format = """ | |
| $username\ | |
| $hostname💾 \ | |
| $directory\ | |
| $git_branch\ | |
| $git_state\ | |
| $git_status\ | |
| $cmd_duration\ | |
| $line_break\ | |
| $python\ |