Skip to content

Instantly share code, notes, and snippets.

View JoeBlakeB's full-sized avatar

Joe Baker JoeBlakeB

  • Student @ Bournemouth University
  • Bournemouth
  • 08:33 (UTC +01:00)
View GitHub Profile
@JoeBlakeB
JoeBlakeB / kotlinRun.sh
Created May 10, 2023 10:19
A simple bash script to build and run a single kotlin file with build cache to only re compile if source file changes.
#!/bin/bash
#
# A simple bash script to build and run a single kotlin file
# with build cache to only re compile if source file changes
#
# Copyright (C) 2023 Joe Baker (JoeBlakeB)
# This program is free software under the GPLv3 license.
#
if [[ $1 == "-h" || $1 == "--help" ]]; then
@JoeBlakeB
JoeBlakeB / discordVersionUpdater.py
Last active December 8, 2024 11:14
Update the Discord build_info.json file so that you can still use it when there is a new version available.
#!/usr/bin/env python3
# Copyright (C) 2022 Joe Baker (JoeBlakeB)
# This program is free software under the GPLv3 license.
#
# This script is used to update the version number in the Discord
# build_info.json file so that you do not need to manually update it,
# or wait for the package maintainer to update it.
# Discord will instead open normally and will not prompt you to update.
#
# Requirements: python3 and requests
@JoeBlakeB
JoeBlakeB / MapGenieDownloader.py
Last active August 12, 2024 05:08
Download maps from mapgenie.io
#!/usr/bin/env python
#
# MapGenieDownloader.py - v2.1
#
# Copyright (C) 2022 Joe Baker (JoeBlakeB)
# This program is free software under the GPLv3 license.
#
# Download a high resolution maps from mapgenie.io
# May not work on all games, only tested with tarkov and forza
#
@JoeBlakeB
JoeBlakeB / bumblebee-optimus-switcher.py
Last active June 8, 2023 17:58
Notification to switch between bumblebee and optimus-manager.
#!/usr/bin/env python
#
# Copyright (C) 2022 Joe Baker (JoeBlakeB)
# This program is free software under the GPLv3 license.
#
# Notification to switch between bumblebee and optimus-manager.
#
# Requires python3, bumblebee, optimus-manger, and notify-send
#
# This file only works if you have something in the /etc/sudoers file like:
@JoeBlakeB
JoeBlakeB / DataAndDatabasesCoursework.sql
Last active October 8, 2022 19:24
Data and Databases Coursework
/**
* Bournemouth University Level 4 Data and Databases coursework 2021
* An SQL database for a care home for tracking residents, their care, and the carers.
* Designed for Oracle SQL
*
* Copyright (c) 2021 JoeBlakeB (Joe Baker), All Rights Reserved.
**/
-- CREATE SCRIPTS
@JoeBlakeB
JoeBlakeB / eBrock Dark Theme.css
Last active October 8, 2022 19:29
Dark mode for eBrock
/**
* Dark Theme for Brockenhurst Colleges eBrock website
* by JoeBlakeB (Joe Baker) 2020
*
* As I left Brock in 2021, this will not receieve any updates
* and might no longer work, anyone is free to do whatever they
* want with this code.
*
* This is free software under the GPLv3 license.
***/
@JoeBlakeB
JoeBlakeB / VernamCipher.py
Last active October 8, 2022 19:40
A basic Vernam Cipher to demonstrate using XOR to encode a message.
#!/usr/bin/env python3
#
# A basic cipher using XOR to encode a message using a password of the same
# length. The script takes two arguments, the message and the password.
# Decoding works exactly the same way except the message is replaced with
# the encoded message, and the same password must be used
#
# Usage:
# ./VernamCipher.py {message} {password}
#
@JoeBlakeB
JoeBlakeB / MinecraftAssetsExtractor.py
Created August 2, 2020 11:46
Minecraft Assets Extractor
#!/usr/bin/env python3
#
# Minecraft Assets Extractor
# by JoeBlakeB
# github.com/JoeBlakeB
#
# Example command:
# Extract.py C:\Users\<user>\AppData\Roaming\.minecraft\assets "C:\Users\<user>\Documents\Minecraft Assets" 1.16
#