Skip to content

Instantly share code, notes, and snippets.

View SebastiaanKloos's full-sized avatar

Sebastiaan Kloos SebastiaanKloos

View GitHub Profile
@SebastiaanKloos
SebastiaanKloos / cra
Created February 3, 2025 10:00
Bash script to simply require a local composer package by providing it's repository path
#!/bin/bash
# Check if a path argument is provided
if [ $# -eq 0 ]; then
echo "Please provide the path to the local repository."
exit 1
fi
# Get the absolute path of the provided directory
repo_path=$(cd "$1" && pwd)
@SebastiaanKloos
SebastiaanKloos / mv-zdd.sh
Created January 7, 2025 14:56
Move storage for ZDD
#!/bin/bash
read -p "Enter domain name (e.g. example.com): " domain_name
HOME_DIR=$HOME
# Check if source exists
if [ ! -d "$HOME_DIR/$domain_name/storage" ]; then
echo "Error: Source storage directory not found"
exit 1
fi
@SebastiaanKloos
SebastiaanKloos / keybase.md
Last active October 24, 2024 12:55
keybase.md

Keybase proof

I hereby claim:

  • I am sebastiaankloos on github.
  • I am skloos (https://keybase.io/skloos) on keybase.
  • I have a public key ASA7wPKqWcMK64Ak9I2qlBQ_-ONJ44H77WVKHbNyPsDAQwo

To claim this, I am signing this object:

@SebastiaanKloos
SebastiaanKloos / position-ray.applescript
Created May 21, 2024 11:12
Position Ray Applescript for Raycast
#!/usr/bin/osascript
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Position Ray
# @raycast.mode compact
# Optional parameters:
# @raycast.packageName Developer Utils
@SebastiaanKloos
SebastiaanKloos / arc-icon.sh
Created March 6, 2024 09:53
Script for Raycast to change the Arc icon
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Arc icon
# @raycast.mode compact
# Optional parameters:
# @raycast.icon 🔪
# @raycast.argument1 { "type": "text", "placeholder": "Icon" }
@SebastiaanKloos
SebastiaanKloos / screen-resize.applescript
Last active February 6, 2025 23:41
Resize current screen, center current screen & capture window with CleanShot
#!/usr/bin/osascript
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Screenshot resize
# @raycast.mode silent
# Optional parameters:
# @raycast.icon 📸
# @raycast.packageName Utilities