Skip to content

Instantly share code, notes, and snippets.

View San-tito's full-sized avatar
:atom:
Roses are red, violets are blue, unexpected '{' on line 42. 🤷‍♂️💥

Santito San-tito

:atom:
Roses are red, violets are blue, unexpected '{' on line 42. 🤷‍♂️💥
View GitHub Profile
@San-tito
San-tito / 42install.sh
Last active July 3, 2024 21:13
🔧 My script for 42 ✨ automates the setup of various Ubuntu settings and installations.
#!/usr/bin/env bash
declare -xr INSTALL_PREFIX="${INSTALL_PREFIX:-"$HOME/.local"}"
declare -xr XDG_DATA_HOME="${XDG_DATA_HOME:-"$HOME/.local/share"}"
declare -xr XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-"$HOME/.config"}"
function msg() {
local text="$1"
local div_width="80"
printf "%${div_width}s\n" ' ' | tr ' ' -
@San-tito
San-tito / push_swap_tester.sh
Created January 7, 2024 19:02
Push swap Tester Script
#!/bin/bash
##########################################################
# Santito Tester Script for push_swap and checker #
# #
# Usage: ./tester.sh <num_elements> <num_tests> #
# #
# This script tests the push_swap program using random #
# sets of numbers and checks the output with the checker. #
# #