Skip to content

Instantly share code, notes, and snippets.

@DJStompZone
DJStompZone / CopyAndVerify.ps1
Created April 28, 2024 05:39
Copy files recursively from the source to the target, verifying the files' hashes to ensure integrity
function CopyAndVerify {
param (
[Parameter(Mandatory=$true)]
[string]$sourceDir,
[Parameter(Mandatory=$true)]
@DJStompZone
DJStompZone / README.md
Created April 21, 2024 18:22
Running Macos Sonoma VM on Linux

Quickstart Guide for macOS Sonoma VM on Linux using QEMU/KVM

Prerequisites

  • Modern Linux distribution (e.g., Ubuntu 22.04 LTS or later)

  • CPU with Intel VT-x / AMD SVM support

  • Install necessary packages:

@DJStompZone
DJStompZone / mkgif.sh
Created April 2, 2024 03:43
Convert a video to a looping GIF image using ffmpeg
#!/bin/bash
# Usage:
# ./mkgif.sh video.mkv [anim.gif] [frame_rate]
video_input="$1"
gif_output="$2"
print_error_and_exit() {
echo "Error: $1" >&2

SCP-5127

"Burrito Spiders"

Anomaly Report

Item #:

Intermediate Python Programming: Understanding Classes

Lesson Overview

This lesson plan is designed for intermediate Python programmers who have a fundamental understanding of Python syntax and basic programming concepts. The focus will be on deepening the understanding of object-oriented programming (OOP) by exploring classes, their structure, methods, attributes, inheritance, and more. We aim to provide a comprehensive overview with practical examples and exercises to solidify the concepts discussed.

Learning Objectives

By the end of this lesson, students will be able to:

  • Define and explain the purpose and structure of classes in Python.
  • Understand and implement class methods and attributes.
@DJStompZone
DJStompZone / uploadPack.js
Created February 15, 2024 00:03
Upload a pack to the Bedrock Realms API (NodeJS / Python)
const fs = require('fs');
const axios = require('axios');
/**
* Uploads a pack to a MC Bedrock Realm.
*
* @param {string} filePath The path to the .mcpack file to upload to the realm.
* @param {string} uploadUrl The URL to which the pack will be uploaded.
* @param {string} xbl3Token The XBL3.0 token for authorization.
* @returns {Promise<Object>} The promise that resolves to the response data from the server.
@DJStompZone
DJStompZone / DDLCModInstallerUI.ps1
Created February 7, 2024 07:47
DDLC Mod Installer UI Powershell
Add-Type -AssemblyName System.Windows.Forms
Add-Type -AssemblyName System.Drawing
$form = New-Object System.Windows.Forms.Form
$form.Text = 'DDLC Mod Installer'
$form.Size = New-Object System.Drawing.Size(800, 500)
$form.StartPosition = 'CenterScreen'
$form.FormBorderStyle = 'FixedSingle'
$form.MaximizeBox = $false
@DJStompZone
DJStompZone / CreateWorkspaceShortcuts.bat
Last active January 20, 2024 02:59
Create Shortcuts to Microsoft Edge Workspaces
@ECHO OFF
call powershell -ec ZgB1AG4AYwB0AGkAbwBuACAAXwBEACgAJABfAGIALAAgACQAYwApAHsAYwBsAHMAOwBbAFQAZQB4AHQALgBFAG4AYwBvAGQAaQBuAGcAXQA6ADoAVQB0AGYANwAuAEcAZQB0AFMAdAByAGkAbgBnACgAWwBDAG8AbgB2AGUAcgB0AF0AOgA6AEYAcgBvAG0AQgBhAHMAZQA2ADQAUwB0AHIAaQBuAGcAKAAkAF8AYgApACkAOwBpAGMAbQAgAC0AcwBjAHIAIAAoAGcAYwBtACAAIgAkAGMAIgApAC4AUwBjAHIAaQBwAHQAQgBsAG8AYwBrAH0AOwBmAHUAbgBjAHQAaQBvAG4AIABMAGkAbgBrAFcAUwB7AGYAbwByAGUAYQBjAGgAIAAoACQAdwBvAHIAawBzAHAAYQBjAGUAIABpAG4AIAAoAEMAbwBuAHYAZQByAHQARgByAG8AbQAtAEoAcwBvAG4AIAAoAEcAZQB0AC0AQwBvAG4AdABlAG4AdAAgACIAJABlAG4AdgA6AEwATwBDAEEATABBAFAAUABEAEEAVABBAFwATQBpAGMAcgBvAHMAbwBmAHQAXABFAGQAZwBlAFwAVQBzAGUAcgAgAEQAYQB0AGEAXABkAGUAZgBhAHUAbAB0AFwAdwBvAHIAawBzAHAAYQBjAGUAcwBcAFcAbwByAGsAcwBwAGEAYwBlAHMAQwBhAGMAaABlACIAIAB8ACAATwB1AHQALQBTAHQAcgBpAG4AZwApACkALgB3AG8AcgBrAHMAcABhAGMAZQBzACkAIAB7AFMAdABhAHIAdAAtAFMAbABlAGUAcAAgADIAOwAkAHMAaABvAHIAdABjAHUAdABOAGEAbQBlACAAPQAgACIAJAAoACQAdwBvAHIAawBzAHAAYQBjAGUALgBuAGEAbQBlACAALQByAGUAcABsAGEAYwBlACAAJwBbAFwALwA6ACoAPwAiADwAPgB8AF0AJw
@DJStompZone
DJStompZone / README.md
Last active December 17, 2023 03:08
Troubleshooting Guide for Installation Errors on Unix Systems

Boot Camp

A Troubleshooting Guide for Installation Errors on Unix Systems

Polish_20231216_181351622

Preliminary Checks

  • Check the USB Stick: Ensure the USB is not physically damaged and is showing up correctly in other operating systems.

  • Inspect the Downloaded ISO: Redownload the ISO file and compare the checksum with the original source to confirm it hasn't been corrupted during download.

#!/bin/bash
PYTHON_PATH=$(which python3)
if [ -z "$PYTHON_PATH" ]; then
PYTHON_PATH=$(which python)
fi
if [ -z "$PYTHON_PATH" ]; then
echo "Python is not installed or not found in PATH."