Skip to content

Instantly share code, notes, and snippets.

View wcoastsands's full-sized avatar
😎
Godot? Don't mind if I g'do!

wcoastsands

😎
Godot? Don't mind if I g'do!
  • 15:52 (UTC -07:00)
View GitHub Profile
@wcoastsands
wcoastsands / sort-files.sh
Last active January 10, 2024 06:25
Sorts files into subfolders
#!/bin/bash
# Sorts files into subfolders by date, or by file extension.
#
# TODO: Set the permissions on this file to 700.
# chmod 700 sort-files.sh
# TODO: Create symlinks for use with this script.
# ln -s sort-files.sh sort-files
# File extension (optional parameter).
EXT="${1^^}"
@wcoastsands
wcoastsands / ssh-helper.sh
Last active September 27, 2023 19:16
Helper utility for SSH and SFTP
#!/bin/bash
# Provides login shortcuts via SSH and SFTP.
#
# TODO: Set the permissions on this file to 700.
# chmod 700 ssh-helper.sh
# TODO: Create symlinks for use with this script.
# ln -s ssh-helper.sh ssh
# ln -s ssh-helper.sh sftp
echo "Using the SSH Helper..."
@wcoastsands
wcoastsands / config-wacom.sh
Created November 2, 2022 06:36
Configure Wacom Bamboo Pen and Touch
#!/bin/bash
# Configure Wacom Bamboo Pen and Touch (CTH-460)
#
# Device List:
# Wacom Bamboo 2FG 4x5 Pen stylus
# Wacom Bamboo 2FG 4x5 Finger touch
# Wacom Bamboo 2FG 4x5 Pad pad
# Wacom Bamboo 2FG 4x5 Pen eraser
#
# Express Key Button IDs (left side):
@wcoastsands
wcoastsands / ReaperInstallGuide.md
Last active September 22, 2022 18:06
Installing Reaper on Ubuntu 22.04 LTS

Installing Reaper on Ubuntu 22.04 LTS

The best way to install the Reaper digital audio workstation on Linux is to install the included script. You’ll have to download the Reaper DAW program files from the internet to start.

After downloading the latest Reaper DAW files to your computer, you’ll have to extract the contents of the TarXZ archive using the tar command.

tar xvf reaper646_linux_x86_64.tar.xz

Once the extraction process is complete, you must create a folder named Reaper in your home directory using the mkdir command.

@wcoastsands
wcoastsands / 01_DOSBoxGames.md
Last active September 22, 2022 21:05
DOSBox Games

DOSBox Games

A collection of DOSBox games, config files, and a launcher style bash script.

Unpacking

This collection of DOSBox games is distributed as a compressed zip archive.

To install, first locate or create a destination directory for the games collection. Then unzip the contents of the archive to the destination directory, and create a symlink to the launcher script in a common path directory.

@wcoastsands
wcoastsands / MovePHD2Logs.bat
Last active January 5, 2023 19:29
Move PHD2 log files to avoid deletion
@echo off
:: MovePHD2Logs.bat
:: Written by Nikkolai Davenport (https://github.com/wcoastsands).
:: Move PHD2 log files into subfolders to avoid automatic deletion.
setlocal
set "Title=MovePHD2Logs"
set "Version=1.1.9"
set "Author=Nikkolai Davenport (https://github.com/wcoastsands)"
set "Heading=%Title% (v%Version%)"
@wcoastsands
wcoastsands / .gitattributes
Last active May 21, 2021 15:37
.gitattributes file for Unity projects
# Auto detect text files and perform LF normalization
* text=auto
# These files are text and should be normalized (convert crlf => lf)
*.cs text eol=lf diff=csharp
*.js text eol=lf
*.xaml text
*.csproj text
*.sln text
*.tt text
@wcoastsands
wcoastsands / Joysticks.ini
Last active June 16, 2022 06:44
Celestron NexRemote Joystick Mapping
[JOYSTICKS]
[JOYSTICK]
Name = Controller (XBOX 360 For Windows)
; This is the Xbox 360 USB Wired Controller for Windows
Button1 = Enter ;Button A (bottom action)
Button2 = Undo ;Button B (right action)
Button3 = MenuDown ;Button X (left action)
Button4 = MenuUp ;Button Y (top action)
Button5 = RateDown ;Button LB (left shoulder)
@wcoastsands
wcoastsands / avx.def
Last active August 23, 2021 16:43
Celestron AVX fundamentals for PEMPro
#AVX
598.3617 Worm Drive
299.181 Gear3 Eccentricity
99.727 Gear2 Eccentricity
33.242 Gear1 Eccentricity
19.945 Transfer Gear Meshing Error
18.699 Gear3-4 Meshing Error
11.081 Motor Pinion Eccentricity
9.066 Gear2-3 Meshing Error
3.022 Gear1-2 Meshing Error
@wcoastsands
wcoastsands / rpi-thermal-monitor.sh
Last active March 30, 2022 20:20
Thermal bench test for Raspberry Pi
#!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
# Resolve $SOURCE until the file is no longer a symlink.
while [ -h "$SOURCE" ]; do
DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
# If $SOURCE was a relative symlink, we need to resolve it
# relative to the path where the symlink file was located.
done