Skip to content

Instantly share code, notes, and snippets.

View WillSams's full-sized avatar
🚀

Will Sams WillSams

🚀
View GitHub Profile
@WillSams
WillSams / vimrc
Last active February 25, 2024 12:06
My Linux Mint Vimrc
"'if filereadable("/etc/vim/vimrc")
" source /etc/vim/vimrc
"endif
filetype off
filetype plugin indent on
runtime! plugin/sensible.vim
if has('mouse')
@WillSams
WillSams / new_box_extras.sh
Last active February 21, 2024 00:55
New Box Install Script
#!/bin/bash
echo "==================================================================="
echo
echo " Fresh Debian-Based Extras Install Script "
echo " You may be prompted for root credentials to complete the install. "
echo
echo "==================================================================="
SCRIPTVERSION="2024.02.20-Debian"
@WillSams
WillSams / vim-in-gitbash.sh
Last active February 14, 2024 23:11
Setting up Vim in Git Bash
#/bin/sh
# https://www.linuxfordevices.com/tutorials/linux/turn-vim-into-an-ide
echo '" Setting some decent VIM settings for programming
" This source file comes from git-for-windows build-extra repository (git-extra/vimrc)
ru! defaults.vim
if has("syntax")
syntax on
@WillSams
WillSams / minidlna-setup.sh
Last active December 10, 2023 20:41
MiniDLNA Setup
SERIALOFINSTANCE=$((100000000000000 + RANDOM % 999999999999999))
sudo bash -c "apt update && apt install minidlna -y"
sudo bash -c "port=8200
friendly_name=Mintbox-Desktop-MiniDLNA
serial='$SERIALOFINSTANCE'
media_dir=A,/media/wsams/mediadrive2/Music
media_dir=V,/media/wsams/mediadrive2/Videos/Movies
@WillSams
WillSams / config.lua-20231005
Last active October 24, 2023 11:22
My LunarVim Config
-- GODOT CONFIGURATION --------------------------------------------
local dap = require('dap')
dap.adapters.godot = {
type = "server",
host = '127.0.0.1',
port = 6008,
}
dap.configurations.gdscript = {
{
@WillSams
WillSams / m68k_dev_setup.sh
Last active October 17, 2023 22:48
Setup for Motorola 68000 (Sega, Neo Geo) Cross Compiler on Debian-based System
#!/bin/bash
echo "==================================================================="
echo
echo " My m68000 Development Setup "
echo " You may be prompted for root credentials to complete the install. "
echo
echo " Toolchain is GNU so it expects you to write AT&T style assembly. "
echo " If you want the Windows (MSYS2) script, it's here: "
echo " https://gist.github.com/WillSams/f592f9d494b51119945440f7e91079b0 "
@WillSams
WillSams / openplc_install.sh
Last active September 19, 2023 15:27
Open PLC Install
# Open PLC Install
# Editor and runtime
mkdir temp && cd $_
git clone https://github.com/thiagoralves/OpenPLC_v3.git
cd OpenPLC_v3
sudo bash -c "./install.sh linux"
cd ../..
@WillSams
WillSams / will-unity-editor-layout.wlt
Created September 1, 2023 09:34
My Unity Editor Layout
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &1
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
@WillSams
WillSams / openplc_modbus_examples.json
Last active June 21, 2023 10:06
Node Red / OpenPLC / Modbus
[
{
"id": "bf767ff1cdc5fa2f",
"type": "tab",
"label": "Getting Started",
"disabled": false,
"info": "",
"env": []
},
{
@WillSams
WillSams / howto_bitmaps_to_NES
Last active May 29, 2023 14:29
Instructions on how to convert bitmaps into NES graphics.
Pre-requisite
--------------
- Install GIMP: https://www.gimp.org/
- Download the Shiru's NES Screen Tooll: https://shiru.untergrund.net/software.shtml
- Download this 8-bit color palette: http://zanagb.deviantart.com/art/The-NES-GIMP-Pallete-V2-197049739
- Import the palette into GIMP (Windows->Dockable Dialogs->Palettes, then Right-Click and import)
1 - Open your image in GIMP, preferably a 128x128 one.
2 - Go to Image -> Mode -> Indexed. Select "Use custom palette" and click on the colors icon. Navigate to the NESPAL.gpl file you just imported.