Skip to content

Instantly share code, notes, and snippets.

@dingwen07
dingwen07 / png2icns.command
Created January 19, 2024 04:05
Create Apple Icon Image format from PNG
#!/bin/bash
# Check args
if [ "$#" -eq 0 ]; then
echo "Usage: $0 inputfile.png [outputfile.icns]"
echo "Note: inputfile.png should be PNG format and at least 1024x1024 pixels."
exit 1
fi
INPUT_FILE=$1
#!/bin/bash
CONFIG_FILE=$HOME/.config/rclone/rclone.conf
MOUNT_POINT_BASE=$HOME/mnt
CACHE_MAX_AGE=168h
CACHE_MAX_SIZE=100G
# Create mount point base directory if it doesn't exist
mkdir -p $MOUNT_POINT_BASE
#!/bin/bash
# Check if zsh is installed
if ! command -v zsh &> /dev/null
then
echo "zsh could not be found"
exit
fi
# Install oh-my-zsh unattended

Keybase proof

I hereby claim:

  • I am dingwen07 on github.
  • I am extrawdw (https://keybase.io/extrawdw) on keybase.
  • I have a public key ASDSlLVgEJnJmr7_-AMO0UVmsPwff-xsniH8d9L1Gl_KSAo

To claim this, I am signing this object: