Skip to content

Instantly share code, notes, and snippets.

View WillSams's full-sized avatar
🚀

Will Sams WillSams

🚀
View GitHub Profile
@WillSams
WillSams / m68k_dev_setup.sh
Last active October 23, 2022 18:06
Setup for Motorola 68000 (Sega, Neo Geo) Cross Compiler on Windows-based System
#!/bin/bash
echo "==================================================================="
echo
echo " My m68000 Development Setup "
echo " You may be prompted by UAC for credentials to complete the install "
echo
echo " Pre-req: Latest 64-bit MSYS2 from http://www.msys2.org/ "
echo
echo " Howto: Use 'wget' to download the raw version of this script "
@WillSams
WillSams / install-hyperkin-91.txt
Last active April 28, 2020 11:37
Hyperkin X91 on Linux
# For Hyperkin x91 wired XBox One/Windows 10 controller, use xpad to get it working.
# In RetroPie settings, update option Xpad package from source and restart your machine.
# The step above should be fine enough for you Linux desktop. For Raspberry PI, if it still
# isn't working then do this first before updating from source again:
rm -rf /opt/retropie/supplementary/xpad
sudo git clone https://github.com/paroj/xpad.git /opt/retropie/supplementary/xpad
# If on desktop instead of RaspberryPI, calibrate your controller after installing jstest-gtk.
# Ignore the dead space issue with you concerning your right analog stick. :D
sudo modprobe xpad # you may need to do this after that initial restart :D
@WillSams
WillSams / git_tricks
Created January 31, 2019 20:37 — forked from michaelkarrer81/git_tricks
[GIT Installation and Configuration] Git installation and configuration options #git
#!/usr/bin/env bash
# https://medium.com/@porteneuve/mastering-git-submodules-34c65e940407#.3o6drt47o
# http://blogs.atlassian.com/2013/03/git-submodules-workflows-tips/#scenarios
# http://stackoverflow.com/questions/2144406/git-shallow-submodules
# -----------------
# INSTALL AND SETUP
# -----------------
# https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion
@WillSams
WillSams / setup-jenkins-nginx.sh
Created January 31, 2019 15:24
Jenkins CI SSL Configuration For Nginx on Debian-based system
#!/bin/bash
set -o nounset # unset variables are errors
SCRIPTVERSION="2019.01.29-Debian"
SCRIPTNAME="setup-jenkins-nginx.sh"
SCRIPTFULLNAME="$0"
PORT='8080'
WEBNAME='jenkins.yourdomain'
@WillSams
WillSams / m68k_dev_setup.sh
Last active May 10, 2024 08:10
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 / install-jenkins.sh
Last active January 29, 2019 22:08
Install Jenkins CI & Configure Open-JDK 8 on Debian-based System
#!/bin/bash
echo "==================================================================="
echo
echo "Installs Jenkins & Open-JDK 8"
echo "You may be prompted for root credentials to complete the install."
echo
echo "==================================================================="
set -o nounset # unset variables are errors
@WillSams
WillSams / new_box_extras.sh
Last active December 31, 2024 22:48
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 / ssh_on_vbox_mv.sh
Last active March 29, 2023 12:38
Configuring SSH & Hostname on Virtual Box VM
#!/bin/bash
# **************** CONFIGURATION FOR LOGGING INTO VM FROM HOST VIA SSH ******************
#
# Download and execute this script on your VM, not your host machine
#
# Pre-req:
# - Ensure you have openssh-server installed on the VM.
# - Go to File-> Host Network Manager -> Create. DO NOT enable `DHCP Server`.
#
# In your VM's settings, go to Network tab, add a 2nd network adapter and do the following:
@WillSams
WillSams / install-salt-master.sh
Last active February 5, 2019 13:48
Install and Configure Salt Master on Debian-based System
#!/bin/bash
set -o nounset # unset variables are errors
SCRIPTVERSION="2019.01.25-Debian"
SCRIPTNAME="install-salt-master.sh"
SCRIPTFULLNAME="$0"
BROADCAST='192.168.56.1/24' #local network broadcast IP & subnet
echoerror() { printf "\033[1;31m * ERROR\033[0m: %s\\n" "$@" 1>&2; }
@WillSams
WillSams / install-salt-minion.sh
Last active January 31, 2019 21:14
Install and Configure Salt Minion on Debian-based System
#!/bin/bash
set -o nounset # unset variables are errors
SCRIPTVERSION="2019.01.25-Debian"
SCRIPTNAME="install-salt-minion.sh"
SCRIPTFULLNAME="$0"
SALTMASTER='192.168.56.101' #IP of Salt-master
echoerror() { printf "\033[1;31m * ERROR\033[0m: %s\\n" "$@" 1>&2; }