Skip to content

Instantly share code, notes, and snippets.

View cold-logic's full-sized avatar

Christopher Davison cold-logic

View GitHub Profile
@cold-logic
cold-logic / move.sh
Created November 7, 2022 23:29
Move a predefined list of files from one directory into another
#!/bin/bash
# Move files from one directory to another
# Usage: move.sh <filelist.txt> <source_dir> <destination_dir>
# Generate a filelist.txt using `ls > filelist.txt`
# First argument is the path to the filelist.txt that contains a newline separated (\n) list of filenames to move
txtListOfFilenames=$1
# Second argument is the path to the source directory where the files are currently located
@cold-logic
cold-logic / vmware-sway-clipboard-setup.sh
Created February 22, 2026 19:04
Sets up everything needed for copy/paste between Windows 11 (host) and CachyOS running Sway inside VMware Workstation
#!/usr/bin/env bash
set -euo pipefail
echo "=== Updating system ==="
sudo pacman -Syu --noconfirm
echo "=== Installing open-vm-tools ==="
sudo pacman -S --noconfirm open-vm-tools
echo "=== Enabling VMware services ==="