Skip to content

Instantly share code, notes, and snippets.

View WillSams's full-sized avatar
🚀

Will Sams WillSams

🚀
View GitHub Profile
@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 / 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 / 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 / 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 / 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 / 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 / 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 / m68k-bin2elf.sh
Created May 12, 2019 21:11
M68000 Bin2Elf
#!/bin/bash
echo "==================================================================="
echo " This script can be executed under Linux or Windows (using MSys2) "
echo " Modify GENDEV variable to fit your toolchain. "
echo
echo " Linux toolchain: "
echo " https://gist.github.com/WillSams/c4cbf6235b467d8b595693969342237e "
echo
echo " Windows toolchain: "
@WillSams
WillSams / es_systems.cfg
Last active February 9, 2023 05:10
Retropie example es_systems.cfg
<?xml version="1.0"?>
<systemList>
<system>
<name>3do</name>
<fullname>3DO</fullname>
<path>/home/pi/RetroPie/roms/3do</path>
<extension>.cue .chd .m3u .iso .CUE .CHD .M3U .ISO</extension>
<command>/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-opera/opera_libretro.so %ROM%</command>
<platform>3do</platform>
<theme>3do</theme>
@WillSams
WillSams / interview_questions.sh
Last active December 20, 2019 13:58
C# Coding Interview
# ==============================================================================
# 1 - C# program to determine if any two integers in array sum to given integer
# ==============================================================================
dotnet new console -n arrayprograms
echo 'using System;
namespace CodingAlgorithm {
sealed class Algorithm {
//Brute force solution, O(n^2) time complexity