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 / .zshrc
Last active April 22, 2025 10:50
zsh config for work
# 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
@philpicton
philpicton / .p10k.zsh
Created August 8, 2023 15:50
powerlevel10k config file - respects terminal theme, works nice with Warp
# 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.
@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
@philpicton
philpicton / Linux permissions.md
Created May 12, 2023 20:06
Linux permissions.md
OWNER                  GROUP                OTHERS
400  200  100          40   20    10        4    2     1
read write execute     read write execute   read write execute

Common Permissions

@philpicton
philpicton / Install Nextcloud in Docker on fresh Ubuntu 22.04 lxc.md
Created May 9, 2023 22:19
Install Nextcloud in Docker on fresh Ubuntu 22.04 lxc.md

1. Install Docker

apt-get update && apt-get upgrade -y

adduser phil

usermod -aG sudo phil

logout
@philpicton
philpicton / starship.toml
Created November 29, 2022 12:27
Starship config
format = """
$username\
$hostname💾 \
$directory\
$git_branch\
$git_state\
$git_status\
$cmd_duration\
$line_break\
$python\