Skip to content

Instantly share code, notes, and snippets.

@0xnu
0xnu / cpp.sh
Created June 26, 2025 13:15
macOS C++ Development Environment Setup Script. It configures complete C++ development toolchain on macOS.
#!/bin/bash
# Author: Finbarrs Oketunji
# Version: 1.2
# Description: macOS C++ Development Environment Setup Script. It configures complete C++ development toolchain on macOS.
set -euo pipefail
readonly HOMEBREW_URL="https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"
readonly LOG_FILE="/tmp/cpp_setup.log"
@0xnu
0xnu / latex_macos.sh
Created June 26, 2025 10:51
LaTeX Setup Script for macOS
#!/usr/bin/env bash
# Author: Finbarrs Oketunji
# Version: 2.4
# Description: LaTeX Setup Script for macOS
set -euo pipefail
IFS=$'\n\t'
readonly SCRIPT_NAME="${0##*/}"
@0xnu
0xnu / kali_setup.sh
Created June 26, 2025 08:00
Advanced script to set up Kali Linux container environment
#!/bin/bash
# Kali Linux Setup Script for Ubuntu 24.04
# Author: Finbarrs Oketunji
# Version: 3.0
# Description: Advanced script to set up Kali Linux container environment
set -euo pipefail
# Global configuration variables
@0xnu
0xnu / cart_level_calculation.py
Last active August 29, 2025 09:36
Calculate Sales Tax with Global Tax API.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@name: cart_level_calculation.py
@author: Finbarrs Oketunji
@contact: f@finbarrs.eu
@time: Friday August 29 2025
@desc: Calculate Sales Tax for entire cart with Global Tax API.
@run: python3 cart_level_calculation.py
"""

The MIT License (MIT)

Copyright © 2025 Finbarrs Oketunji

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT