This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <stack> | |
#include <functional> | |
using Receiver = std::function<void(std::function<void()>)>; | |
class Command { | |
public: | |
virtual void setReceiver(Receiver receiver) = 0; | |
virtual void execute() = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo bash -c "apt update && sudo update -y" | |
sudo bash -c "apt install samba" | |
sudo smbpasswd -a # type in a password | |
sudo bash -c "echo ' | |
#################################################### | |
[videos] | |
path = $HOME/Pictures | |
available = yes | |
valid users = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SCRIPTVERSION="2014.06.16-Debian" | |
SCRIPTVERSION="2022.12.13-Debian" | |
SCRIPTNAME="sdl2-pkgs-install.sh" | |
SCRIPTFULLNAME="$0" | |
BUILDDIR=/tmp/sdlbuild | |
sudo bash -c "apt update" | |
sudo bash -c "apt install libxext-dev build-essential automake autoconf libtool -y" | |
sudo bash -c "apt install mesa-common-dev libasound2-dev libpulse-dev -y" | |
sudo bash -c "apt install libpng-dev libjpeg-dev libwebp-dev libtiff-dev -y" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!#/bin/sh | |
# REMOVAL ################################## | |
sudo apt-get --purge remove postgresql | |
sudo apt-get purge postgresql* | |
sudo apt-get --purge remove postgresql postgresql-doc postgresql-common | |
sudo rm -rf /var/lib/postgresql/ | |
sudo rm -rf /var/log/postgresql/ | |
sudo rm -rf /etc/postgresql/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TEMPBUILDDIR=/tmp/psxbuild | |
GCCBUILDIR=$TEMPBUILDDIR/pkgs/gcc-build | |
BINUTILS_VERSION=2.39 | |
GCC_VERSION=7.1.0 | |
PSXDEV=/opt/toolchains/psx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# I'm just going by what I've done before and the configuration flags found here: | |
# https://github.com/kentosama/sh2-elf-gcc/ | |
TEMPBUILDDIR=/tmp/saturn | |
GCCBUILDIR=$TEMPBUILDDIR/pkgs/gcc-build | |
BINUTILS_VERSION=2.39 | |
GCC_VERSION=7.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DCDEV=/opt/toolchains/dc | |
sudo bash -c "apt-get install -y genisoimage squashfs-tools libpng-dev libjpeg-dev liblzo2-dev" | |
sudo bash -c "mkdir -p $DCDEV/tools/kos" | |
sudo bash -c "chown -R $(id -u):$(id -g) $DCDEV" | |
cd /tmp && git clone https://github.com/LuaDist/tolua.git && cd tolua | |
mkdir build && cd ./build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# March 11th, 2022 will be a day of infamy.... | |
echo '# Get the aliases and functions | |
if [ -f ~/.bashrc ]; then | |
. ~/.bashrc | |
fi' >| ~/.bash_profile | |
echo 'set -o noclobber | |
PS1="\[\e]0;will@samswebs.com \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]willsams@samswebs.com\[\033[00m\] \[\033[01;34m\]\w \$\[\033[00m\]" | |
' >> ~/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, clr | |
clr.AddReferenceToFile("MonoGame.Framework.dll") | |
clr.AddReferenceToFile("OpenTK.dll") | |
from Microsoft.Xna.Framework import * | |
from Microsoft.Xna.Framework.Graphics import * | |
class App(Game): | |
def __init__(self): | |
self.graphics = GraphicsDeviceManager(self) |